Home
last modified time | relevance | path

Searched refs:T0 (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dlagconceal.cpp141 int16 * T0, in lagconceal() argument
196 *T0 = *old_T0; in lagconceal()
200 *T0 = lag_hist[0]; in lagconceal()
227 *T0 = add_int16(mult_int16(tmp, ONE_PER_3), D2); in lagconceal()
231 if (*T0 > maxLag) in lagconceal()
233 *T0 = maxLag; in lagconceal()
236 if (*T0 < minLag) in lagconceal()
238 *T0 = minLag; in lagconceal()
253 tmp = *T0 - maxLag; in lagconceal()
254 tmp2 = *T0 - lastLag; in lagconceal()
[all …]
Dpvamrwbdecoder.cpp329 int16 T0, T0_frac, pit_flag, T0_max, select, T0_min = 0; in pvDecoder_AmrWb() local
595 T0 = PIT_MIN + (index >> 1); in pvDecoder_AmrWb()
596 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_MIN), 1)); in pvDecoder_AmrWb()
601 T0 = add_int16(index, PIT_FR1_8b - ((PIT_FR1_8b - PIT_MIN) * 2)); in pvDecoder_AmrWb()
611 T0 = PIT_MIN + (index >> 2); in pvDecoder_AmrWb()
612 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_MIN), 2)); in pvDecoder_AmrWb()
617 T0 = PIT_FR2 + (index >> 1); in pvDecoder_AmrWb()
618 T0_frac = sub_int16(index, shl_int16(sub_int16(T0, PIT_FR2), 1)); in pvDecoder_AmrWb()
623T0 = add_int16(index, (PIT_FR1_9b - ((PIT_FR2 - PIT_MIN) * 4) - ((PIT_FR1_9b - PIT_FR2) * 2))); in pvDecoder_AmrWb()
630 T0_min = T0 - 8; in pvDecoder_AmrWb()
[all …]
Dpred_lt4.cpp164 int16 T0, /* input : integer pitch lag */ in Pred_lt4() argument
174 pt_exc = &exc[-T0]; in Pred_lt4()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dcbsearch.cpp188 Word16 T0, /* i : Pitch lag */ in cbsearch() argument
217 T0, in cbsearch()
232 T0, in cbsearch()
247 T0, in cbsearch()
262 T0, in cbsearch()
285 for (i = T0; i < L_SUBFR; i++) in cbsearch()
289 h[i - T0], in cbsearch()
317 for (i = T0; i < L_SUBFR; i++) in cbsearch()
321 code[i - T0], in cbsearch()
343 for (i = T0; i < L_SUBFR; i++) in cbsearch()
[all …]
Denc_lag3.cpp252 Word16 T0, /* i : Pitch delay */ in Enc_lag3() argument
273 temp1 = sub(T0, 85, pOverflow); in Enc_lag3()
277 temp2 = add(T0, T0, pOverflow); in Enc_lag3()
278 i = add(temp2, T0, pOverflow); in Enc_lag3()
284 index = add(T0, 112, pOverflow); in Enc_lag3()
295 i = sub(T0, T0_min, pOverflow); in Enc_lag3()
316 temp1 = add(T0, T0, pOverflow); in Enc_lag3()
317 temp2 = add(temp1, T0, pOverflow); in Enc_lag3()
327 temp1 = sub(T0, tmp_lag, pOverflow); in Enc_lag3()
344 temp1 = sub(T0, tmp_lag, pOverflow); in Enc_lag3()
Denc_lag6.cpp187 Word16 T0, /* i : Pitch delay */ in Enc_lag6() argument
201 if (T0 <= 94) in Enc_lag6()
204 i = 6 * T0 - 105; in Enc_lag6()
210 index = add(T0, 368, pOverflow); in Enc_lag6()
218 temp = sub(T0, T0_min, pOverflow); in Enc_lag6()
Dc2_11pf.cpp231 Word16 T0, /* i : Pitch lag */ in code_2i40_11bits() argument
253 if (T0 < L_CODE) in code_2i40_11bits()
255 for (i = T0; i < L_CODE; i++) in code_2i40_11bits()
259 h[i - T0], in code_2i40_11bits()
314 if (T0 < L_CODE) in code_2i40_11bits()
316 for (i = T0; i < L_CODE; i++) in code_2i40_11bits()
320 code[i - T0], in code_2i40_11bits()
Dc2_9pf.cpp307 Word16 T0, /* i : Pitch lag */ in code_2i40_9bits() argument
341 if (T0 < L_CODE) in code_2i40_9bits()
343 for (i = T0; i < L_CODE; i++) in code_2i40_9bits()
347 *(h + i - T0), in code_2i40_9bits()
403 if (T0 < L_CODE) in code_2i40_9bits()
405 for (i = T0; i < L_CODE; i++) in code_2i40_9bits()
409 *(code + i - T0), in code_2i40_9bits()
Dc3_14pf.cpp206 Word16 T0, /* i : Pitch lag */ in code_3i40_14bits() argument
227 if (T0 < L_CODE) in code_3i40_14bits()
229 for (i = T0; i < L_CODE; i++) in code_3i40_14bits()
233 h[i - T0], in code_3i40_14bits()
287 if (T0 < L_CODE) in code_3i40_14bits()
289 for (i = T0; i < L_CODE; i++) in code_3i40_14bits()
293 code[i - T0], in code_3i40_14bits()
Dc4_17pf.cpp216 Word16 T0, /* i : Pitch lag */ in code_4i40_17bits() argument
237 if (T0 < L_CODE) in code_4i40_17bits()
239 for (i = T0; i < L_CODE; i++) in code_4i40_17bits()
243 h[i - T0], in code_4i40_17bits()
297 tempWord = T0 - L_CODE; in code_4i40_17bits()
301 for (i = T0; i < L_CODE; i++) in code_4i40_17bits()
305 code[i - T0], in code_4i40_17bits()
Dcl_ltp.cpp632 Word16 *T0, /* o : Pitch delay (integer part) */ in cl_ltp() argument
656 *T0 = in cl_ltp()
684 *T0, in cl_ltp()
Dcod_amr.cpp1259 Word16 T0, T0_frac; in cod_amr() local
1488 &T0, &T0_frac, &gain_pit, gCoeff, &ana, in cod_amr()
1495 st->old_lags[1] = T0; in cod_amr()
1501 st->old_lags[0] = T0; in cod_amr()
1507 cbsearch(xn2, st->h1, T0, st->sharp, gain_pit, res2, in cod_amr()
1540 T0_sf0 = T0; in cod_amr()
1580 Pred_lt_3or6(&st->exc[i_subfr], T0, T0_frac, L_SUBFR, 1, pOverflow); in cod_amr()
Denc_lag6.h106 Word16 T0, /* i : Pitch delay */
Dc2_11pf.h106 Word16 T0, /* i : Pitch lag */
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_CalcCoef.c100 LVM_INT32 T0; in LVEQNB_DoublePrecCoefs() local
117 T0 = (LVM_INT32)Frequency * LVEQNB_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ in LVEQNB_DoublePrecCoefs()
130 Dt0 = D * (T0 >> 10); in LVEQNB_DoublePrecCoefs()
140 T0 = (T0 >> 6) * 0x7f53; /* Scale to 1.0 in 16-bit for range 0 to fs/50 */ in LVEQNB_DoublePrecCoefs()
141 t0 = (LVM_INT16)(T0 >> 16); in LVEQNB_DoublePrecCoefs()
231 LVM_INT32 T0; in LVEQNB_SinglePrecCoefs() local
248 T0 = (LVM_INT32)Frequency * LVEQNB_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ in LVEQNB_SinglePrecCoefs()
261 Dt0 = D * (T0 >> 10); in LVEQNB_SinglePrecCoefs()
271 T0 = (T0 >> 10) * 20859; /* Scale to 1.0 in 16-bit for range 0 to fs/2 */ in LVEQNB_SinglePrecCoefs()
272 t0 = (LVM_INT16)(T0 >> 16); in LVEQNB_SinglePrecCoefs()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Ddec_lag3.cpp192 Word16 * T0, /* o : integer part of pitch lag */ in Dec_lag3() argument
221 *T0 = i; in Dec_lag3()
226 i = add(i, *T0, pOverflow); in Dec_lag3()
242 *T0 = index - 112; in Dec_lag3()
274 *T0 = in Dec_lag3()
340 *T0 = in Dec_lag3()
362 *T0 = add( in Dec_lag3()
393 *T0 = in Dec_lag3()
Ddec_lag6.cpp190 Word16 *T0, /* in/out: integer part of pitch lag */ in Dec_lag6() argument
219 *T0 = i; in Dec_lag6()
224 i = add(i, *T0, pOverflow); in Dec_lag6()
248 *T0 = in Dec_lag6()
263 *T0, in Dec_lag6()
308 *T0 = in Dec_lag6()
Ddec_amr.cpp1371 Word16 T0; in Decoder_amr() local
1629 &T0, &T0_frac, flag4, pOverflow); in Decoder_amr()
1631 st->T0_lagBuff = T0; in Decoder_amr()
1639 T0 = st->old_T0; in Decoder_amr()
1645 T0 = st->T0_lagBuff; in Decoder_amr()
1649 Pred_lt_3or6(st->exc, T0, T0_frac, L_SUBFR, 1, pOverflow); in Decoder_amr()
1654 PIT_MAX, pit_flag, &T0, &T0_frac, pOverflow); in Decoder_amr()
1659 st->T0_lagBuff = T0; in Decoder_amr()
1660 T0 = st->old_T0; in Decoder_amr()
1664 Pred_lt_3or6(st->exc, T0, T0_frac, L_SUBFR, 0, pOverflow); in Decoder_amr()
[all …]
Ddec_lag6.h111 Word16 *T0, /* in/out: integer part of pitch lag */
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Control.c475 LVM_INT32 T0; in LVPSA_BPSinglePrecCoefs() local
500 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ in LVPSA_BPSinglePrecCoefs()
508 Dt0 = D * (T0 >> 10); in LVPSA_BPSinglePrecCoefs()
518 T0 = (T0 >> 10) * 20859; /* Scale to 1.0 in 16-bit for range 0 to fs/2 */ in LVPSA_BPSinglePrecCoefs()
519 t0 = (LVM_INT16)(T0 >> 16); in LVPSA_BPSinglePrecCoefs()
598 LVM_INT32 T0; in LVPSA_BPDoublePrecCoefs() local
622 T0 = (LVM_INT32)Frequency * LVPSA_TwoPiOnFsTable[Fs]; /* T0 = 2 * Pi * Fc / Fs */ in LVPSA_BPDoublePrecCoefs()
630 Dt0 = D * (T0 >> 10); in LVPSA_BPDoublePrecCoefs()
640 T0 = (T0 >> 6) * 0x7f53; /* Scale to 1.0 in 16-bit for range 0 to fs/50 */ in LVPSA_BPDoublePrecCoefs()
641 t0 = (LVM_INT16)(T0 >> 16); in LVPSA_BPDoublePrecCoefs()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
Dpred_lt4_1_neon.s19 @ Word16 T0, /* input : integer pitch lag */
25 @ r1 --- T0
37 SUB r4, r0, r1, LSL #1 @ x = exc - T0
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
DvoAMRWBEnc.c203 Word16 T_op, T_op2, T0, T0_min, T0_max, T0_frac, index; in coder() local
845 T0 = Pitch_fr4(&exc[i_subfr], xn, h1, T0_min, T0_max, &T0_frac, in coder()
857 if (T0 < PIT_FR1_8b) in coder()
859 index = ((T0 << 1) + (T0_frac >> 1) - (PIT_MIN<<1)); in coder()
862 index = ((T0 - PIT_FR1_8b) + ((PIT_FR1_8b - PIT_MIN)*2)); in coder()
868 T0_min = (T0 - 8); in coder()
885 i = (T0 - T0_min); in coder()
892 T0 = Pitch_fr4(&exc[i_subfr], xn, h1, T0_min, T0_max, &T0_frac, in coder()
906 if (T0 < PIT_FR2) in coder()
908 index = ((T0 << 2) + T0_frac) - (PIT_MIN << 2); in coder()
[all …]
Dpred_lt4.c53 Word16 T0, /* input : integer pitch lag */ in Pred_lt4() argument
63 x = exc - T0; in Pred_lt4()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dpred_lt.cpp256 Word16 T0, /* input : integer pitch lag */ in Pred_lt_3or6() argument
281 pX0 = &(exc[-T0]); in Pred_lt_3or6()
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dpred_lt.h99 Word16 T0, /* input : integer pitch lag */

12