/external/libopus/silk/float/ |
D | find_LPC_FLP.c | 44 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()
|
D | burg_modified_FLP.c | 43 …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 …]
|
D | residual_energy_FLP.c | 96 …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()
|
D | find_pred_coefs_FLP.c | 66 …psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_lengt… in silk_find_pred_coefs_FLP() 77 …psEncCtrl->pitchL, invGains, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLP… in silk_find_pred_coefs_FLP() 87 psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FLP() 88 x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; in silk_find_pred_coefs_FLP() 89 x_ptr += psEnc->sCmn.subfr_length; in silk_find_pred_coefs_FLP() 112 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FLP()
|
D | find_LTP_FLP.c | 42 …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()
|
D | LTP_analysis_filter_FLP.c | 40 …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()
|
D | prefilter_FLP.c | 133 …(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()
|
D | main_FLP.h | 162 …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 …
|
D | process_gains_FLP.c | 56 …w( 2.0f, 0.33f * ( 21.0f - psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) ) ) / psEnc->sCmn.subfr_length ); in silk_process_gains_FLP()
|
/external/libopus/silk/fixed/ |
D | burg_modified_FIX.c | 51 …const opus_int subfr_length, /* I Input signal subframe length (incl. D prec… in silk_burg_modified() argument 67 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); in silk_burg_modified() 70 silk_sum_sqr_shift( &C0, &rshifts, x, nb_subfr * subfr_length ); in silk_burg_modified() 91 x_ptr = x + s * subfr_length; in silk_burg_modified() 94 silk_inner_prod16_aligned_64( x_ptr, x_ptr + n, subfr_length - n ), rshifts ); in silk_burg_modified() 101 x_ptr = x + s * subfr_length; in silk_burg_modified() 102 celt_pitch_xcorr(x_ptr, x_ptr + 1, xcorr, subfr_length - D, D, arch ); in silk_burg_modified() 104 for ( i = n + subfr_length - D, d = 0; i < subfr_length; i++ ) in silk_burg_modified() 127 x_ptr = x + s * subfr_length; in silk_burg_modified() 129 …x2 = -silk_LSHIFT32( (opus_int32)x_ptr[ subfr_length - n - 1 ], 16 - rshifts ); /* Q(16-rs… in silk_burg_modified() [all …]
|
D | find_LPC_FIX.c | 44 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 ); 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()
|
D | prefilter_FIX.c | 114 ALLOC( x_filt_Q12, psEnc->sCmn.subfr_length, opus_int32 ); in silk_prefilter_FIX() 115 ALLOC( st_res_Q2, psEnc->sCmn.subfr_length, opus_int32 ); in silk_prefilter_FIX() 133 psEnc->sCmn.warping_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.shapingLPCOrder ); in silk_prefilter_FIX() 143 for( j = 1; j < psEnc->sCmn.subfr_length; j++ ) { in silk_prefilter_FIX() 146 P->sHarmHP_Q2 = st_res_Q2[ psEnc->sCmn.subfr_length - 1 ]; in silk_prefilter_FIX() 148 … x_filt_Q12, pxw_Q3, HarmShapeFIRPacked_Q12, Tilt_Q14, LF_shp_Q14, lag, psEnc->sCmn.subfr_length ); in silk_prefilter_FIX() 150 px += psEnc->sCmn.subfr_length; in silk_prefilter_FIX() 151 pxw_Q3 += psEnc->sCmn.subfr_length; in silk_prefilter_FIX()
|
D | LTP_analysis_filter_FIX.c | 40 …const opus_int subfr_length, /* I Length of each sub… in silk_LTP_analysis_filter_FIX() argument 61 for( i = 0; i < subfr_length + pre_length; i++ ) { in silk_LTP_analysis_filter_FIX() 81 LTP_res_ptr += subfr_length + pre_length; in silk_LTP_analysis_filter_FIX() 82 x_ptr += subfr_length; in silk_LTP_analysis_filter_FIX()
|
D | find_pred_coefs_FIX.c | 91 res_pitch, psEncCtrl->pitchL, Wght_Q15, psEnc->sCmn.subfr_length, in silk_find_pred_coefs_FIX() 103 …psEncCtrl->pitchL, invGains_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predi… in silk_find_pred_coefs_FIX() 114 psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FIX() 115 x_pre_ptr += psEnc->sCmn.subfr_length + psEnc->sCmn.predictLPCOrder; in silk_find_pred_coefs_FIX() 116 x_ptr += psEnc->sCmn.subfr_length; in silk_find_pred_coefs_FIX() 142 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FIX()
|
D | residual_energy_FIX.c | 43 …const opus_int subfr_length, /* I Subframe length … in silk_residual_energy_FIX() argument 56 offset = LPC_order + subfr_length; in silk_residual_energy_FIX() 69 … silk_sum_sqr_shift( &nrgs[ i * ( MAX_NB_SUBFR >> 1 ) + j ], &rshift, LPC_res_ptr, subfr_length ); in silk_residual_energy_FIX()
|
D | find_LTP_FIX.c | 50 …const opus_int subfr_length, /* I subframe length … in silk_find_LTP_FIX() argument 78 … silk_sum_sqr_shift( &rr[ k ], &rr_shifts, r_ptr, subfr_length ); /* rr[ k ] in Q( -rr_shifts ) */ in silk_find_LTP_FIX() 87 …silk_corrMatrix_FIX( lag_ptr, subfr_length, LTP_ORDER, LTP_CORRS_HEAD_ROOM, WLTP_ptr, &corr_rshift… in silk_find_LTP_FIX() 90 …silk_corrVector_FIX( lag_ptr, r_ptr, subfr_length, LTP_ORDER, Rr, corr_rshifts[ k ] ); /* Rr_fix_… in silk_find_LTP_FIX() 113 …silk_RSHIFT( silk_SMULWB( (opus_int32)subfr_length, 655 ), corr_rshifts[ k ] - extra_shifts ); … in silk_find_LTP_FIX() 135 r_ptr += subfr_length; in silk_find_LTP_FIX()
|
D | main_FIX.h | 166 …const opus_int subfr_length, /* I subframe length … 178 …const opus_int subfr_length, /* I Length of each sub… 191 …const opus_int subfr_length, /* I Subframe length …
|
/external/libopus/silk/ |
D | PLC.c | 60 psDec->sPLC.subfr_length = 20; in silk_PLC_Reset() 111 for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { in silk_PLC_update() 164 psPLC->subfr_length = psDec->subfr_length; in silk_PLC_update() 190 ALLOC( exc_buf, 2*psPLC->subfr_length, opus_int16 ); in silk_PLC_conceal() 205 for( i = 0; i < psPLC->subfr_length; i++ ) { in silk_PLC_conceal() 207 …silk_SMULWW( psDec->exc_Q14[ i + ( k + psPLC->nb_subfr - 2 ) * psPLC->subfr_length ], prevGain_Q10… in silk_PLC_conceal() 209 exc_buf_ptr += psPLC->subfr_length; in silk_PLC_conceal() 212 silk_sum_sqr_shift( &energy1, &shift1, exc_buf, psPLC->subfr_length ); in silk_PLC_conceal() 213 silk_sum_sqr_shift( &energy2, &shift2, &exc_buf[ psPLC->subfr_length ], psPLC->subfr_length ); in silk_PLC_conceal() 217 …rand_ptr = &psDec->exc_Q14[ silk_max_int( 0, ( psPLC->nb_subfr - 1 ) * psPLC->subfr_length - RAND_… in silk_PLC_conceal() [all …]
|
D | decode_core.c | 59 ALLOC( res_Q14, psDec->subfr_length, opus_int32 ); in silk_decode_core() 60 ALLOC( sLPC_Q14, psDec->subfr_length + MAX_LPC_ORDER, opus_int32 ); in silk_decode_core() 146 …silk_memcpy( &psDec->outBuf[ psDec->ltp_mem_length ], xq, 2 * psDec->subfr_length * sizeof( opus_i… in silk_decode_core() 149 …ilk_LPC_analysis_filter( &sLTP[ start_idx ], &psDec->outBuf[ start_idx + k * psDec->subfr_length ], in silk_decode_core() 174 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core() 196 for( i = 0; i < psDec->subfr_length; i++ ) { in silk_decode_core() 230 … silk_memcpy( sLPC_Q14, &sLPC_Q14[ psDec->subfr_length ], MAX_LPC_ORDER * sizeof( opus_int32 ) ); in silk_decode_core() 231 pexc_Q14 += psDec->subfr_length; in silk_decode_core() 232 pxq += psDec->subfr_length; in silk_decode_core()
|
D | CNG.c | 116 …( &psCNG->CNG_exc_buf_Q14[ psDec->subfr_length ], psCNG->CNG_exc_buf_Q14, ( psDec->nb_subfr - 1 ) … in silk_CNG() 117 … psCNG->CNG_exc_buf_Q14, &psDec->exc_Q14[ subfr * psDec->subfr_length ], psDec->subfr_length * s… in silk_CNG()
|
D | NSQ.c | 117 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ() 143 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ() 155 offset_Q10, psEncC->subfr_length, psEncC->shapingLPCOrder, psEncC->predictLPCOrder ); in silk_NSQ() 157 x_Q3 += psEncC->subfr_length; in silk_NSQ() 158 pulses += psEncC->subfr_length; in silk_NSQ() 159 pxq += psEncC->subfr_length; in silk_NSQ() 403 for( i = 0; i < psEncC->subfr_length; i++ ) { in silk_nsq_scale_states()
|
D | decoder_set_fs.c | 47 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()
|
D | NSQ_del_dec.c | 164 decisionDelay = silk_min_int( DECISION_DELAY, psEncC->subfr_length ); in silk_NSQ_del_dec() 186 ALLOC( x_sc_Q10, psEncC->subfr_length, opus_int32 ); in silk_NSQ_del_dec() 246 … silk_LPC_analysis_filter( &sLTP[ start_idx ], &NSQ->xq[ start_idx + k * psEncC->subfr_length ], in silk_NSQ_del_dec() 259 … Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, in silk_NSQ_del_dec() 262 x_Q3 += psEncC->subfr_length; in silk_NSQ_del_dec() 263 pulses += psEncC->subfr_length; in silk_NSQ_del_dec() 264 pxq += psEncC->subfr_length; in silk_NSQ_del_dec() 289 …silk_memcpy( NSQ->sLPC_Q14, &psDD->sLPC_Q14[ psEncC->subfr_length ], NSQ_LPC_BUF_LENGTH * sizeof( … in silk_NSQ_del_dec() 667 for( i = 0; i < psEncC->subfr_length; i++ ) { in silk_nsq_del_dec_scale_states()
|
D | structs.h | 155 …opus_int subfr_length; /* Subframe length (samples) … member 244 opus_int subfr_length; member 271 …opus_int subfr_length; /* Subframe length (samples) … member
|
D | control_codec.c | 285 psEnc->sCmn.subfr_length = SUB_FRAME_LENGTH_MS * fs_kHz; in silk_setup_fs() 286 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_setup_fs() 308 silk_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ); in silk_setup_fs()
|