Home
last modified time | relevance | path

Searched refs:nb_subfr (Results 1 – 25 of 57) sorted by relevance

123

/external/libopus/silk/fixed/
Dpitch_analysis_core_FIX.c64 opus_int nb_subfr, /* I number of subframes */
74 opus_int nb_subfr, /* I number of subframes */
93 …const opus_int nb_subfr, /* I number of 5 ms subframes … in silk_pitch_analysis_core() argument
135 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; in silk_pitch_analysis_core()
136 frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; in silk_pitch_analysis_core()
137 frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; in silk_pitch_analysis_core()
185 ALLOC( C, nb_subfr * CSTRIDE_8KHZ, opus_int16 ); in silk_pitch_analysis_core()
187 silk_memset( C, 0, (nb_subfr >> 1) * CSTRIDE_4KHZ * sizeof( opus_int16 ) ); in silk_pitch_analysis_core()
189 for( k = 0; k < nb_subfr >> 1; k++ ) { in silk_pitch_analysis_core()
234 if( nb_subfr == PE_MAX_NB_SUBFR ) { in silk_pitch_analysis_core()
[all …]
Dfind_pred_coefs_FIX.c54 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX()
57 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX()
74 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder in silk_find_pred_coefs_FIX()
85 ALLOC( xXLTP_Q17, psEnc->sCmn.nb_subfr * LTP_ORDER, opus_int32 ); in silk_find_pred_coefs_FIX()
86 ALLOC( XXLTP_Q17, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 ); in silk_find_pred_coefs_FIX()
90 psEncCtrl->pitchL, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch ); in silk_find_pred_coefs_FIX()
94 …CodGain_Q7, XXLTP_Q17, xXLTP_Q17, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch… in silk_find_pred_coefs_FIX()
101 …psEncCtrl->pitchL, invGains_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predi… in silk_find_pred_coefs_FIX()
110 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FIX()
117 … silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) ); in silk_find_pred_coefs_FIX()
[all …]
Dresidual_energy_FIX.c44 …const opus_int nb_subfr, /* I Number of subframe… in silk_residual_energy_FIX() argument
61 celt_assert( ( nb_subfr >> 1 ) * ( MAX_NB_SUBFR >> 1 ) == nb_subfr ); in silk_residual_energy_FIX()
62 for( i = 0; i < nb_subfr >> 1; i++ ) { in silk_residual_energy_FIX()
83 for( i = 0; i < nb_subfr; i++ ) { in silk_residual_energy_FIX()
Dburg_modified_FIX.c52 …const opus_int nb_subfr, /* I Number of subframes stacked in x … in silk_burg_modified_c() argument
68 celt_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()
86 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
94 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
122 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
143 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
254 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
259 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_c()
Dencode_frame_FIX.c172 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX()
235 for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FIX()
305 for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FIX()
344 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FIX()
357 … &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX()
360 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FIX()
377 psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; in silk_encode_frame_FIX()
414 … silk_memcpy( TempGains_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX()
428 … &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_LBRR_encode_FIX()
446 … silk_memcpy( psEncCtrl->Gains_Q16, TempGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX()
Dprocess_gains_FIX.c50 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()
/external/libopus/silk/float/
Dpitch_analysis_core_FLP.c50 …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 …]
Dwrappers_FLP.c121 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP()
127 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP()
136 for( i = 0; i < psEnc->sCmn.nb_subfr * LTP_ORDER; i++ ) { in silk_NSQ_wrapper_FLP()
146 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_NSQ_wrapper_FLP()
184 …const opus_int nb_subfr, /* I Number of subframes … in silk_quant_LTP_gains_FLP() argument
193 for( i = 0; i < nb_subfr * LTP_ORDER * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP()
196 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP()
200 … periodicity_index, sum_log_gain_Q7, &pred_gain_dB_Q7, XX_Q17, xX_Q17, subfr_len, nb_subfr, arch ); in silk_quant_LTP_gains_FLP()
202 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { in silk_quant_LTP_gains_FLP()
Dfind_pred_coefs_FLP.c53 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FLP()
65 …_FLP( XXLTP, xXLTP, res_pitch, psEncCtrl->pitchL, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_find_pred_coefs_FLP()
69 …trl->LTPredCodGain, XXLTP, xXLTP, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.arch… in silk_find_pred_coefs_FLP()
76 …psEncCtrl->pitchL, invGains, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLP… in silk_find_pred_coefs_FLP()
84 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_find_pred_coefs_FLP()
90 … silk_memset( psEncCtrl->LTPCoef, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( silk_float ) ); in silk_find_pred_coefs_FLP()
111 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); in silk_find_pred_coefs_FLP()
Dprocess_gains_FLP.c50 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()
Dencode_frame_FLP.c169 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP()
221 for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP()
293 for ( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP()
331 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP()
344 … &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP()
347 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); in silk_encode_frame_FLP()
350 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { in silk_encode_frame_FLP()
368 psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; in silk_encode_frame_FLP()
406 silk_memcpy( TempGains, psEncCtrl->Gains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); in silk_LBRR_encode_FLP()
419 … &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); in silk_LBRR_encode_FLP()
[all …]
Dburg_modified_FLP.c44 …const opus_int nb_subfr, /* I number of subframes stacked in x … in silk_burg_modified_FLP() argument
55 celt_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()
Dmain_FLP.h151 …const opus_int nb_subfr /* I number of subframes …
161 …const opus_int nb_subfr, /* I number of subframes …
173 …const opus_int nb_subfr, /* I number of subframes …
196 …const opus_int nb_subfr, /* I Number of subframes …
Dfind_LPC_FLP.c59 …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()
Dnoise_shape_analysis_FLP.c205 nSegs = silk_SMULBB( SUB_FRAME_LENGTH_MS, psEnc->sCmn.nb_subfr ) / 2; in silk_noise_shape_analysis_FLP()
237 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
292 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
306 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
317 for( k = 1; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
344 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { in silk_noise_shape_analysis_FLP()
/external/libopus/silk/
Ddecode_pitch.c43 …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 celt_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 celt_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); in silk_decode_pitch()
73 for( k = 0; k < nb_subfr; k++ ) { in silk_decode_pitch()
Dgain_quant.c44 …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()
99 …const opus_int nb_subfr /* I number of subframes … in silk_gains_dequant() argument
104 for( k = 0; k < nb_subfr; k++ ) { in silk_gains_dequant()
130 …const opus_int nb_subfr /* I number of subframes … in silk_gains_ID() argument
137 for( k = 0; k < nb_subfr; k++ ) { in silk_gains_ID()
DPLC.c62 psDec->sPLC.nb_subfr = 2; in silk_PLC_Reset()
113 for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { in silk_PLC_update()
114 if( j == psDec->nb_subfr ) { in silk_PLC_update()
119 … temp_LTP_Gain_Q14 += psDecCtrl->LTPCoef_Q14[ ( psDec->nb_subfr - 1 - j ) * LTP_ORDER + i ]; in silk_PLC_update()
124 &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], in silk_PLC_update()
127 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); in silk_PLC_update()
164 …silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_i… in silk_PLC_update()
167 psPLC->nb_subfr = psDec->nb_subfr; 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
184 … silk_SMULWW( exc_Q14[ i + ( k + nb_subfr - 2 ) * subfr_length ], prevGain_Q10[ k ] ), 8 ) ); in silk_PLC_energy()
[all …]
Ddecoder_set_fs.c44 celt_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()
Dencode_indices.c83 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()
Dquant_LTP_gains.c44 …const opus_int nb_subfr, /* I Number of subframe… in silk_quant_LTP_gains() argument
81 for( j = 0; j < nb_subfr; j++ ) { in silk_quant_LTP_gains()
112 silk_memcpy( cbk_index, temp_idx, nb_subfr * sizeof( opus_int8 ) ); in silk_quant_LTP_gains()
118 for( j = 0; j < nb_subfr; j++ ) { in silk_quant_LTP_gains()
124 if( nb_subfr == 2 ) { in silk_quant_LTP_gains()
Ddecode_parameters.c47 &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()
Dcontrol_codec.c160 buf_length_ms = silk_LSHIFT( psEnc->sCmn.nb_subfr * 5, 1 ) + LA_SHAPE_MS; in silk_setup_resamplers()
217 psEnc->sCmn.nb_subfr = PacketSize_ms == 10 ? 2 : 1; in silk_setup_fs()
227 psEnc->sCmn.nb_subfr = MAX_NB_SUBFR; in silk_setup_fs()
242 celt_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); in silk_setup_fs()
263 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { in silk_setup_fs()
269 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { in silk_setup_fs()
283 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); in silk_setup_fs()
287 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { in silk_setup_fs()
302 celt_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ); in silk_setup_fs()
/external/libopus/silk/x86/
DSigProc_FIX_sse.h43 …const opus_int nb_subfr, /* I Number of subframes stacked in x …
49 #define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D,… argument
50 …urg_modified_sse4_1(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
61 …const opus_int nb_subfr, /* I Number of subframes stacked in x …
65 # define silk_burg_modified(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, … argument
66 …) & OPUS_ARCHMASK])(res_nrg, res_nrg_Q, A_Q16, x, minInvGain_Q30, subfr_length, nb_subfr, D, arch))
/external/libopus/silk/fixed/x86/
Dburg_modified_FIX_sse4_1.c57 …const opus_int nb_subfr, /* I Number of subframes stacked in x … in silk_burg_modified_sse4_1() argument
75 celt_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()
98 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()
106 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()
134 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()
155 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()
351 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()
356 for( s = 0; s < nb_subfr; s++ ) { in silk_burg_modified_sse4_1()

123