/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/ |
q_gain_c.cpp | 206 Word16 gcode0; local 229 gcode0 = (Word16) Pow2(exp_gcode0, frac_gcode0, pOverflow); /* predicted gain */ 233 gcode0 = shl(gcode0, 4, pOverflow); 237 gcode0 = shl(gcode0, 5, pOverflow); 245 err_min = ((Word32)gcode0 * *(p++)) >> 15; 257 err = ((Word32)gcode0 * *(p++)) >> 15; 278 temp = (gcode0 * *(p++)) >> 15;
|
qua_gain.cpp | 215 Word16 gcode0; local 249 * gcode0 (Q14) = 2^14*2^frac_gcode0 = gc0 * 2^(14-exp_gcode0) * 252 gcode0 = (Word16)(Pow2(14, frac_gcode0, pOverflow)); 346 g_code = mult(g_code, gcode0, pOverflow); 393 L_tmp = L_mult(g_code, gcode0, pOverflow);
|
qgain795.cpp | 134 gcode0 -- Word16 -- predicted CB gain (norm.) 208 Word16 gcode0, /* i : predicted CB gain (norm.), Q14 */ 335 g_code = mult(g_code, gcode0, pOverflow); 382 L_tmp = L_mult(g_code, gcode0, pOverflow); 400 gcode0 -- Word16 -- predicted CB gain (norm.), Q14 478 Word16 gcode0, /* i : predicted CB gain (norm.), Q14 */ 649 g_code = mult(g_code, gcode0, pOverflow); 707 L_tmp = L_mult(g_code, gcode0, pOverflow); 837 Word16 ltpg, alpha, gcode0; local [all...] |
qgain475.cpp | 360 gcode0 = predicted CB gain (Word16) 403 Word16 gcode0, // i : predicted CB gain, Q(14 - exp_gcode0) 427 L_tmp = L_mult(g_code, gcode0); 477 Word16 gcode0, /* i : predicted CB gain, Q(14 - exp_gcode0) */ 505 L_tmp = ((Word32) g_code * gcode0) << 1; 600 // predErrFact = gcu / gcode0 618 // convert gcode0 from DPF to standard fraction/exponent format 631 // = gcu / gcode0 711 * predErrFact = gcu / gcode0 731 /* convert gcode0 from DPF to standard fraction/exponent format * [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/ |
d_gain_c.cpp | 199 Word16 gcode0, exp, frac; local 229 gcode0 = (Word16)(Pow2(exp, frac, pOverflow)); /* predicted gain */ 230 gcode0 = shl(gcode0, 4, pOverflow); 231 *gain_code = shl(mult(gcode0, *p++, pOverflow), 1, pOverflow); 235 gcode0 = (Word16)(Pow2(14, frac, pOverflow)); 236 L_tmp = L_mult(*p++, gcode0, pOverflow);
|
dec_gain.cpp | 194 Word16 gcode0; local 272 * gcode0 (Q14) = 2^14*2^frac = gc0 * 2^(14-exp) * 277 gcode0 = (Word16) Pow2(14, frac, pOverflow); 288 L_tmp = L_mult(g_code, gcode0, pOverflow);
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
q_gain2.c | 79 Word16 exp, frac, gcode0, exp_gcode0, e_max, exp_code, qua_ener; local 191 * Compute gcode0. * 200 gcode0 = extract_h(L_tmp); /* From Q24 to Q8 */ 203 * gcode0 = pow(10.0, gcode0/20) * 204 * = pow(2, 3.321928*gcode0/20) * 205 * = pow(2, 0.166096*gcode0) * 208 L_tmp = vo_L_mult(gcode0, 5443); /* *0.166096 in Q15 -> Q24 */ 210 VO_L_Extract(L_tmp, &exp_gcode0, &frac); /* Extract exponent of gcode0 */ 212 gcode0 = (Word16)(Pow2(14, frac)); /* Put 14 as exponent so that * [all...] |
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
dec_gain2_amr_wb.cpp | 187 int16 i, tmp, exp, frac, gcode0, exp_gcode0, qua_ener, gcode_inov; local 297 * Compute gcode0 308 gcode0 = extract_h(L_tmp); /* From Q24 to Q8 */ 311 * gcode0 = pow(10.0, gcode0/20) 312 * = pow(2, 3.321928*gcode0/20) 313 * = pow(2, 0.166096*gcode0) 316 L_tmp = ((int32)gcode0 * 5443) >> 7; /* *0.166096 in Q15 -> Q24 */ 318 int32_to_dpf(L_tmp, &exp_gcode0, &frac); /* Extract exponant of gcode0 */ 320 gcode0 = (int16)(power_of_2(14, frac)); /* Put 14 as exponant so that * [all...] |
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/ |
gc_pred.cpp | 339 Word16 exp_code, gcode0; 414 * Compute gcode0. * 423 gcode0 = extract_h(L_tmp); // Q8 426 * gcode0 = pow(10.0, gcode0/20) * 427 * = pow(2, 3.3219*gcode0/20) * 428 * = pow(2, 0.166*gcode0) * 434 L_tmp = L_mult(gcode0, 5439); // Q8 * Q15 -> Q24 436 L_tmp = L_mult(gcode0, 5443); // Q8 * Q15 -> Q24 486 Word16 exp_code, gcode0; local [all...] |