/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | gsmamr_dec.h | 61 Description: Added comment to describe L_FRAME. 106 /* L_FRAME = (8 kHz) * (20 msec) = 160 samples */ 107 #define L_FRAME 160 macro
|
H A D | pstfilt.h | 108 Word16 synth_buf[M + L_FRAME];
|
H A D | pstfilt.cpp | 208 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 D | sp_dec.cpp | 594 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 D | bgnscd.cpp | 252 for (i = 0; i < L_FRAME; i++) 421 for (i = L_FRAME - 1; i >= 0; i--)
|
H A D | dtx_dec.cpp | 1447 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 D | dec_amr.cpp | 541 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 D | cnst.h | 67 #define L_FRAME 160 /* Frame size */ macro
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | sp_enc.cpp | 481 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 D | gsmamr_enc.h | 65 Description: Added comment to describe L_FRAME. 106 /* L_FRAME = (8 kHz) * (20 msec) = 160 samples */ 107 #define L_FRAME 160 macro
|
H A D | cod_amr.h | 116 * 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 D | ol_ltp.cpp | 151 *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 D | cod_amr.cpp | 379 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 D | dtx_enc.cpp | 896 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 D | p_ol_wgh.cpp | 742 Word16 scaled_signal[PIT_MAX + L_FRAME]; 885 Word16 scaled_signal[PIT_MAX + L_FRAME];
|
H A D | pitch_ol.cpp | 749 Word16 scaled_signal[L_FRAME + PIT_MAX]; 978 Word16 scaled_signal[L_FRAME + PIT_MAX];
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | pvamrwbdecoder_cnst.h | 81 #define L_FRAME 256 /* Frame size */ macro
|
H A D | e_pv_amrwbdec.h | 128 (2*L_FRAME + 1) + PIT_MAX + L_INTERPOL + NB_SUBFR*(M+1) \
|
H A D | dtx_decoder_amr_wb.cpp | 398 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 D | pvamrwbdecoder.cpp | 303 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 D | cnst.h | 28 #define L_FRAME 256 /* Frame size */ macro
|
H A D | cod_main.h | 38 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 D | voAMRWBEnc.c | 95 Set_zero(cod_state->old_speech, L_TOTAL - L_FRAME); 124 Set_zero(cod_state->old_hp_wsp, (L_FRAME / 2) / OPL_DECIM + (PIT_MAX / OPL_DECIM)); 165 Word16 old_wsp[L_FRAME + (PIT_MAX / OPL_DECIM)]; 169 Word16 old_exc[(L_FRAME + 1) + PIT_MAX + L_INTERPOL]; 195 Word16 exc2[L_FRAME]; /* excitation vector */ 196 Word16 buf[L_FRAME]; /* VAD buffer */ 227 * | <-- present frame (L_FRAME) ----> * 228 * p_window | <----- new speech (L_FRAME) ----> * 234 new_speech = old_speech + L_TOTAL - L_FRAME - L_FILT; /* New speech */ 235 speech = old_speech + L_TOTAL - L_FRAME [all...] |
H A D | lp_dec2.c | 41 Word16 *p_x, x_buf[L_FRAME + L_MEM];
|
H A D | dtx.c | 258 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) */
|