/external/libopus/silk/fixed/ |
D | pitch_analysis_core_FIX.c | 64 opus_int nb_subfr, /* I number of subframes */ 74 opus_int nb_subfr, /* I number of subframes */ 92 …const opus_int nb_subfr, /* I number of 5 ms subframes … in silk_pitch_analysis_core() argument 132 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; in silk_pitch_analysis_core() 133 frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; in silk_pitch_analysis_core() 134 frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; in silk_pitch_analysis_core() 179 ALLOC( C, nb_subfr * CSTRIDE_8KHZ, opus_int16 ); in silk_pitch_analysis_core() 181 silk_memset( C, 0, (nb_subfr >> 1) * CSTRIDE_4KHZ * sizeof( opus_int16 ) ); in silk_pitch_analysis_core() 183 for( k = 0; k < nb_subfr >> 1; k++ ) { in silk_pitch_analysis_core() 228 if( nb_subfr == PE_MAX_NB_SUBFR ) { in silk_pitch_analysis_core() [all …]
|
D | find_pred_coefs_FIX.c | 55 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX() 58 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX() 77 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder in silk_find_pred_coefs_FIX() 87 ALLOC( WLTP, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 ); in silk_find_pred_coefs_FIX() 92 psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length, LTP_corrs_rshift ); in silk_find_pred_coefs_FIX() 96 …log_gain_Q7, WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr); 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() 112 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX() 119 … silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) ); 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 | 44 …const opus_int nb_subfr, /* I Number of subframe… in silk_residual_energy_FIX() argument 60 silk_assert( ( nb_subfr >> 1 ) * ( MAX_NB_SUBFR >> 1 ) == nb_subfr ); in silk_residual_energy_FIX() 61 for( i = 0; i < nb_subfr >> 1; i++ ) { in silk_residual_energy_FIX() 82 for( i = 0; i < nb_subfr; i++ ) { in silk_residual_energy_FIX()
|
D | find_LTP_FIX.c | 51 …const opus_int nb_subfr, /* I number of subframe… in silk_find_LTP_FIX() argument 75 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 141 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 150 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 165 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 178 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 199 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX() 207 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FIX()
|
D | burg_modified_FIX.c | 52 …const opus_int nb_subfr, /* I Number of subframes stacked in x … 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() 90 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified() 98 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified() 126 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified() 147 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified() 253 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified() 258 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified()
|
D | process_gains_FIX.c | 50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FIX() 60 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FIX() 90 …silk_memcpy( psEncCtrl->GainsUnq_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_in… in silk_process_gains_FIX() 95 &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_process_gains_FIX()
|
D | encode_frame_FIX.c | 168 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX() 287 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FIX() 294 … &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX() 297 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX() 314 psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; in silk_encode_frame_FIX() 351 … silk_memcpy( TempGains_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX() 365 … &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_LBRR_encode_FIX() 383 … silk_memcpy( psEncCtrl->Gains_Q16, TempGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX()
|
/external/libopus/silk/float/ |
D | pitch_analysis_core_FLP.c | 50 …opus_int nb_subfr, /* I number of subframes … 60 …opus_int nb_subfr, /* I number of subframes … 78 …const opus_int nb_subfr, /* I Number of 5 ms subframes … in silk_pitch_analysis_core_FLP() argument 122 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; in silk_pitch_analysis_core_FLP() 123 frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; in silk_pitch_analysis_core_FLP() 124 frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; in silk_pitch_analysis_core_FLP() 168 silk_memset(C, 0, sizeof(silk_float) * nb_subfr * ((PE_MAX_LAG >> 1) + 5)); in silk_pitch_analysis_core_FLP() 170 for( k = 0; k < nb_subfr >> 1; k++ ) { in silk_pitch_analysis_core_FLP() 224 silk_memset( pitch_out, 0, nb_subfr * sizeof( opus_int ) ); in silk_pitch_analysis_core_FLP() 289 for( k = 0; k < nb_subfr; k++ ) { in silk_pitch_analysis_core_FLP() [all …]
|
D | find_pred_coefs_FLP.c | 52 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FLP() 66 …psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_lengt… in silk_find_pred_coefs_FLP() 70 …og_gain_Q7, WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr ); 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() 85 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FLP() 91 … silk_memset( psEncCtrl->LTPCoef, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( silk_float ) ); 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 | process_gains_FLP.c | 50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FLP() 58 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FLP() 66 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FLP() 71 silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_process_gains_FLP() 76 &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_process_gains_FLP() 79 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_process_gains_FLP()
|
D | wrappers_FLP.c | 120 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP() 126 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP() 135 for( i = 0; i < psEnc->sCmn.nb_subfr * LTP_ORDER; i++ ) { in silk_NSQ_wrapper_FLP() 145 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP() 182 …const opus_int nb_subfr /* I number of subframes … in silk_quant_LTP_gains_FLP() argument 189 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP() 192 for( i = 0; i < nb_subfr * LTP_ORDER * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP() 196 …ns( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, W_Q18, mu_Q10, lowComplexity, nb_subfr ); in silk_quant_LTP_gains_FLP() 198 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP()
|
D | find_LTP_FLP.c | 43 …const opus_int nb_subfr, /* I number of subframes … in silk_find_LTP_FLP() argument 58 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP() 88 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP() 100 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP() 109 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP() 113 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP() 119 for( k = 0; k < nb_subfr; k++ ) { in silk_find_LTP_FLP()
|
D | encode_frame_FLP.c | 164 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP() 274 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP() 281 … &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP() 284 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP() 287 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP() 305 psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; in silk_encode_frame_FLP() 343 silk_memcpy( TempGains, psEncCtrl->Gains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); in silk_LBRR_encode_FLP() 356 … &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_LBRR_encode_FLP() 359 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_LBRR_encode_FLP() 370 silk_memcpy( psEncCtrl->Gains, TempGains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); in silk_LBRR_encode_FLP()
|
D | burg_modified_FLP.c | 44 …const opus_int nb_subfr, /* I number of subframes stacked in x … 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() 60 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_FLP() 77 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_FLP() 166 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_FLP()
|
D | find_LPC_FLP.c | 59 …res_nrg = silk_burg_modified_FLP( a, x, minInvGain, subfr_length, psEncC->nb_subfr, psEncC->predic… in silk_find_LPC_FLP() 61 …if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB… in silk_find_LPC_FLP() 103 …( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_S… in silk_find_LPC_FLP()
|
D | noise_shape_analysis_FLP.c | 186 for( k = 0; k < silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; k++ ) { in silk_noise_shape_analysis_FLP() 230 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP() 294 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP() 300 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP() 313 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP() 324 for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP() 357 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
|
D | main_FLP.h | 163 …const opus_int nb_subfr, /* I number of subframes … 174 …const opus_int nb_subfr, /* I number of subframes … 186 …const opus_int nb_subfr, /* I number of subframes … 208 …const opus_int nb_subfr /* I number of subframes …
|
/external/libopus/silk/ |
D | decode_pitch.c | 43 …const opus_int nb_subfr /* I number of sub frames … in silk_decode_pitch() argument 50 if( nb_subfr == PE_MAX_NB_SUBFR ) { in silk_decode_pitch() 54 silk_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); in silk_decode_pitch() 59 if( nb_subfr == PE_MAX_NB_SUBFR ) { in silk_decode_pitch() 63 silk_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); in silk_decode_pitch() 73 for( k = 0; k < nb_subfr; k++ ) { in silk_decode_pitch()
|
D | gain_quant.c | 44 …const opus_int nb_subfr /* I number of subframes … in silk_gains_quant() argument 49 for( k = 0; k < nb_subfr; k++ ) { in silk_gains_quant() 98 …const opus_int nb_subfr /* I number of subframes … in silk_gains_dequant() argument 103 for( k = 0; k < nb_subfr; k++ ) { in silk_gains_dequant() 129 …const opus_int nb_subfr /* I number of subframes … in silk_gains_ID() argument 136 for( k = 0; k < nb_subfr; k++ ) { in silk_gains_ID()
|
D | decoder_set_fs.c | 44 silk_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); in silk_decoder_set_fs() 48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs() 60 if( psDec->nb_subfr == MAX_NB_SUBFR ) { in silk_decoder_set_fs() 66 if( psDec->nb_subfr == MAX_NB_SUBFR ) { in silk_decoder_set_fs()
|
D | decode_parameters.c | 47 &psDec->LastGainIndex, condCoding == CODE_CONDITIONALLY, psDec->nb_subfr ); in silk_decode_parameters() 92 …indices.lagIndex, psDec->indices.contourIndex, psDecCtrl->pitchL, psDec->fs_kHz, psDec->nb_subfr ); in silk_decode_parameters() 97 for( k = 0; k < psDec->nb_subfr; k++ ) { in silk_decode_parameters() 110 … silk_memset( psDecCtrl->pitchL, 0, psDec->nb_subfr * sizeof( opus_int ) ); in silk_decode_parameters() 111 … silk_memset( psDecCtrl->LTPCoef_Q14, 0, LTP_ORDER * psDec->nb_subfr * sizeof( opus_int16 ) ); in silk_decode_parameters()
|
D | encode_indices.c | 83 for( i = 1; i < psEncC->nb_subfr; i++ ) { in silk_encode_indices() 107 if( psEncC->nb_subfr == MAX_NB_SUBFR ) { in silk_encode_indices() 145 … silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices() 146 … ( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices() 147 … ( psIndices->contourIndex < 12 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 2 ) || in silk_encode_indices() 148 … ( psIndices->contourIndex < 3 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 2 ) ); in silk_encode_indices() 159 for( k = 0; k < psEncC->nb_subfr; k++ ) { in silk_encode_indices()
|
D | PLC.c | 61 psDec->sPLC.nb_subfr = 2; in silk_PLC_Reset() 111 for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { in silk_PLC_update() 112 if( j == psDec->nb_subfr ) { in silk_PLC_update() 117 … temp_LTP_Gain_Q14 += psDecCtrl->LTPCoef_Q14[ ( psDec->nb_subfr - 1 - j ) * LTP_ORDER + i ]; in silk_PLC_update() 122 &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], in silk_PLC_update() 125 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); in silk_PLC_update() 162 …silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_i… in silk_PLC_update() 165 psPLC->nb_subfr = psDec->nb_subfr; in silk_PLC_update() 207 …silk_SMULWW( psDec->exc_Q14[ i + ( k + psPLC->nb_subfr - 2 ) * psPLC->subfr_length ], prevGain_Q10… 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 | quant_LTP_gains.c | 43 …const opus_int nb_subfr /* I number of subframe… in silk_quant_LTP_gains() argument 78 for( j = 0; j < nb_subfr; j++ ) { in silk_quant_LTP_gains() 110 silk_memcpy( cbk_index, temp_idx, nb_subfr * sizeof( opus_int8 ) ); in silk_quant_LTP_gains() 121 for( j = 0; j < nb_subfr; j++ ) { in silk_quant_LTP_gains()
|
D | control_codec.c | 161 buf_length_ms = silk_LSHIFT( psEnc->sCmn.nb_subfr * 5, 1 ) + LA_SHAPE_MS; in silk_setup_resamplers() 218 psEnc->sCmn.nb_subfr = PacketSize_ms == 10 ? 2 : 1; in silk_setup_fs() 228 psEnc->sCmn.nb_subfr = MAX_NB_SUBFR; in silk_setup_fs() 243 silk_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); in silk_setup_fs() 266 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { in silk_setup_fs() 272 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { in silk_setup_fs() 286 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_setup_fs() 290 if( psEnc->sCmn.nb_subfr == MAX_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()
|