Loading lib_com/tools_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -545,6 +545,7 @@ Word16 mean_fx( /* o : mean of vector */ ) { Word16 tmp; PMT( "TBV : this function could be written differently to minimize the risk of saturation") tmp = sum16_fx(vec_fx,lvec_fx); tmp = mult_r(tmp,div_s(1,lvec_fx)); Loading Loading @@ -1423,7 +1424,11 @@ Word16 sum16_fx( /* o : sum of all vector elements Qx*/ move16(); FOR( i=0; i<lvec; i++ ) { #ifdef BASOP_NOGLOB tmp = add_sat(tmp,vec[i]); /*Qx */ #else tmp = add(tmp,vec[i]); /*Qx */ #endif } return tmp; Loading lib_dec/gs_dec_fx.c +2 −1 Original line number Diff line number Diff line Loading @@ -373,6 +373,7 @@ void decod_audio_fx( move16(); } } PMT("in the rare case of 4 subfr, bfi_pitch_fx might be wrong") st_fx->bfi_pitch_fx = mean_fx(pitch_buf, nb_subfr); move16(); st_fx->bfi_pitch_frame_fx = st_fx->L_frame_fx; Loading Loading
lib_com/tools_fx.c +5 −0 Original line number Diff line number Diff line Loading @@ -545,6 +545,7 @@ Word16 mean_fx( /* o : mean of vector */ ) { Word16 tmp; PMT( "TBV : this function could be written differently to minimize the risk of saturation") tmp = sum16_fx(vec_fx,lvec_fx); tmp = mult_r(tmp,div_s(1,lvec_fx)); Loading Loading @@ -1423,7 +1424,11 @@ Word16 sum16_fx( /* o : sum of all vector elements Qx*/ move16(); FOR( i=0; i<lvec; i++ ) { #ifdef BASOP_NOGLOB tmp = add_sat(tmp,vec[i]); /*Qx */ #else tmp = add(tmp,vec[i]); /*Qx */ #endif } return tmp; Loading
lib_dec/gs_dec_fx.c +2 −1 Original line number Diff line number Diff line Loading @@ -373,6 +373,7 @@ void decod_audio_fx( move16(); } } PMT("in the rare case of 4 subfr, bfi_pitch_fx might be wrong") st_fx->bfi_pitch_fx = mean_fx(pitch_buf, nb_subfr); move16(); st_fx->bfi_pitch_frame_fx = st_fx->L_frame_fx; Loading