Home
last modified time | relevance | path

Searched refs:gainMult_Q8 (Results 1 – 2 of 2) sorted by relevance

/external/libopus/silk/float/
Dencode_frame_FLP.c94 opus_int16 gainMult_Q8; in silk_encode_frame_FLP() local
161 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FLP()
232 gainMult_upper = gainMult_Q8; in silk_encode_frame_FLP()
238 gainMult_lower = gainMult_Q8; in silk_encode_frame_FLP()
261 gainMult_Q8 = silk_SMULWB( gain_factor_Q16, gainMult_Q8 ); in silk_encode_frame_FLP()
264gainMult_Q8 = gainMult_lower + ( ( gainMult_upper - gainMult_lower ) * ( maxBits - nBits_lower ) )… in silk_encode_frame_FLP()
266 … if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) { in silk_encode_frame_FLP()
267gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ); in silk_encode_frame_FLP()
269 … if( gainMult_Q8 < silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ) ) { in silk_encode_frame_FLP()
270gainMult_Q8 = silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ); in silk_encode_frame_FLP()
[all …]
/external/libopus/silk/fixed/
Dencode_frame_FIX.c93 opus_int16 gainMult_Q8; in silk_encode_frame_FIX() local
165 gainMult_Q8 = SILK_FIX_CONST( 1, 8 ); in silk_encode_frame_FIX()
245 gainMult_upper = gainMult_Q8; in silk_encode_frame_FIX()
251 gainMult_lower = gainMult_Q8; in silk_encode_frame_FIX()
274 gainMult_Q8 = silk_SMULWB( gain_factor_Q16, gainMult_Q8 ); in silk_encode_frame_FIX()
277gainMult_Q8 = gainMult_lower + silk_DIV32_16( silk_MUL( gainMult_upper - gainMult_lower, maxBits -… in silk_encode_frame_FIX()
279 … if( gainMult_Q8 > silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ) ) { in silk_encode_frame_FIX()
280gainMult_Q8 = silk_ADD_RSHIFT32( gainMult_lower, gainMult_upper - gainMult_lower, 2 ); in silk_encode_frame_FIX()
282 … if( gainMult_Q8 < silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ) ) { in silk_encode_frame_FIX()
283gainMult_Q8 = silk_SUB_RSHIFT32( gainMult_upper, gainMult_upper - gainMult_lower, 2 ); in silk_encode_frame_FIX()
[all …]