Author: superdump
Date: Tue Sep 11 16:40:43 2007
New Revision: 1340

Log:
Rename inter6 to b60 as these are the coefficients of the b60 FIR filter based 
on a Hamming windowed sinc function truncated at +/-59 and zero-padded at +/-60

Modified:
   amr/amrdata.h
   amr/amrnbdec.c

Modified: amr/amrdata.h
==============================================================================
--- amr/amrdata.h       (original)
+++ amr/amrdata.h       Tue Sep 11 16:40:43 2007
@@ -1125,7 +1125,7 @@ static const int16_t lsf_5_5[64][4] = {
 };
 
 // b60 FIR filter coefficients (based on Hamming windowed sinc function)
-static const int16_t inter6[61] = {
+static const int16_t b60[61] = {
 29443, 28346, 25207, 20449, 14701,  8693,  3143, -1352,
 -4402, -5865, -5850, -4673, -2783,  -672,  1211,  2536,
  3130,  2991,  2259,  1170,     0, -1001, -1652, -1868,

Modified: amr/amrnbdec.c
==============================================================================
--- amr/amrnbdec.c      (original)
+++ amr/amrnbdec.c      Tue Sep 11 16:40:43 2007
@@ -725,8 +725,8 @@ static void decode_pitch_vector(AVCodecC
         // reset temp
         temp = 0;
         for(j=0; j<10; j++) {
-            temp += excitation_temp[i-j  ] * inter6[ j   *6 + 
p->cur_pitch_lag_frac];
-            temp += excitation_temp[i+j+1] * inter6[(j+1)*6 - 
p->cur_pitch_lag_frac];
+            temp += excitation_temp[i-j  ] * b60[ j   *6 + 
p->cur_pitch_lag_frac];
+            temp += excitation_temp[i+j+1] * b60[(j+1)*6 - 
p->cur_pitch_lag_frac];
         }
         excitation[i] = (temp + 0x4000)>>15;
     }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to