Home
last modified time | relevance | path

Searched refs:subfr_length (Results 1 – 25 of 36) sorted by relevance

12

/external/libopus/silk/float/
Dfind_LPC_FLP.c44 opus_int k, subfr_length; in silk_find_LPC_FLP() local
53 subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; in silk_find_LPC_FLP()
59 …res_nrg = silk_burg_modified_FLP( a, x, minInvGain, subfr_length, psEncC->nb_subfr, psEncC->predic… in silk_find_LPC_FLP()
64 …ilk_burg_modified_FLP( a_tmp, x + ( MAX_NB_SUBFR / 2 ) * subfr_length, minInvGain, subfr_length, M… in silk_find_LPC_FLP()
79 … silk_LPC_analysis_filter_FLP( LPC_res, a_tmp, x, 2 * subfr_length, psEncC->predictLPCOrder ); in silk_find_LPC_FLP()
81 …silk_energy_FLP( LPC_res + psEncC->predictLPCOrder, subfr_length - psEncC->predictL… in silk_find_LPC_FLP()
82 …silk_energy_FLP( LPC_res + psEncC->predictLPCOrder + subfr_length, subfr_length - psEncC->predictL… in silk_find_LPC_FLP()
Dburg_modified_FLP.c43 …const opus_int subfr_length, /* I input signal subframe length (incl. D preceding sa… in silk_burg_modified_FLP() argument
55 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); in silk_burg_modified_FLP()
58 C0 = silk_energy_FLP( x, nb_subfr * subfr_length ); in silk_burg_modified_FLP()
61 x_ptr = x + s * subfr_length; in silk_burg_modified_FLP()
63 C_first_row[ n - 1 ] += silk_inner_product_FLP( x_ptr, x_ptr + n, subfr_length - n ); in silk_burg_modified_FLP()
78 x_ptr = x + s * subfr_length; in silk_burg_modified_FLP()
80 tmp2 = x_ptr[ subfr_length - n - 1 ]; in silk_burg_modified_FLP()
83 C_last_row[ k ] -= x_ptr[ subfr_length - n - 1 ] * x_ptr[ subfr_length - n + k ]; in silk_burg_modified_FLP()
86 tmp2 += x_ptr[ subfr_length - n + k ] * Atmp; in silk_burg_modified_FLP()
90 CAb[ k ] -= tmp2 * x_ptr[ subfr_length - n + k - 1 ]; in silk_burg_modified_FLP()
[all …]
Dresidual_energy_FLP.c96 …const opus_int subfr_length, /* I Subframe length … in silk_residual_energy_FLP() argument
105 shift = LPC_order + subfr_length; in silk_residual_energy_FLP()
109 …silk_float )( gains[ 0 ] * gains[ 0 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); in silk_residual_energy_FLP()
110 …silk_float )( gains[ 1 ] * gains[ 1 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); in silk_residual_energy_FLP()
114 …silk_float )( gains[ 2 ] * gains[ 2 ] * silk_energy_FLP( LPC_res_ptr + 0 * shift, subfr_length ) ); in silk_residual_energy_FLP()
115 …silk_float )( gains[ 3 ] * gains[ 3 ] * silk_energy_FLP( LPC_res_ptr + 1 * shift, subfr_length ) ); in silk_residual_energy_FLP()
Dfind_pred_coefs_FLP.c66 …psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_lengt… in silk_find_pred_coefs_FLP()
78 …psEncCtrl->pitchL, invGains, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLP… in silk_find_pred_coefs_FLP()
88 psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FLP()
89 x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; in silk_find_pred_coefs_FLP()
90 x_ptr += psEnc->sCmn.subfr_length; in silk_find_pred_coefs_FLP()
113 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FLP()
Dfind_LTP_FLP.c42 …const opus_int subfr_length, /* I Subframe length … in silk_find_LTP_FLP() argument
61 silk_corrMatrix_FLP( lag_ptr, subfr_length, LTP_ORDER, WLTP_ptr ); in silk_find_LTP_FLP()
62 silk_corrVector_FLP( lag_ptr, r_ptr, subfr_length, LTP_ORDER, Rr ); in silk_find_LTP_FLP()
64 rr[ k ] = ( silk_float )silk_energy_FLP( r_ptr, subfr_length ); in silk_find_LTP_FLP()
75 temp = Wght[ k ] / ( nrg[ k ] * Wght[ k ] + 0.01f * subfr_length ); in silk_find_LTP_FLP()
79 r_ptr += subfr_length; in silk_find_LTP_FLP()
DLTP_analysis_filter_FLP.c40 …const opus_int subfr_length, /* I Length of each subfram… in silk_LTP_analysis_filter_FLP() argument
61 for( i = 0; i < subfr_length + pre_length; i++ ) { in silk_LTP_analysis_filter_FLP()
72 LTP_res_ptr += subfr_length + pre_length; in silk_LTP_analysis_filter_FLP()
73 x_ptr += subfr_length; in silk_LTP_analysis_filter_FLP()
Dprefilter_FLP.c133 …(silk_float)psEnc->sCmn.warping_Q16 / 65536.0f, psEnc->sCmn.subfr_length, psEnc->sCmn.shapingLPCOr… in silk_prefilter_FLP()
140 for( j = 1; j < psEnc->sCmn.subfr_length; j++ ) { in silk_prefilter_FLP()
143 P->sHarmHP = st_res[ psEnc->sCmn.subfr_length - 1 ]; in silk_prefilter_FLP()
145 …refilt_FLP( P, pxw, pxw, HarmShapeFIR, Tilt, LF_MA_shp, LF_AR_shp, lag, psEnc->sCmn.subfr_length ); in silk_prefilter_FLP()
147 px += psEnc->sCmn.subfr_length; in silk_prefilter_FLP()
148 pxw += psEnc->sCmn.subfr_length; in silk_prefilter_FLP()
Dmain_FLP.h162 …const opus_int subfr_length, /* I Subframe length …
173 …const opus_int subfr_length, /* I Length of each subfram…
185 …const opus_int subfr_length, /* I Subframe length …
/external/libopus/silk/fixed/
Dburg_modified_FIX.c51 …const opus_int subfr_length, /* I Input signal subframe length (incl. D prec… in silk_burg_modified_c() argument
68 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); in silk_burg_modified_c()
71 C0_64 = silk_inner_prod16_aligned_64( x, x, subfr_length*nb_subfr, arch ); in silk_burg_modified_c()
87 x_ptr = x + s * subfr_length; in silk_burg_modified_c()
90 … silk_inner_prod16_aligned_64( x_ptr, x_ptr + n, subfr_length - n, arch ), rshifts ); in silk_burg_modified_c()
97 x_ptr = x + s * subfr_length; in silk_burg_modified_c()
98 celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch ); in silk_burg_modified_c()
100 for ( i = n + subfr_length - D, d = 0; i < subfr_length; i++ ) in silk_burg_modified_c()
123 x_ptr = x + s * subfr_length; in silk_burg_modified_c()
125 …x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 16 - rshifts ); /* Q(16-rs… in silk_burg_modified_c()
[all …]
Dfind_LPC_FIX.c44 opus_int k, subfr_length; in silk_find_LPC_FIX() local
57 subfr_length = psEncC->subfr_length + psEncC->predictLPCOrder; in silk_find_LPC_FIX()
63 …silk_burg_modified( &res_nrg, &res_nrg_Q, a_Q16, x, minInvGain_Q30, subfr_length, psEncC->nb_subfr… in silk_find_LPC_FIX()
69 …fied( &res_tmp_nrg, &res_tmp_nrg_Q, a_tmp_Q16, x + 2 * subfr_length, minInvGain_Q30, subfr_length,… in silk_find_LPC_FIX()
87 ALLOC( LPC_res, 2 * subfr_length, opus_int16 ); in silk_find_LPC_FIX()
98 …silk_LPC_analysis_filter( LPC_res, x, a_tmp_Q12, 2 * subfr_length, psEncC->predictLPCOrder, psEncC… in silk_find_LPC_FIX()
100 …res_nrg0, &rshift0, LPC_res + psEncC->predictLPCOrder, subfr_length - psEncC->predi… in silk_find_LPC_FIX()
101 …hift( &res_nrg1, &rshift1, LPC_res + psEncC->predictLPCOrder + subfr_length, subfr_length - psEncC… in silk_find_LPC_FIX()
Dprefilter_FIX.c124 ALLOC( x_filt_Q12, psEnc->sCmn.subfr_length, opus_int32 ); in silk_prefilter_FIX()
125 ALLOC( st_res_Q2, psEnc->sCmn.subfr_length, opus_int32 ); in silk_prefilter_FIX()
143 …psEnc->sCmn.warping_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.shapingLPCOrder, psEnc->sCmn.arch ); in silk_prefilter_FIX()
153 for( j = 1; j < psEnc->sCmn.subfr_length; j++ ) { in silk_prefilter_FIX()
156 P->sHarmHP_Q2 = st_res_Q2[ psEnc->sCmn.subfr_length - 1 ]; in silk_prefilter_FIX()
158 … x_filt_Q12, pxw_Q3, HarmShapeFIRPacked_Q12, Tilt_Q14, LF_shp_Q14, lag, psEnc->sCmn.subfr_length ); in silk_prefilter_FIX()
160 px += psEnc->sCmn.subfr_length; in silk_prefilter_FIX()
161 pxw_Q3 += psEnc->sCmn.subfr_length; in silk_prefilter_FIX()
DLTP_analysis_filter_FIX.c40 …const opus_int subfr_length, /* I Length of each sub… in silk_LTP_analysis_filter_FIX() argument
64 for( i = 0; i < subfr_length + pre_length; i++ ) { in silk_LTP_analysis_filter_FIX()
86 LTP_res_ptr += subfr_length + pre_length; in silk_LTP_analysis_filter_FIX()
87 x_ptr += subfr_length; in silk_LTP_analysis_filter_FIX()
Dfind_pred_coefs_FIX.c91 res_pitch, psEncCtrl->pitchL, Wght_Q15, psEnc->sCmn.subfr_length, in silk_find_pred_coefs_FIX()
104 …psEncCtrl->pitchL, invGains_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predi… in silk_find_pred_coefs_FIX()
115 psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FIX()
116 x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; in silk_find_pred_coefs_FIX()
117 x_ptr += psEnc->sCmn.subfr_length; in silk_find_pred_coefs_FIX()
143 … psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder, psEnc->sCmn.arch ); in silk_find_pred_coefs_FIX()
Dresidual_energy_FIX.c43 …const opus_int subfr_length, /* I Subframe length … in silk_residual_energy_FIX() argument
57 offset = LPC_order + subfr_length; in silk_residual_energy_FIX()
70 … silk_sum_sqr_shift( &nrgs[ i * ( MAX_NB_SUBFR >> 1 ) + j ], &rshift, LPC_res_ptr, subfr_length ); in silk_residual_energy_FIX()
Dfind_LTP_FIX.c50 …const opus_int subfr_length, /* I subframe length … in silk_find_LTP_FIX() argument
79 … silk_sum_sqr_shift( &rr[ k ], &rr_shifts, r_ptr, subfr_length ); /* rr[ k ] in Q( -rr_shifts ) */ in silk_find_LTP_FIX()
88 …silk_corrMatrix_FIX( lag_ptr, subfr_length, LTP_ORDER, LTP_CORRS_HEAD_ROOM, WLTP_ptr, &corr_rshift… in silk_find_LTP_FIX()
91 …silk_corrVector_FIX( lag_ptr, r_ptr, subfr_length, LTP_ORDER, Rr, corr_rshifts[ k ], arch ); /* R… in silk_find_LTP_FIX()
114 …silk_RSHIFT( silk_SMULWB( (opus_int32)subfr_length, 655 ), corr_rshifts[ k ] - extra_shifts ); … in silk_find_LTP_FIX()
136 r_ptr += subfr_length; in silk_find_LTP_FIX()
Dmain_FIX.h177 …const opus_int subfr_length, /* I subframe length …
190 …const opus_int subfr_length, /* I Length of each sub…
203 …const opus_int subfr_length, /* I Subframe length …
/external/libopus/silk/fixed/x86/
Dburg_modified_FIX_sse.c56 …const opus_int subfr_length, /* I Input signal subframe length (incl. D prec… in silk_burg_modified_sse4_1() argument
75 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); in silk_burg_modified_sse4_1()
78 silk_sum_sqr_shift( &C0, &rshifts, x, nb_subfr * subfr_length ); in silk_burg_modified_sse4_1()
99 x_ptr = x + s * subfr_length; in silk_burg_modified_sse4_1()
102 … silk_inner_prod16_aligned_64( x_ptr, x_ptr + n, subfr_length - n, arch ), rshifts ); in silk_burg_modified_sse4_1()
109 x_ptr = x + s * subfr_length; in silk_burg_modified_sse4_1()
110 celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch ); in silk_burg_modified_sse4_1()
112 for ( i = n + subfr_length - D, d = 0; i < subfr_length; i++ ) in silk_burg_modified_sse4_1()
135 x_ptr = x + s * subfr_length; in silk_burg_modified_sse4_1()
137 …x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 16 - rshifts ); /* Q(16-rs… in silk_burg_modified_sse4_1()
[all …]
/external/libopus/silk/x86/
DSigProc_FIX_sse.h42 …const opus_int subfr_length, /* I Input signal subframe length (incl. D prec…
49 #define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D,… argument
50 …lk_burg_modified_sse4_1(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, a…
60 …const opus_int subfr_length, /* I Input signal subframe length (incl. D prec…
65 # define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, … argument
66 …arch) & OPUS_ARCHMASK])(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, a…
DNSQ_sse.c178 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ_sse4_1()
204 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_sse4_1()
218 offset_Q10, psEncC->subfr_length, &(table[32]) ); in silk_NSQ_sse4_1()
224 …offset_Q10, psEncC->subfr_length, psEncC->shapingLPCOrder, psEncC->predictLPCOrder, psEncC->arch ); in silk_NSQ_sse4_1()
227 x_Q3 += psEncC->subfr_length; in silk_NSQ_sse4_1()
228 pulses += psEncC->subfr_length; in silk_NSQ_sse4_1()
229 pxq += psEncC->subfr_length; in silk_NSQ_sse4_1()
638 for( i = 0; i < psEncC->subfr_length - 3; i += 4 ) { in silk_nsq_scale_states_sse4_1()
655 for( ; i < psEncC->subfr_length; i++ ) { in silk_nsq_scale_states_sse4_1()
/external/libopus/silk/
DPLC.c61 psDec->sPLC.subfr_length = 20; in silk_PLC_Reset()
113 for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { in silk_PLC_update()
166 psPLC->subfr_length = psDec->subfr_length; in silk_PLC_update()
171 const opus_int32 *exc_Q14, const opus_int32 *prevGain_Q10, int subfr_length, int nb_subfr) in silk_PLC_energy() argument
177 ALLOC( exc_buf, 2*subfr_length, opus_int16 ); in silk_PLC_energy()
182 for( i = 0; i < subfr_length; i++ ) { in silk_PLC_energy()
184 … silk_SMULWW( exc_Q14[ i + ( k + nb_subfr - 2 ) * subfr_length ], prevGain_Q10[ k ] ), 8 ) ); in silk_PLC_energy()
186 exc_buf_ptr += subfr_length; in silk_PLC_energy()
189 silk_sum_sqr_shift( energy1, shift1, exc_buf, subfr_length ); in silk_PLC_energy()
190 silk_sum_sqr_shift( energy2, shift2, &exc_buf[ subfr_length ], subfr_length ); in silk_PLC_energy()
[all …]
Ddecode_core.c60 ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); in silk_decode_core()
61 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); in silk_decode_core()
147 …silk_memcpy( &psDec->outBuf[ psDec->ltp_mem_length ], xq, 2 * psDec->subfr_length * sizeof( opus_i… in silk_decode_core()
150 …ilk_LPC_analysis_filter( &sLTP[ start_idx ], &psDec->outBuf[ start_idx + k * psDec->subfr_length ], in silk_decode_core()
175 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core()
197 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core()
231 … silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); in silk_decode_core()
232 pexc_Q14 += psDec->subfr_length; in silk_decode_core()
233 pxq += psDec->subfr_length; in silk_decode_core()
DNSQ.c123 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ_c()
149 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_c()
161 …offset_Q10, psEncC->subfr_length, psEncC->shapingLPCOrder, psEncC->predictLPCOrder, psEncC->arch ); in silk_NSQ_c()
163 x_Q3 += psEncC->subfr_length; in silk_NSQ_c()
164 pulses += psEncC->subfr_length; in silk_NSQ_c()
165 pxq += psEncC->subfr_length; in silk_NSQ_c()
386 for( i = 0; i < psEncC->subfr_length; i++ ) { in silk_nsq_scale_states()
DCNG.c115 …( &psCNG->CNG_exc_buf_Q14[ psDec->subfr_length ], psCNG->CNG_exc_buf_Q14, ( psDec->nb_subfr - 1 ) … in silk_CNG()
116 … psCNG->CNG_exc_buf_Q14, &psDec->exc_Q14[ subfr * psDec->subfr_length ], psDec->subfr_length * s… in silk_CNG()
Ddecoder_set_fs.c47 psDec->subfr_length = silk_SMULBB( SUB_FRAME_LENGTH_MS, fs_kHz ); in silk_decoder_set_fs()
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
DNSQ_del_dec.c170 decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); in silk_NSQ_del_dec_c()
192 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ_del_dec_c()
252 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_del_dec_c()
265 … Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, in silk_NSQ_del_dec_c()
268 x_Q3 += psEncC->subfr_length; in silk_NSQ_del_dec_c()
269 pulses += psEncC->subfr_length; in silk_NSQ_del_dec_c()
270 pxq += psEncC->subfr_length; in silk_NSQ_del_dec_c()
295 …silk_memcpy( NSQ->sLPC_Q14, &psDD->sLPC_Q14[ psEncC->subfr_length ], NSQ_LPC_BUF_LENGTH * sizeof( … in silk_NSQ_del_dec_c()
664 for( i = 0; i < psEncC->subfr_length; i++ ) { in silk_nsq_del_dec_scale_states()

12