Loading lib_enc/swb_bwe_enc_lr_fx.c +8 −1 Original line number Diff line number Diff line Loading @@ -668,7 +668,9 @@ static void gethar_noisegn_fx( Word16 temp_lo, temp_hi; Word16 Qg; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif /*Generate HF noise*/ genhf_noise_fx(noise_flr_fx, Qss, L_xSynth_har, QsL, sspectra_fx ,bands, har_bands, har_freq_est2, pos_max_hfe2,pul_res_fx,pk_sf_fx,fLenLow, fLenHigh, sbWidth, lagIndices, subband_offsets, subband_search_offset); Loading Loading @@ -746,8 +748,13 @@ static void gethar_noisegn_fx( L_temp = L_Comp(exp, frac); L_temp = Mpy_32_16_1(L_temp, 19728); /* log(2)/log(10)=.30102999566398119521 = 19728.3(Q16) Q(0+16+1)=Q17 */ #ifdef BASOP_NOGLOB L_temp = L_shl_o(L_temp, 13, &Overflow); /* Q17+13=30 30-16=14 */ g_fx = round_fx_o(L_temp, &Overflow); #else L_temp = L_shl(L_temp, 13); /* Q17+13=30 30-16=14 */ g_fx = round_fx(L_temp); #endif } gqlevs_fx = 4; Loading Loading
lib_enc/swb_bwe_enc_lr_fx.c +8 −1 Original line number Diff line number Diff line Loading @@ -668,7 +668,9 @@ static void gethar_noisegn_fx( Word16 temp_lo, temp_hi; Word16 Qg; #ifdef BASOP_NOGLOB Flag Overflow = 0; #endif /*Generate HF noise*/ genhf_noise_fx(noise_flr_fx, Qss, L_xSynth_har, QsL, sspectra_fx ,bands, har_bands, har_freq_est2, pos_max_hfe2,pul_res_fx,pk_sf_fx,fLenLow, fLenHigh, sbWidth, lagIndices, subband_offsets, subband_search_offset); Loading Loading @@ -746,8 +748,13 @@ static void gethar_noisegn_fx( L_temp = L_Comp(exp, frac); L_temp = Mpy_32_16_1(L_temp, 19728); /* log(2)/log(10)=.30102999566398119521 = 19728.3(Q16) Q(0+16+1)=Q17 */ #ifdef BASOP_NOGLOB L_temp = L_shl_o(L_temp, 13, &Overflow); /* Q17+13=30 30-16=14 */ g_fx = round_fx_o(L_temp, &Overflow); #else L_temp = L_shl(L_temp, 13); /* Q17+13=30 30-16=14 */ g_fx = round_fx(L_temp); #endif } gqlevs_fx = 4; Loading