/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | enc_lag6.cpp | 97 T0 -- Word16 -- Pitch delay 187 Word16 T0, /* i : Pitch delay */ 201 if (T0 <= 94) 203 /* index = T0*6 - 105 + T0_frac */ 204 i = 6 * T0 - 105; 210 index = add(T0, 368, pOverflow); 217 /* index = 6*(T0-T0_min) + 3 + T0_frac */ 218 temp = sub(T0, T0_min, pOverflow); 186 Enc_lag6( Word16 T0, Word16 T0_frac, Word16 T0_min, Word16 delta_flag, Flag *pOverflow ) argument
|
H A D | enc_lag3.cpp | 87 T0 = Pitch delay of type Word16 165 if (sub (T0, 85) <= 0) 167 // index = T0*3 - 58 + T0_frac 168 i = add (add (T0, T0), T0); 173 index = add (T0, 112); 182 // index = 3*(T0 - T0_min) + 2 + T0_frac 183 i = sub (T0, T0_min); 198 uplag = add (add (add (T0, T 251 Enc_lag3( Word16 T0, Word16 T0_frac, Word16 T0_prev, Word16 T0_min, Word16 T0_max, Word16 delta_flag, Word16 flag4, Flag *pOverflow ) argument [all...] |
H A D | cbsearch.cpp | 59 T0 -- Word16 -- Pitch lag 188 Word16 T0, /* i : Pitch lag */ 217 T0, 232 T0, 247 T0, 262 T0, 285 for (i = T0; i < L_SUBFR; i++) 289 h[i - T0], 317 for (i = T0; i < L_SUBFR; i++) 321 code[i - T0], 184 cbsearch(Word16 x[], Word16 h[], Word16 T0, Word16 pitch_sharp, Word16 gain_pit, Word16 res2[], Word16 code[], Word16 y[], Word16 **anap, enum Mode mode, Word16 subNr, Flag *pOverflow) argument [all...] |
H A D | cl_ltp.cpp | 458 T0 = pointer to pitch delay (integer part) (Word16) 506 Word16 *T0, // o : Pitch delay (integer part) 523 *T0 = Pitch_fr(clSt->pitchSt, 539 Pred_lt_3or6(exc, *T0, *T0_frac, L_SUBFR, resu3); 632 Word16 *T0, /* o : Pitch delay (integer part) */ 656 *T0 = 684 *T0, 619 cl_ltp( clLtpState *clSt, tonStabState *tonSt, enum Mode mode, Word16 frameOffset, Word16 T_op[], Word16 *h1, Word16 *exc, Word16 res2[], Word16 xn[], Word16 lsp_flag, Word16 xn2[], Word16 yl[], Word16 *T0, Word16 *T0_frac, Word16 *gain_pit, Word16 g_coeff[], Word16 **anap, Word16 *gp_limit, Flag *pOverflow ) argument
|
H A D | c2_11pf.cpp | 155 T0, Pitch lag, variable of type Word16 231 Word16 T0, /* i : Pitch lag */ 253 if (T0 < L_CODE) 255 for (i = T0; i < L_CODE; i++) 259 h[i - T0], 314 if (T0 < L_CODE) 316 for (i = T0; i < L_CODE; i++) 320 code[i - T0], 227 code_2i40_11bits( Word16 x[], Word16 h[], Word16 T0, Word16 pitch_sharp, Word16 code[], Word16 y[], Word16 * sign, Flag * pOverflow ) argument
|
H A D | c2_9pf.cpp | 173 T0 = pitch lag (Word16) 244 Word16 T0, // i : Pitch lag 257 if (sub(T0, L_CODE) < 0) 258 for (i = T0; i < L_CODE; i++) { 259 h[i] = add(h[i], mult(h[i - T0], sharp)); 272 if (sub(T0, L_CODE) < 0) 273 for (i = T0; i < L_CODE; i++) { 274 code[i] = add(code[i], mult(code[i - T0], sharp)); 307 Word16 T0, /* i : Pitch lag */ 341 if (T0 < L_COD 302 code_2i40_9bits( Word16 subNr, Word16 x[], Word16 h[], Word16 T0, Word16 pitch_sharp, Word16 code[], Word16 y[], Word16 * sign, Flag * pOverflow ) argument [all...] |
H A D | c3_14pf.cpp | 130 T0 Array of type Word16 -- Pitch lag 206 Word16 T0, /* i : Pitch lag */ 227 if (T0 < L_CODE) 229 for (i = T0; i < L_CODE; i++) 233 h[i - T0], 287 if (T0 < L_CODE) 289 for (i = T0; i < L_CODE; i++) 293 code[i - T0], 202 code_3i40_14bits( Word16 x[], Word16 h[], Word16 T0, Word16 pitch_sharp, Word16 code[], Word16 y[], Word16 * sign, Flag * pOverflow ) argument
|
H A D | c4_17pf.cpp | 141 T0 Array of type Word16 -- Pitch lag 216 Word16 T0, /* i : Pitch lag */ 237 if (T0 < L_CODE) 239 for (i = T0; i < L_CODE; i++) 243 h[i - T0], 297 tempWord = T0 - L_CODE; 301 for (i = T0; i < L_CODE; i++) 305 code[i - T0], 212 code_4i40_17bits( Word16 x[], Word16 h[], Word16 T0, Word16 pitch_sharp, Word16 code[], Word16 y[], Word16 * sign, Flag * pOverflow ) argument
|
H A D | cod_amr.cpp | 856 Word16 T0, T0_frac; 1078 &T0, &T0_frac, &gain_pit, gCoeff, &ana, 1084 st->old_lags[1] = T0; 1089 st->old_lags[0] = T0; 1096 cbsearch(xn2, st->h1, T0, st->sharp, gain_pit, res2, 1125 T0_sf0 = T0; 1164 Pred_lt_3or6(&st->exc[i_subfr], T0, T0_frac, L_SUBFR, 1); 1259 Word16 T0, T0_frac; local 1488 &T0, &T0_frac, &gain_pit, gCoeff, &ana, 1495 st->old_lags[1] = T0; [all...] |
H A D | pitch_fr.cpp | 133 Word16 delta_int_range; /* integer range around T0 */ 134 Word16 delta_frc_low; /* fractional below T0 */ 135 Word16 delta_frc_range; /* fractional range around T0 */ 475 fractional positions around lag T0. The position at which the 507 // Test the fractions around T0 and choose the one which maximizes 580 /* Test the fractions around T0 and choose the one which maximizes */ 633 T0 = integer pitch of type Word16 661 Takes integer pitch T0 and calculates a range around it with 662 t0_min = T0-delta_low and t0_max = (T0 719 getRange( Word16 T0, Word16 delta_low, Word16 delta_range, Word16 pitmin, Word16 pitmax, Word16 *t0_min, Word16 *t0_max, Flag *pOverflow) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | dec_lag3.cpp | 73 T0 -- Pointer to type Word16 -- integer part of pitch lag 192 Word16 * T0, /* o : integer part of pitch lag */ 221 *T0 = i; 223 /* i = 3 * (*T0) */ 226 i = add(i, *T0, pOverflow); 242 *T0 = index - 112; 274 *T0 = 280 /* i = 3* (*T0) */ 340 *T0 = 362 *T0 186 Dec_lag3(Word16 index, Word16 t0_min, Word16 t0_max, Word16 i_subfr, Word16 T0_prev, Word16 * T0, Word16 * T0_frac, Word16 flag4, Flag *pOverflow ) argument [all...] |
H A D | dec_lag6.cpp | 67 T0 -- Pointer to type Word16 -- integer part of pitch lag 71 T0 -- Pointer to type Word16 -- integer part of pitch lag 190 Word16 *T0, /* in/out: integer part of pitch lag */ 205 /* T0 = (index+5)/6 + 17 */ 219 *T0 = i; 221 /* i = 3* (*T0) */ 224 i = add(i, *T0, pOverflow); 226 /* *T0_frac = index - T0*6 + 105 */ 248 *T0 = 263 *T0, 185 Dec_lag6( Word16 index, Word16 pit_min, Word16 pit_max, Word16 i_subfr, Word16 *T0, Word16 *T0_frac, Flag *pOverflow ) argument [all...] |
H A D | dec_amr.cpp | 572 Word16 T0, T0_frac, index, index_mr475 = 0; 782 &T0, &T0_frac, flag4); 784 st->T0_lagBuff = T0; 792 T0 = st->old_T0; 802 T0 = st->T0_lagBuff; 806 Pred_lt_3or6 (st->exc, T0, T0_frac, L_SUBFR, 1); 811 PIT_MAX, pit_flag, &T0, &T0_frac); 818 st->T0_lagBuff = T0; 819 T0 = st->old_T0; 823 Pred_lt_3or6 (st->exc, T0, T0_fra 1371 Word16 T0; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | pred_lt4.c | 53 Word16 T0, /* input : integer pitch lag */ 63 x = exc - T0; 51 Pred_lt4( Word16 exc[], Word16 T0, Word16 frac, Word16 L_subfr ) argument
|
H A D | voAMRWBEnc.c | 201 Word16 T_op, T_op2, T0, T0_min, T0_max, T0_frac, index; local 841 T0 = Pitch_fr4(&exc[i_subfr], xn, h1, T0_min, T0_max, &T0_frac, 853 if (T0 < PIT_FR1_8b) 855 index = ((T0 << 1) + (T0_frac >> 1) - (PIT_MIN<<1)); 858 index = ((T0 - PIT_FR1_8b) + ((PIT_FR1_8b - PIT_MIN)*2)); 864 T0_min = (T0 - 8); 881 i = (T0 - T0_min); 888 T0 = Pitch_fr4(&exc[i_subfr], xn, h1, T0_min, T0_max, &T0_frac, 902 if (T0 < PIT_FR2) 904 index = ((T0 << [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | pred_lt4.cpp | 164 int16 T0, /* input : integer pitch lag */ 174 pt_exc = &exc[-T0]; 162 Pred_lt4( int16 exc[], int16 T0, int16 frac, int16 L_subfr ) argument
|
H A D | lagconceal.cpp | 49 int16 * T0, (i/o): current lag 141 int16 * T0, 196 *T0 = *old_T0; 200 *T0 = lag_hist[0]; 227 *T0 = add_int16(mult_int16(tmp, ONE_PER_3), D2); 231 if (*T0 > maxLag) 233 *T0 = maxLag; 236 if (*T0 < minLag) 238 *T0 = minLag; 253 tmp = *T0 138 lagconceal( int16 gain_hist[], int16 lag_hist[], int16 * T0, int16 * old_T0, int16 * seed, int16 unusable_frame ) argument [all...] |
H A D | pvamrwbdecoder.cpp | 329 int16 T0, T0_frac, pit_flag, T0_max, select, T0_min = 0; local 595 T0 = PIT_MIN + (index >> 1); 596 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_MIN), 1)); 601 T0 = add_int16(index, PIT_FR1_8b - ((PIT_FR1_8b - PIT_MIN) * 2)); 611 T0 = PIT_MIN + (index >> 2); 612 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_MIN), 2)); 617 T0 = PIT_FR2 + (index >> 1); 618 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_FR2), 1)); 623 T0 = add_int16(index, (PIT_FR1_9b - ((PIT_FR2 - PIT_MIN) * 4) - ((PIT_FR1_9b - PIT_FR2) * 2))); 630 T0_min = T0 [all...] |
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
H A D | LVEQNB_CalcCoef.c | 100 LVM_INT32 T0; local 117 T0 = (LVM_INT32)Frequency * LVEQNB_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ 130 Dt0 = D * (T0 >> 10); 140 T0 = (T0 >> 6) * 0x7f53; /* Scale to 1.0 in 16-bit for range 0 to fs/50 */ 141 t0 = (LVM_INT16)(T0 >> 16); 231 LVM_INT32 T0; local 248 T0 = (LVM_INT32)Frequency * LVEQNB_TwoPiOnFsTable[Fs]; /* T0 [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | pred_lt.cpp | 139 T0 = integer pitch lag (Word16) 186 Word16 T0, // input : integer pitch lag 197 pX0 = &exc[-T0]; 256 Word16 T0, /* input : integer pitch lag */ 281 pX0 = &(exc[-T0]); 254 Pred_lt_3or6( Word16 exc[], Word16 T0, Word16 frac, Word16 L_subfr, Word16 flag3, Flag *pOverflow ) argument
|
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/ |
H A D | LVPSA_Control.c | 475 LVM_INT32 T0; local 500 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ 508 Dt0 = D * (T0 >> 10); 518 T0 = (T0 >> 10) * 20859; /* Scale to 1.0 in 16-bit for range 0 to fs/2 */ 519 t0 = (LVM_INT16)(T0 >> 16); 598 LVM_INT32 T0; local 622 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 [all...] |