Home
last modified time | relevance | path

Searched refs:Gains_Q16 (Results 1 – 20 of 20) sorted by relevance

/external/libopus/silk/fixed/
Dprocess_gains_FIX.c51 …psEncCtrl->Gains_Q16[ k ] = silk_SMLAWB( psEncCtrl->Gains_Q16[ k ], psEncCtrl->Gains_Q16[ k ], s_Q… in silk_process_gains_FIX()
73 gain = psEncCtrl->Gains_Q16[ k ]; in silk_process_gains_FIX()
81 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 8 ); /* Q16 */ in silk_process_gains_FIX()
85 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 16 ); /* Q16 */ 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()
94 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, psEncCtrl->Gains_Q16, in silk_process_gains_FIX()
Dencode_frame_FIX.c199 …sEncCtrl.Tilt_Q14, sEncCtrl.LF_shp_Q14, sEncCtrl.Gains_Q16, sEncCtrl.pitchL, sEncCtrl.Lambda_Q10, … in silk_encode_frame_FIX()
204 …sEncCtrl.Tilt_Q14, sEncCtrl.LF_shp_Q14, sEncCtrl.Gains_Q16, sEncCtrl.pitchL, sEncCtrl.Lambda_Q10, … in silk_encode_frame_FIX()
290 …sEncCtrl.Gains_Q16[ i ] = silk_LSHIFT_SAT32( silk_SMULWB( sEncCtrl.GainsUnq_Q16[ i ], gainMult_Q8 … in silk_encode_frame_FIX()
295 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, sEncCtrl.Gains_Q16, in silk_encode_frame_FIX()
353 … silk_memcpy( TempGains_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX()
366 silk_gains_dequant( psEncCtrl->Gains_Q16, psIndices_LBRR->GainsIndices, in silk_LBRR_encode_FIX()
376 …psEncCtrl->Gains_Q16, psEncCtrl->pitchL, psEncCtrl->Lambda_Q10, psEncCtrl->LTP_scale_Q14, psEnc->s… in silk_LBRR_encode_FIX()
381 …psEncCtrl->Gains_Q16, psEncCtrl->pitchL, psEncCtrl->Lambda_Q10, psEncCtrl->LTP_scale_Q14, psEnc->s… in silk_LBRR_encode_FIX()
385 … silk_memcpy( psEncCtrl->Gains_Q16, TempGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); in silk_LBRR_encode_FIX()
Dnoise_shape_analysis_FIX.c317 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( tmp32, 16 - Qnrg ); in silk_noise_shape_analysis_FIX()
322 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
323 …if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int… in silk_noise_shape_analysis_FIX()
324 psEncCtrl->Gains_Q16[ k ] = silk_int32_MAX; in silk_noise_shape_analysis_FIX()
326 psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); in silk_noise_shape_analysis_FIX()
366 psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); in silk_noise_shape_analysis_FIX()
367 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
368 psEncCtrl->Gains_Q16[ k ] = silk_ADD_POS_SAT32( psEncCtrl->Gains_Q16[ k ], gain_add_Q16 ); in silk_noise_shape_analysis_FIX()
Dfind_pred_coefs_FIX.c56 min_gain_Q16 = silk_min( min_gain_Q16, psEncCtrl->Gains_Q16[ i ] ); in silk_find_pred_coefs_FIX()
60 silk_assert( psEncCtrl->Gains_Q16[ i ] > 0 ); in silk_find_pred_coefs_FIX()
62 invGains_Q16[ i ] = silk_DIV32_varQ( min_gain_Q16, psEncCtrl->Gains_Q16[ i ], 16 - 2 ); in silk_find_pred_coefs_FIX()
Dstructs_FIX.h82 opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; member
/external/libopus/silk/x86/
Dmain_sse.h97 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
106 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ argument
108 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
124 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
131 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ argument
133 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
151 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
160 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ argument
162 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
178 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
[all …]
DNSQ_sse.c48 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
85 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … in silk_NSQ_sse4_1()
212 …_sse4_1( psEncC, NSQ, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, pitchL, psIndic… in silk_NSQ_sse4_1()
217 … AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], in silk_NSQ_sse4_1()
223 …AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q1… in silk_NSQ_sse4_1()
612 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ in silk_nsq_scale_states_sse4_1()
622 inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); in silk_nsq_scale_states_sse4_1()
626 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_scale_states_sse4_1()
627 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_scale_states_sse4_1()
660 NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; in silk_nsq_scale_states_sse4_1()
DNSQ_del_dec_sse.c76 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
126 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … in silk_NSQ_del_dec_sse4_1()
240 silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gains_Q16[ 1 ] ), 14 ) ); in silk_NSQ_del_dec_sse4_1()
260 …psEncC->nStatesDelayedDecision, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionD… in silk_NSQ_del_dec_sse4_1()
264Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, in silk_NSQ_del_dec_sse4_1()
286 Gain_Q10 = silk_RSHIFT32( Gains_Q16[ psEncC->nb_subfr - 1 ], 6 ); in silk_NSQ_del_dec_sse4_1()
736 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ in silk_nsq_del_dec_scale_states_sse4_1()
748 inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); in silk_nsq_del_dec_scale_states_sse4_1()
753 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_del_dec_scale_states_sse4_1()
754 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_del_dec_scale_states_sse4_1()
[all …]
Dx86_silk_map.c81 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
125 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
/external/libopus/silk/fixed/mips/
Dnoise_shape_analysis_FIX_mipsr1.h202 …psEncCtrl->Gains_Q16[ k ] = (silk_LSHIFT32( silk_LIMIT( (tmp32), silk_RSHIFT32( silk_int32_MIN, (1… in silk_noise_shape_analysis_FIX()
208 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
209 …if ( silk_SMULWW( silk_RSHIFT_ROUND( psEncCtrl->Gains_Q16[ k ], 1 ), gain_mult_Q16 ) >= ( silk_int… in silk_noise_shape_analysis_FIX()
210 psEncCtrl->Gains_Q16[ k ] = silk_int32_MAX; in silk_noise_shape_analysis_FIX()
212 psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); in silk_noise_shape_analysis_FIX()
252 psEncCtrl->Gains_Q16[ k ] = silk_SMULWW( psEncCtrl->Gains_Q16[ k ], gain_mult_Q16 ); in silk_noise_shape_analysis_FIX()
253 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
254 psEncCtrl->Gains_Q16[ k ] = silk_ADD_POS_SAT32( psEncCtrl->Gains_Q16[ k ], gain_add_Q16 ); in silk_noise_shape_analysis_FIX()
/external/libopus/silk/
DNSQ.c46 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
89 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … in silk_NSQ_c()
157 …_states( psEncC, NSQ, x_Q3, x_sc_Q10, sLTP, sLTP_Q15, k, LTP_scale_Q14, Gains_Q16, pitchL, psIndic… in silk_NSQ_c()
160 …AR_shp_Q13, lag, HarmShapeFIRPacked_Q14, Tilt_Q14[ k ], LF_shp_Q14[ k ], Gains_Q16[ k ], Lambda_Q1… in silk_NSQ_c()
365 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ in silk_nsq_scale_states()
374 inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); in silk_nsq_scale_states()
378 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_scale_states()
379 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_scale_states()
391 NSQ->prev_gain_Q16 = Gains_Q16[ subfr ]; in silk_nsq_scale_states()
Dmain.h257 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
265 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ argument
267 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
283 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
291 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14, arch) \ argument
293 … HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, pitchL, Lambda_Q10, LTP_scale_Q14))
Ddecode_core.c106 Gain_Q10 = silk_RSHIFT( psDecCtrl->Gains_Q16[ k ], 6 ); in silk_decode_core()
107 inv_gain_Q31 = silk_INVERSE32_varQ( psDecCtrl->Gains_Q16[ k ], 47 ); in silk_decode_core()
110 if( psDecCtrl->Gains_Q16[ k ] != psDec->prev_gain_Q16 ) { in silk_decode_core()
111 gain_adj_Q16 = silk_DIV32_varQ( psDec->prev_gain_Q16, psDecCtrl->Gains_Q16[ k ], 16 ); in silk_decode_core()
123 psDec->prev_gain_Q16 = psDecCtrl->Gains_Q16[ k ]; in silk_decode_core()
DNSQ_del_dec.c76 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */
127 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … in silk_NSQ_del_dec_c()
241 silk_SMULWW( psDD->Xq_Q14[ last_smple_idx ], Gains_Q16[ 1 ] ), 14 ) ); in silk_NSQ_del_dec_c()
261 …psEncC->nStatesDelayedDecision, LTP_scale_Q14, Gains_Q16, pitchL, psIndices->signalType, decisionD… in silk_NSQ_del_dec_c()
265Gains_Q16[ k ], Lambda_Q10, offset_Q10, psEncC->subfr_length, subfr++, psEncC->shapingLPCOrder, in silk_NSQ_del_dec_c()
287 Gain_Q10 = silk_RSHIFT32( Gains_Q16[ psEncC->nb_subfr - 1 ], 6 ); in silk_NSQ_del_dec_c()
641 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ in silk_nsq_del_dec_scale_states()
652 inv_gain_Q31 = silk_INVERSE32_varQ( silk_max( Gains_Q16[ subfr ], 1 ), 47 ); in silk_nsq_del_dec_scale_states()
656 if( Gains_Q16[ subfr ] != NSQ->prev_gain_Q16 ) { in silk_nsq_del_dec_scale_states()
657 gain_adj_Q16 = silk_DIV32_varQ( NSQ->prev_gain_Q16, Gains_Q16[ subfr ], 16 ); in silk_nsq_del_dec_scale_states()
[all …]
DCNG.c109 if( psDecCtrl->Gains_Q16[ i ] > max_Gain_Q16 ) { in silk_CNG()
110 max_Gain_Q16 = psDecCtrl->Gains_Q16[ i ]; in silk_CNG()
120 …psCNG->CNG_smth_Gain_Q16 += silk_SMULWB( psDecCtrl->Gains_Q16[ i ] - psCNG->CNG_smth_Gain_Q16, CNG… in silk_CNG()
Ddecode_parameters.c46 silk_gains_dequant( psDecCtrl->Gains_Q16, psDec->indices.GainsIndices, in silk_decode_parameters()
Dstructs.h315 opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; member
DPLC.c164 …silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_i… in silk_PLC_update()
/external/libopus/silk/float/
Dwrappers_FLP.c106 opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; in silk_NSQ_wrapper_FLP() local
146 Gains_Q16[ i ] = silk_float2int( psEncCtrl->Gains[ i ] * 65536.0f ); in silk_NSQ_wrapper_FLP()
147 silk_assert( Gains_Q16[ i ] > 0 ); in silk_NSQ_wrapper_FLP()
164 …AR2_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, psEncCtrl->pitchL, Lambda_Q10, LTP_sc… in silk_NSQ_wrapper_FLP()
167 …AR2_Q13, HarmShapeGain_Q14, Tilt_Q14, LF_shp_Q14, Gains_Q16, psEncCtrl->pitchL, Lambda_Q10, LTP_sc… in silk_NSQ_wrapper_FLP()
Dencode_frame_FLP.c327 opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; in silk_LBRR_encode_FLP() local
355 silk_gains_dequant( Gains_Q16, psIndices_LBRR->GainsIndices, in silk_LBRR_encode_FLP()
360 psEncCtrl->Gains[ k ] = Gains_Q16[ k ] * ( 1.0f / 65536.0f ); in silk_LBRR_encode_FLP()