Commit b1b0d963 authored by Jan Kiene's avatar Jan Kiene
Browse files

port fix 1117 from float repo

igf stereo TCX noise filling substitution done on the wrong spectra
parent 53aaa9e5
Loading
Loading
Loading
Loading
Loading
+52 −4
Original line number Diff line number Diff line
@@ -895,10 +895,10 @@ static void IGF_prepStereo(
    Word16 *igf_specL_e_arr,                   /* i/o: prepared left IGF spectrum exponents for each index  */
    Word32 *igf_specR_fx,                      /* i/o: prepared right IGF spectrum                          */
    Word16 *igf_specR_e_arr,                   /* i/o: prepared right IGF spectrum exponents for each index */
    const Word32 *src_specL_fx,                /* i  : left source spectrum                                 */
    const Word16 src_specL_e,                  /* i  : left source spectrum exp                             */
    const Word32 *src_specR_fx,                /* i  : right source spectrum                                */
    const Word16 src_specR_e,                  /* i  : right source spectrum exp                            */
    Word32 *src_specL_fx,                      /* i  : left source spectrum                                 */
    Word16 src_specL_e,                        /* i  : left source spectrum exp                             */
    Word32 *src_specR_fx,                      /* i  : right source spectrum                                */
    Word16 src_specR_e,                        /* i  : right source spectrum exp                            */
    const Word16 *coreMsMask                   /* i  : line wise ms Mask Q0                                   */
)
{
@@ -964,6 +964,17 @@ static void IGF_prepStereo(
            {
                IF( hPrivateDataL->n_noise_bands_off )
                {
#ifdef NONBE_FIX_931_IGF_STEREO_DEC_NOISE
                    IGF_replaceTCXNoise_2_new_ivas( src_specL_fx,
                                                    src_specL_e,
                                                    TCXNoiseL,
                                                    strt_cpy,
                                                    stop,
                                                    hPrivateDataL->totalNoiseNrg_off,
                                                    hPrivateDataL->totalNoiseNrg_off_exp,
                                                    hPrivateDataL->n_noise_bands_off,
                                                    hInfoL->nfSeed );
#else
                    IGF_replaceTCXNoise_2_new_ivas_with_var_shift( igf_specL_fx,
                                                                   igf_specL_e_arr,
                                                                   TCXNoiseL,
@@ -973,6 +984,7 @@ static void IGF_prepStereo(
                                                                   hPrivateDataL->totalNoiseNrg_off_exp,
                                                                   hPrivateDataL->n_noise_bands_off,
                                                                   hInfoL->nfSeed );
#endif
                }
                selectionL = 1;
                move16();
@@ -999,6 +1011,17 @@ static void IGF_prepStereo(
            {
                IF( hPrivateDataR->n_noise_bands_off )
                {
#ifdef NONBE_FIX_931_IGF_STEREO_DEC_NOISE
                    IGF_replaceTCXNoise_2_new_ivas( src_specR_fx,
                                                    src_specR_e,
                                                    TCXNoiseR,
                                                    strt_cpy,
                                                    stop,
                                                    hPrivateDataR->totalNoiseNrg_off,
                                                    hPrivateDataR->totalNoiseNrg_off_exp,
                                                    hPrivateDataR->n_noise_bands_off,
                                                    hInfoR->nfSeed );
#else
                    IGF_replaceTCXNoise_2_new_ivas_with_var_shift( igf_specR_fx,
                                                                   igf_specR_e_arr,
                                                                   TCXNoiseR,
@@ -1008,6 +1031,7 @@ static void IGF_prepStereo(
                                                                   hPrivateDataR->totalNoiseNrg_off_exp,
                                                                   hPrivateDataR->n_noise_bands_off,
                                                                   hInfoR->nfSeed );
#endif
                }
                selectionR = 1;
                move16();
@@ -1129,6 +1153,17 @@ static void IGF_prepStereo(
                {
                    IF( hPrivateDataL->n_noise_bands_off )
                    {
#ifdef NONBE_FIX_931_IGF_STEREO_DEC_NOISE
                        IGF_replaceTCXNoise_2_new_ivas( src_specL_fx,
                                                        src_specL_e,
                                                        TCXNoiseL,
                                                        strt_cpy,
                                                        stop,
                                                        hPrivateDataL->totalNoiseNrg_off,
                                                        hPrivateDataL->totalNoiseNrg_off_exp,
                                                        hPrivateDataL->n_noise_bands_off,
                                                        hInfoL->nfSeed );
#else
                        IGF_replaceTCXNoise_2_new_ivas_with_var_shift( igf_specL_fx,
                                                                       igf_specL_e_arr,
                                                                       TCXNoiseL,
@@ -1138,6 +1173,7 @@ static void IGF_prepStereo(
                                                                       hPrivateDataL->totalNoiseNrg_off_exp,
                                                                       hPrivateDataL->n_noise_bands_off,
                                                                       hInfoL->nfSeed );
#endif
                    }
                    selectionL = 1;
                    move16();
@@ -1164,6 +1200,17 @@ static void IGF_prepStereo(
                {
                    IF( hPrivateDataR->n_noise_bands_off )
                    {
#ifdef NONBE_FIX_931_IGF_STEREO_DEC_NOISE
                        IGF_replaceTCXNoise_2_new_ivas( src_specR_fx,
                                                        src_specR_e,
                                                        TCXNoiseR,
                                                        strt_cpy,
                                                        stop,
                                                        hPrivateDataR->totalNoiseNrg_off,
                                                        hPrivateDataR->totalNoiseNrg_off_exp,
                                                        hPrivateDataR->n_noise_bands_off,
                                                        hInfoR->nfSeed );
#else
                        IGF_replaceTCXNoise_2_new_ivas_with_var_shift( igf_specR_fx,
                                                                       igf_specR_e_arr,
                                                                       TCXNoiseR,
@@ -1173,6 +1220,7 @@ static void IGF_prepStereo(
                                                                       hPrivateDataR->totalNoiseNrg_off_exp,
                                                                       hPrivateDataR->n_noise_bands_off,
                                                                       hInfoR->nfSeed );
#endif
                    }
                    selectionR = 1;
                    move16();