Searched refs:L_FRAME (Results 1 - 25 of 25) sorted by relevance

/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dgsmamr_dec.h61 Description: Added comment to describe L_FRAME.
106 /* L_FRAME = (8 kHz) * (20 msec) = 160 samples */
107 #define L_FRAME 160 macro
H A Dpstfilt.h108 Word16 synth_buf[M + L_FRAME];
H A Dpstfilt.cpp208 Set_zero (state->synth_buf, L_FRAME + M);
248 memset(state->synth_buf, 0, sizeof(Word16)*(L_FRAME + M));
338 Copy (syn, syn_work , L_FRAME);
342 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
411 Copy (&syn_work[L_FRAME - M], &syn_work[-M], M);
466 Copy(syn, syn_work , L_FRAME);
470 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
575 Copy(&syn_work[L_FRAME - M], &syn_work[-M], M);
H A Dsp_dec.cpp594 Post_Process(st->postHP_state, synth, L_FRAME);
598 for (i = 0; i < L_FRAME; i++)
684 L_FRAME,
689 for (i = 0; i < L_FRAME; i++)
H A Dbgnscd.cpp252 for (i = 0; i < L_FRAME; i++)
421 for (i = L_FRAME - 1; i >= 0; i--)
H A Ddtx_dec.cpp1447 for (i=0; i < L_FRAME; i++)
1457 // divide with L_FRAME i.e subtract with log2(L_FRAME) = 7.32193
1517 for (i = L_FRAME - 1; i >= 0; i--)
1552 /* divide with L_FRAME i.e subtract with log2(L_FRAME) = 7.32193 */
H A Ddec_amr.cpp541 Word16 synth[], // o : synthesis speech (L_FRAME)
706 * The subframe size is L_SUBFR and the loop is repeated L_FRAME/L_SUBFR *
719 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
1339 Word16 synth[], /* o : synthesis speech (L_FRAME) */
1550 * The subframe size is L_SUBFR and the loop is repeated L_FRAME/L_SUBFR *
1563 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dcnst.h67 #define L_FRAME 160 /* Frame size */ macro
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dsp_enc.cpp481 new_speech = pointer to buffer of length L_FRAME that contains
600 new_speech = pointer to buffer of length L_FRAME that contains
657 Word16 syn[L_FRAME]; // Buffer for synthesis speech
669 for (i = 0; i < L_FRAME; i++)
678 Pre_Process (st->pre_state, new_speech, L_FRAME);
728 Word16 syn[L_FRAME]; /* Buffer for synthesis speech */
738 for (i = 0; i < L_FRAME; i++)
745 Pre_Process(st->pre_state, new_speech, L_FRAME);
H A Dgsmamr_enc.h65 Description: Added comment to describe L_FRAME.
106 /* L_FRAME = (8 kHz) * (20 msec) = 160 samples */
107 #define L_FRAME 160 macro
H A Dcod_amr.h116 * L_FRAME : Frame size. *
134 Word16 old_wsp[L_FRAME + PIT_MAX];
142 Word16 old_exc[L_FRAME + PIT_MAX + L_INTERPOL];
232 Word16 new_speech[] /* i : speech input (L_FRAME) */
261 Word16 new_speech[], /* i : speech input (L_FRAME) */
H A Dol_ltp.cpp151 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx);
223 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx,
H A Dcod_amr.cpp379 st->new_speech = st->old_speech + L_TOTAL - L_FRAME; // New speech
477 st->new_speech = st->old_speech + L_TOTAL - L_FRAME; /* New speech */
669 new_speech = pointer to buffer of length L_FRAME that contains
707 Word16 new_speech[]) // i : speech input (L_FRAME)
710 // Copy(new_speech,st->new_speech,L_FRAME);
739 Word16 new_speech[]) /* i : speech input (L_FRAME) */
744 /* Copy(new_speech,st->new_speech,L_FRAME); */
760 new_speech = pointer to buffer of length L_FRAME that contains
815 Word16 new_speech[], // i : speech input (L_FRAME)
855 Word16 T_op[L_FRAME/L_FRAME_BY
[all...]
H A Ddtx_enc.cpp896 for (i=0; i < L_FRAME; i++)
906 // divide with L_FRAME i.e subtract with log2(L_FRAME) = 7.32193
968 for (i = L_FRAME; i != 0; i--)
996 /* divide with L_FRAME i.e subtract with log2(L_FRAME) = 7.32193 */
H A Dp_ol_wgh.cpp742 Word16 scaled_signal[PIT_MAX + L_FRAME];
885 Word16 scaled_signal[PIT_MAX + L_FRAME];
H A Dpitch_ol.cpp749 Word16 scaled_signal[L_FRAME + PIT_MAX];
978 Word16 scaled_signal[L_FRAME + PIT_MAX];
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dpvamrwbdecoder_cnst.h81 #define L_FRAME 256 /* Frame size */ macro
H A De_pv_amrwbdec.h128 (2*L_FRAME + 1) + PIT_MAX + L_INTERPOL + NB_SUBFR*(M+1) \
H A Ddtx_decoder_amr_wb.cpp398 for (i = 0; i < L_FRAME; i++)
403 /* gain = level / sqrt(ener) * sqrt(L_FRAME) */
406 ener32 = Dot_product12(exc2, exc2, L_FRAME, &exp);
416 /* Multiply by sqrt(L_FRAME)=16, i.e. shift left by 4 */
419 for (i = 0; i < L_FRAME; i++)
483 for (i = 0; i < L_FRAME; i++)
489 /* log_en = (float)log10(L_frame_en/(float)L_FRAME)/(float)log10(2.0f); */
496 /* Divide by L_FRAME = 256, i.e subtract 8 in Q7 = 1024 */
H A Dpvamrwbdecoder.cpp303 int16 *Aq = &old_exc[(L_FRAME + 1) + PIT_MAX + L_INTERPOL];/* A(z) quantized for the 4 subframes */
311 int16 *HfIsf = &exc2[L_FRAME];
443 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
554 * The subframe size is L_SUBFR and the loop is repeated L_FRAME/L_SUBFR
571 for (i_subfr = 0; i_subfr < L_FRAME; i_subfr += L_SUBFR)
1136 (void *)&old_exc[L_FRAME],
1139 scale_signal(exc, L_FRAME, (int16)(-Q_new));
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
H A Dcnst.h28 #define L_FRAME 256 /* Frame size */ macro
H A Dcod_main.h38 Word16 old_speech[L_TOTAL - L_FRAME]; /* old speech vector at 12.8kHz */
63 Word16 old_hp_wsp[L_FRAME / OPL_DECIM + (PIT_MAX / OPL_DECIM)];
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A DvoAMRWBEnc.c97 Set_zero(cod_state->old_speech, L_TOTAL - L_FRAME);
126 Set_zero(cod_state->old_hp_wsp, (L_FRAME / 2) / OPL_DECIM + (PIT_MAX / OPL_DECIM));
167 Word16 old_wsp[L_FRAME + (PIT_MAX / OPL_DECIM)];
171 Word16 old_exc[(L_FRAME + 1) + PIT_MAX + L_INTERPOL];
197 Word16 exc2[L_FRAME]; /* excitation vector */
198 Word16 buf[L_FRAME]; /* VAD buffer */
229 * | <-- present frame (L_FRAME) ----> *
230 * p_window | <----- new speech (L_FRAME) ----> *
236 new_speech = old_speech + L_TOTAL - L_FRAME - L_FILT; /* New speech */
237 speech = old_speech + L_TOTAL - L_FRAME
[all...]
H A Dlp_dec2.c41 Word16 *p_x, x_buf[L_FRAME + L_MEM];
H A Ddtx.c258 for (i = 0; i < L_FRAME; i++)
263 /* gain = level / sqrt(ener) * sqrt(L_FRAME) */
266 ener32 = Dot_product12(exc2, exc2, L_FRAME, &exp);
276 /* Multiply by sqrt(L_FRAME)=16, i.e. shift left by 4 */
279 for (i = 0; i < L_FRAME; i++)
296 Word32 enr, /* i : residual energy (in L_FRAME) */
325 /* Find energy per sample (divide by L_FRAME=256), i.e subtract log2(256) = 8.0 (1024 in Q7) */

Completed in 243 milliseconds