/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
tns.c | 40 static const Word32 TNS_PARCOR_THRESH = 0x0ccccccd; /* 0.1*(1 << 31) */ 57 static void CalcWeightedSpectrum(const Word32 spectrum[], 59 Word32* sfbEnergy, 62 Word32 *pWork32); 66 void AutoCorrelation(const Word16 input[], Word32 corr[], 68 static Word16 AutoToParcor(Word32 workBuffer[], Word32 reflCoeff[], Word16 numOfCoeff); 70 static Word16 CalcTnsFilter(const Word16* signal, const Word32 window[], Word16 numOfLines, 71 Word16 tnsOrder, Word32 parcor[]); 74 static void Parcor2Index(const Word32 parcor[], Word16 index[], Word16 order [all...] |
psy_configuration.c | 39 Word32 sampleRate; 62 static const Word32 c_maxsnr = 0x66666666; /* upper limit is -1 dB */ 63 static const Word32 c_minsnr = 0x00624dd3; /* lower limit is -25 dB */ 65 static const Word32 c_maxClipEnergyLong = 0x77359400; /* 2.0e9f*/ 66 static const Word32 c_maxClipEnergyShort = 0x01dcd650; /* 2.0e9f/(AACENC_TRANS_FAC*AACENC_TRANS_FAC)*/ 69 Word32 GetSRIndex(Word32 sampleRate) 97 static Word16 atan_1000(Word32 val) 99 Word32 y; 122 static Word16 BarcLineValue(Word16 noOfLines, Word16 fftLine, Word32 samplingFreq [all...] |
block_switch.c | 33 static Word32 34 SrchMaxWithIndex(const Word32 *in, Word16 *index, Word16 n); 37 Word32 51 const Word32 hiPassCoeff[BLOCK_SWITCHING_IIR_LEN] = { 55 static const Word32 accWindowNrgFac = 0x26666666; /* factor for accumulating filtered window energies 0.3 */ 56 static const Word32 oneMinusAccWindowNrgFac = 0x5999999a; /* 0.7 */ 57 static const Word32 invAttackRatioHighBr = 0x0ccccccd; /* inverted lower ratio limit for attacks 0.1*/ 58 static const Word32 invAttackRatioLowBr = 0x072b020c; /* 0.056 */ 59 static const Word32 minAttackNrg = 0x00001e84; /* minimum energy for attacks 1e+6 */ 73 const Word32 bitRate, const Word16 nChannels [all...] |
grp_data.c | 35 groupShortData(Word32 *mdctSpectrum, 36 Word32 *tmpSpectrum, 50 Word32 i, j; 51 Word32 line; 52 Word32 sfb; 53 Word32 grp; 54 Word32 wnd; 55 Word32 offset; 56 Word32 highestSfb; 110 Word32 thresh = sfbThreshold->sfbShort[wnd][sfb] [all...] |
line_pe.c | 30 static const Word32 C2_I = 10830; /* log(2.5)/log(2) * 1024 * 4 * 2 */ 47 Word32 sfbGrp, sfb; 48 Word32 ch; 75 Word32 ch; 76 Word32 sfbGrp, sfb; 77 Word32 nLines4; 78 Word32 ldThr, ldRatio; 79 Word32 pe, constPart, nActiveLines; 87 const Word32 *sfbEnergy = psyOutChan->sfbEnergy; 88 const Word32 *sfbThreshold = psyOutChan->sfbThreshold [all...] |
sf_estim.c | 61 __inline Word32 formfac_sqrt(Word32 x) 63 Word32 y; 64 Word32 preshift, postshift; 100 Word32 sfbw, sfbw1; 101 Word32 i, j; 102 Word32 sfbOffs, sfb; 110 Word32 accu, avgFormFactor,iSfbWidth; 111 Word32 *mdctSpec; 123 avgFormFactor = rsqrt((Word32)avgFormFactor,INT_BITS) >> 10 [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/ |
basic_op.h | 144 L_var3 = 32 bit long signed integer (Word32) whose value falls 161 L_var3 = 32-bit result of L_var3 + (L_var1 * L_var2)(Word32) 164 static inline Word32 Mac_32(Word32 L_var3, 191 L_var3 = 32 bit long signed integer (Word32) whose value falls 205 L_var3 = 32-bit result of L_var3 + (L_var1 * var2)(Word32) 208 static inline Word32 Mac_32_16(Word32 L_var3, 312 L_var1 32 bit long signed integer (Word32) whose value falls in the 322 32 bit long signed integer (Word32) whose value falls in th [all...] |
vad2.h | 161 Word32 Lframe_cnt; 162 Word32 Lch_enrg[NUM_CHAN]; /* scaled as 22,9 or 27,4 */ 163 Word32 Lch_noise[NUM_CHAN]; /* scaled as 22,9 */ 176 Word32 L_R0; 177 Word32 L_Rmax;
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
az_lsp.cpp | 176 Word32 t0; 252 Word32 t0; 253 Word32 L_temp; 262 t0 = ((Word32) x << 10) + ((Word32) * (p_f++) << 14); 273 t0 = ((Word32) b1_h * x); 274 t0 += ((Word32) b1_l * x) >> 15; 281 t0 += (Word32) * (p_f++) << 14; 283 L_temp = ((Word32) b1_h << 16) + ((Word32) b1_l << 1) [all...] |
div_32.cpp | 91 L_num = 32 bit signed integer (Word32) whose value falls in the 105 L_num / L_denom (Word32) 168 Word32 Div_32(Word32 L_num, 179 Word32 result;
|
pow2.cpp | 88 L_x = Result of the Pow2() computation (Word32) 125 Word32 Pow2 ( // (o) : result (range: 0<=val<=0x7fffffff) 131 Word32 L_x; 176 Word32 Pow2( /* (o) : result (range: 0<=val<=0x7fffffff) */ 183 Word32 L_x;
|
q_plsf_3.cpp | 210 Word32 dist_min, dist; 234 if (L_sub (dist, dist_min) < (Word32) 0) 288 Word32 dist_min; 289 Word32 dist; 319 temp = (Word16)((((Word32) wf1_0) * temp) >> 15); 320 dist = ((Word32) temp) * temp; 323 temp = (Word16)((((Word32) wf1_1) * temp) >> 15); 324 dist += ((Word32) temp) * temp; 327 temp = (Word16)((((Word32) wf1_2) * temp) >> 15); 328 dist += ((Word32) temp) * temp [all...] |
lsp_lsf.cpp | 58 Added proper casting (Word32) to some left shifting operations 175 Word32 L_tmp; 222 Word32 L_tmp; 231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >> 8; 298 Word32 L_tmp; 356 Word32 L_tmp; 375 L_tmp = (Word32)(temp - table[ind]) * slope[ind];
|
weight_a.cpp | 190 *(a_exp) = (Word16)((((Word32) * (a)) * *(fac - 1)
|
/frameworks/av/media/libstagefright/codecs/aacenc/inc/ |
tns.h | 38 Word32 lpcStartFreq; /* lowest freq for lpc TABUL*/ 39 Word32 lpcStopFreq; /* TABUL */ 40 Word32 tnsTimeResolution; 54 Word32 acfWindow[TNS_MAX_ORDER+1]; 78 Word32 parcor[TNS_MAX_ORDER];
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
calc_en.cpp | 157 Word32 s, L_temp; 163 s = L_mac((Word32) 0, res[0], res[0]); 181 s = L_mac((Word32) 0, exc[0], exc[0]); 190 s = L_mac((Word32) 0, exc[0], code[0]); 277 Word32 s1; /* Intermediate energy accumulator */ 278 Word32 s2; /* Intermediate energy accumulator */ 279 Word32 s3; /* Intermediate energy accumulator */ 280 Word32 s4; /* Intermediate energy accumulator */ 281 Word32 L_temp; /* temporal 32 bits storage */ 309 s1 = amrnb_fxp_mac_16_by_16bb((Word32) tmp1, (Word32) tmp1, s1); /* Compute residual energy * [all...] |
c2_9pf.cpp | 326 Word32 L_temp; 328 L_temp = ((Word32) pitch_sharp) << 1; 331 if (L_temp != (Word32)((Word16) L_temp)) 484 Word32 s, alp0, alp1; 608 Word32 s; 609 Word32 alp0; 610 Word32 alp1; 612 Word32 L_temp; 648 alp0 = (Word32) rr[i0][i0] << 14; 678 alp1 = alp0 + ((Word32) rr[i1][i1] << 14) [all...] |
c3_14pf.cpp | 405 Word32 s; 406 Word32 alp0; 407 Word32 alp1; 445 alp0 = (Word32) rr[i0][i0] << 14; 474 alp1 = alp0 + ((Word32) rr[i1][i1] << 14); 478 alp1 += (Word32) rr[i0][i1] << 15; 481 sq1 = (Word16)(((Word32) ps1 * ps1) >> 15); 484 alp_16 = (Word16)((alp1 + (Word32) 0x00008000L) >> 16); 487 s = ((Word32) alp * sq1) << 1; 490 s -= (((Word32) sq * alp_16) << 1) [all...] |
c2_11pf.cpp | 428 Word32 s; 429 Word32 alp0; 430 Word32 alp1; 463 alp0 = (Word32) rr[i0][i0] << 14; 489 alp1 = alp0 + ((Word32) rr[i1][i1] << 14); 493 alp1 += (Word32) rr[i0][i1] << 15; 496 sq1 = (Word16)(((Word32) ps1 * ps1) >> 15); 499 alp_16 = (Word16)((alp1 + (Word32) 0x00008000L) >> 16); 502 s = ((Word32) alp * sq1) << 1; 505 s -= (((Word32) sq * alp_16) << 1) [all...] |
qgain475.cpp | 411 Word32 L_tmp; 488 Word32 L_tmp; 505 L_tmp = ((Word32) g_code * gcode0) << 1; 519 Log2((Word32) g_code, &exp, &frac, pOverflow); 531 qua_ener = (Word16)((L_tmp + (Word32) 0x00008000L) >> 16); 597 Word32 L_tmp; 707 Word32 L_tmp; 754 Log2((Word32) frac, &exp, &frac, pOverflow); [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
deemph.c | 37 Word32 i; 38 Word32 L_tmp; 64 Word32 i; 65 Word32 L_tmp; 72 Word32 tmp; 93 Word32 i, L_tmp;
|
int_lpc.c | 39 Word32 i, k; 42 Word32 L_tmp;
|
scale.c | 33 Word32 i; 34 Word32 L_tmp;
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
bgnscd.cpp | 243 Word32 s; 250 s = (Word32) 0; 412 Word32 s, L_temp; 419 s = (Word32) 0; 423 L_temp = ((Word32) speech[i]) * speech[i]; 424 if (L_temp != (Word32) 0x40000000L) 436 if (s > (Word32)0x1fffffffL) 455 L_temp = (Word32)frameEnergyMin << 4; 456 if (L_temp != (Word32)((Word16) L_temp))
|
pstfilt.cpp | 73 Added proper casting (Word32) to some left shifting operations 330 Word32 L_tmp; 457 Word32 L_tmp; 458 Word32 L_tmp2; 503 L_tmp2 = ((Word32) h[i]) * h[i]; 505 if (L_tmp2 != (Word32) 0x40000000L) 524 L_tmp2 = ((Word32) h[i]) * h[i + 1]; 526 if (L_tmp2 != (Word32) 0x40000000L) 547 L_tmp = (((Word32) temp2) * MU) >> 15; 550 if (L_tmp & (Word32) 0x00010000L [all...] |