Loading lib_enc/fd_cng_enc_fx.c +8 −5 Original line number Diff line number Diff line Loading @@ -2841,14 +2841,17 @@ void FdCngEncodeMDCTStereoSID_fx( { t1 = BASOP_Util_Log2( lr_in_ptr_fx[ch][p] ); // Q25 t2 = L_add( t1, L_shl( lr_in_ptr_e[ch], Q25 ) ); // Q25 ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23 move32(); } ELSE { t2 = 0; // 10.f * log10f( EPSILON ) --> -150.0f // Subsequent additions / subtractions happen on these numbers, so to avoid saturations // this value is set to -128.0f in Q23 ms_ptr_fx[ch][p] = -ONE_IN_Q30; // Q23 move32(); } ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23 move32(); E_fx[ch] = L_add( E_fx[ch], L_shr( ms_ptr_fx[ch][p], 4 ) ); // Q19 move32(); } Loading Loading
lib_enc/fd_cng_enc_fx.c +8 −5 Original line number Diff line number Diff line Loading @@ -2841,14 +2841,17 @@ void FdCngEncodeMDCTStereoSID_fx( { t1 = BASOP_Util_Log2( lr_in_ptr_fx[ch][p] ); // Q25 t2 = L_add( t1, L_shl( lr_in_ptr_e[ch], Q25 ) ); // Q25 ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23 move32(); } ELSE { t2 = 0; // 10.f * log10f( EPSILON ) --> -150.0f // Subsequent additions / subtractions happen on these numbers, so to avoid saturations // this value is set to -128.0f in Q23 ms_ptr_fx[ch][p] = -ONE_IN_Q30; // Q23 move32(); } ms_ptr_fx[ch][p] = Mpy_32_32( t2, TEN_MULT_LOG10_2_IN_Q29 ); // Q23 move32(); E_fx[ch] = L_add( E_fx[ch], L_shr( ms_ptr_fx[ch][p], 4 ) ); // Q19 move32(); } Loading