Searched defs:gain_code (Results 1 - 12 of 12) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dvoice_factor.cpp51 int16 gain_code, (i) Q0 : gain of code
123 int16 gain_code, /* (i) Q0 : gain of code */
141 exp = norm_s(gain_code);
142 tmp = shl_int16(gain_code, exp);
118 voice_factor( int16 exc[], int16 Q_exc, int16 gain_pit, int16 code[], int16 gain_code, int16 L_subfr ) argument
H A Dphase_dispersion.cpp47 int16 gain_code, (i) Q0 : gain of code
152 int16 gain_code, /* (i) Q0 : gain of code */
190 if (sub_int16(gain_code, *prev_gain_code) > shl_int16(*prev_gain_code, 1))
219 *prev_gain_code = gain_code;
151 phase_dispersion( int16 gain_code, int16 gain_pit, int16 code[], int16 mode, int16 disp_mem[], int16 ScratchMem[] ) argument
H A Dpvamrwbdecoder.cpp330 int16 gain_pit, gain_code; local
871 gain_code = amr_wb_round(L_tmp); /* scaled gain_code with Qnew */
931 voice_fac = voice_factor(exc2, -3, gain_pit, code, gain_code, L_SUBFR);
948 L_tmp = mul_16by16_to_int32(code[i], gain_code);
1043 gain_code = amr_wb_round(shl_int32(L_gain_code, Q_new));
1047 L_tmp = mul_16by16_to_int32(amr_wb_round(L_tmp), gain_code);
1058 L_tmp = mul_16by16_to_int32(amr_wb_round(L_tmp), gain_code);
1067 L_tmp = mul_16by16_to_int32(amr_wb_round(L_tmp), gain_code);
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dvoicefac.c33 Word16 gain_code, /* (i) Q0 : gain of code */
58 exp = norm_s(gain_code);
59 tmp = gain_code << exp;
28 voice_factor( Word16 exc[], Word16 Q_exc, Word16 gain_pit, Word16 code[], Word16 gain_code, Word16 L_subfr ) argument
H A DvoAMRWBEnc.c204 Word16 gain_pit, gain_code, g_coeff[4], g_coeff2[4]; local
1183 gain_code = extract_h(L_add(L_tmp, 0x8000));
1197 voice_fac = voice_factor(exc2, shift, gain_pit, code, gain_code, L_SUBFR);
1208 L_tmp = L_mult(gain_code, y2[L_SUBFR - 1]);
1223 L_tmp = L_mult(gain_code, code[i]);
1239 VO_L_Extract(L_gain_code, &gain_code, &gain_code_lo);
1254 L_tmp = vo_L_add(L_tmp, Mpy_32_16(gain_code, gain_code_lo, 6226));
1261 L_tmp = Mpy_32_16(gain_code, gain_code_lo, 27536);
1269 L_gain_code = Mpy_32_16(gain_code, gain_code_lo, (32767 - fac));
1270 VO_L_Extract(L_tmp, &gain_code,
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_gain_c.cpp66 gain_code = pointer to decoded innovation gain of type Word16
195 Word16 *gain_code, /* o : decoded innovation gain */
231 *gain_code = shl(mult(gcode0, *p++, pOverflow), 1, pOverflow);
238 *gain_code = extract_h(L_tmp); /* Q1 */
190 d_gain_code( gc_predState *pred_state, enum Mode mode, Word16 index, Word16 code[], Word16 *gain_code, Flag *pOverflow ) argument
H A Dec_gains.cpp228 gain_code = pointer to decoded innovation gain of type Word16
284 *gain_code = tmp;
319 Word16 *gain_code, /* o : decoded innovation gain */
342 *gain_code = tmp;
364 gain_code = pointer to decoded innovation gain of type Word16
370 gain_code = pointer to decoded innovation gain of type Word16
386 limit gain_code if the previous frame was bad
405 // limit gain_code by previous good gain if previous frame was bad
410 if (sub (*gain_code, st->prev_gc) > 0)
412 *gain_code
315 ec_gain_code( ec_gain_codeState *st, gc_predState *pred_state, Word16 state, Word16 *gain_code, Flag *pOverflow ) argument
452 ec_gain_code_update( ec_gain_codeState *st, Word16 bfi, Word16 prev_bf, Word16 *gain_code, Flag *pOverflow ) argument
[all...]
H A Dc_g_aver.cpp223 gain_code = CB gain (Word16)
249 The mix cb gains for MR475, MR515, MR59, MR67, MR102; gain_code other modes
267 Word16 gain_code, // i : CB gain Q1
289 cbGainMix = gain_code;
299 st->cbGainHistory[L_CBGAINHIST-1] = gain_code;
466 Word16 gain_code, /* i : CB gain Q1 */
499 cbGainMix = gain_code;
509 st->cbGainHistory[L_CBGAINHIST-1] = gain_code;
463 Cb_gain_average( Cb_gain_averageState *st, enum Mode mode, Word16 gain_code, Word16 lsp[], Word16 lspAver[], Word16 bfi, Word16 prev_bf, Word16 pdfi, Word16 prev_pdf, Word16 inBackgroundNoise, Word16 voicedHangover, Flag *pOverflow ) argument
H A Ddec_amr.cpp573 Word16 gain_pit, gain_code, gain_code_mix, pit_sharp, pit_flag, pitch_fac;
924 evenSubfr, &gain_pit, &gain_code);
930 &gain_code);
935 &gain_code);
953 evenSubfr, &gain_pit, &gain_code);
959 &gain_code);
964 &gain_code);
1003 d_gain_code (st->pred_state, mode, index, code, &gain_code);
1008 &gain_code);
1011 &gain_code);
1376 Word16 gain_code; local
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dspstproc.cpp105 gain_code -- Word16 -- Decoded innovation gain
177 Word16 gain_code, /* i : Decoded innovation gain */
244 /* exc[i] = gain_pit*exc[i] + gain_code*code[i]; */
255 * gain_code Q1 Q1
265 L_temp += ((Word32) * (p_code++) * gain_code) << 1;
266 L_temp2 += ((Word32) * (p_code++) * gain_code) << 1;
296 * gain_code Q1 Q1
307 L_temp = ((Word32)y2[i] * gain_code);
172 subframePostProc( Word16 *speech, enum Mode mode, Word16 i_subfr, Word16 gain_pit, Word16 gain_code, Word16 *Aq, Word16 synth[], Word16 xn[], Word16 code[], Word16 y1[], Word16 y2[], Word16 *mem_syn, Word16 *mem_err, Word16 *mem_w0, Word16 *exc, Word16 *sharp, Flag *pOverflow ) argument
H A Dcod_amr.cpp857 Word16 gain_pit, gain_code;
1105 &gain_pit, &gain_code, &ana);
1114 gain_code, Aq, synth, xn, code, y1, y2, st->mem_syn,
1130 gain_code, Aq, synth, xn, code, y1, y2,
1168 gain_code, Aq, synth, xn, code, y1, y2,
1260 Word16 gain_pit, gain_code; local
1516 &gain_pit, &gain_code, &ana, pOverflow);
1526 gain_code, Aq, synth, xn, code, y1, y2, st->mem_syn,
1545 gain_code, Aq, synth, xn, code, y1, y2,
1584 gain_code, A
[all...]
H A Dqgain795.cpp515 Word16 gain_code; local
556 gain_code = shl(*gain_cod, sub(10, exp_gcode0, pOverflow), pOverflow); /* Q1 -> Q11 (-ec0) */
652 which is equiv. to g_code (Q10-ec0) < gain_code (Q11-ec0) */
654 if (g_code >= gain_code)

Completed in 119 milliseconds