Lines Matching full:gains
35 /* Processing of gains */
51 psEncCtrl->Gains[ k ] *= s;
59 /* Soft limit on ratio residual energy and squared gains */
60 gain = psEncCtrl->Gains[ k ];
62 psEncCtrl->Gains[ k ] = silk_min_float( gain, 32767.0f );
65 /* Prepare gains for noise shaping quantization */
67 pGains_Q16[ k ] = (opus_int32)( psEncCtrl->Gains[ k ] * 65536.0f );
70 /* Save unquantized gains and gain Index */
74 /* Quantize gains */
78 /* Overwrite unquantized gains with quantized gains and convert back to Q0 from Q16 */
80 psEncCtrl->Gains[ k ] = pGains_Q16[ k ] / 65536.0f;