Home
last modified time | relevance | path

Searched refs:gain_Q16 (Results 1 – 7 of 7) sorted by relevance

/external/libopus/silk/
DCNG.c87 opus_int32 LPC_pred_Q10, max_Gain_Q16, gain_Q16, gain_Q10; in silk_CNG() local
130 gain_Q16 = silk_SMULWW( psDec->sPLC.randScale_Q14, psDec->sPLC.prevGain_Q16[1] ); in silk_CNG()
131 if( gain_Q16 >= (1 << 21) || psCNG->CNG_smth_Gain_Q16 > (1 << 23) ) { in silk_CNG()
132 gain_Q16 = silk_SMULTT( gain_Q16, gain_Q16 ); in silk_CNG()
133gain_Q16 = silk_SUB_LSHIFT32(silk_SMULTT( psCNG->CNG_smth_Gain_Q16, psCNG->CNG_smth_Gain_Q16 ), ga… in silk_CNG()
134 gain_Q16 = silk_LSHIFT32( silk_SQRT_APPROX( gain_Q16 ), 16 ); in silk_CNG()
136 gain_Q16 = silk_SMULWW( gain_Q16, gain_Q16 ); in silk_CNG()
137gain_Q16 = silk_SUB_LSHIFT32(silk_SMULWW( psCNG->CNG_smth_Gain_Q16, psCNG->CNG_smth_Gain_Q16 ), ga… in silk_CNG()
138 gain_Q16 = silk_LSHIFT32( silk_SQRT_APPROX( gain_Q16 ), 8 ); in silk_CNG()
140 gain_Q10 = silk_RSHIFT( gain_Q16, 6 ); in silk_CNG()
Dgain_quant.c41 …opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) … in silk_gains_quant()
51 ind[ k ] = silk_SMULWB( SCALE_Q16, silk_lin2log( gain_Q16[ k ] ) - OFFSET ); in silk_gains_quant()
89gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 … in silk_gains_quant()
95 …opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* O quantized gains … in silk_gains_dequant()
123gain_Q16[ k ] = silk_log2lin( silk_min_32( silk_SMULWB( INV_SCALE_Q16, *prev_ind ) + OFFSET, 3967 … in silk_gains_dequant()
DPLC.c423 opus_int32 gain_Q16, slope_Q16; in silk_PLC_glue_frames() local
432 gain_Q16 = silk_LSHIFT( silk_SQRT_APPROX( frac_Q24 ), 4 ); in silk_PLC_glue_frames()
433 slope_Q16 = silk_DIV32_16( ( (opus_int32)1 << 16 ) - gain_Q16, length ); in silk_PLC_glue_frames()
438 frame[ i ] = silk_SMULWB( gain_Q16, frame[ i ] ); in silk_PLC_glue_frames()
439 gain_Q16 += slope_Q16; in silk_PLC_glue_frames()
440 if( gain_Q16 > (opus_int32)1 << 16 ) { in silk_PLC_glue_frames()
Dmain.h180 …opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) …
188 …opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* O quantized gains …
DSigProc_FIX.h352 …opus_int32 gain_Q16, /* I Gain in Q16 …
/external/libopus/silk/fixed/
Dnoise_shape_analysis_FIX.c66 opus_int32 tmp, maxabs_Q24, chirp_Q16, gain_Q16; in limit_warped_coefs() local
78 gain_Q16 = silk_DIV32_varQ( nom_Q16, den_Q24, 24 ); in limit_warped_coefs()
80 coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); in limit_warped_coefs()
104 gain_Q16 = silk_INVERSE32_varQ( gain_Q16, 32 ); in limit_warped_coefs()
106 coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); in limit_warped_coefs()
123 gain_Q16 = silk_DIV32_varQ( nom_Q16, den_Q24, 24 ); in limit_warped_coefs()
125 coefs_Q24[ i ] = silk_SMULWW( gain_Q16, coefs_Q24[ i ] ); in limit_warped_coefs()
Dvector_ops_FIX.c39 …opus_int32 gain_Q16, /* I Gain in Q16 … in silk_scale_copy_vector16() argument
47 tmp32 = silk_SMULWB( gain_Q16, data_in[ i ] ); in silk_scale_copy_vector16()