Commit ec8f88dc authored by malenov's avatar malenov Committed by Sandesh Venkatesh
Browse files

align the usage of IND_SHB_RES_GS with the float code

parent 66621ab9
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -532,12 +532,16 @@ enum
    IND_STEREO_ICBWE_MSFLAG,
    IND_SHB_ENER_SF,
    IND_SHB_RES_GS,
#ifndef FIX_1486_IND_SHB_RES
    IND_SHB_RES_GS1,
    IND_SHB_RES_GS2,
    IND_SHB_RES_GS3,
    IND_SHB_RES_GS4,
    IND_SHB_RES_GS5,
    IND_SHB_VF,
#else
    IND_SHB_VF = IND_SHB_RES_GS + 5,
#endif
    IND_SHB_LSF,
    IND_SHB_MIRROR = IND_SHB_LSF + 5,
    IND_SHB_GRID,
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@
#define FIX_1439_SPEEDUP_ivas_swb_tbe_dec_fx                    /*FhG: reduces WMOPS - bit-exact*/
#define FIX_1439_SPEEDUP_synthesise_fb_high_band_fx             /*FhG: reduces WMOPS - bit-exact*/
#define FIX_1481_HARDCODE_DIV                          /* FhG: hardcode division results in stereo_dmx_evs_init_encoder_fx() */
#define FIX_1486_IND_SHB_RES                   /* VA: Fix for issue 1486: align the usage of IND_SHB_RES_GS indices with float code */

#define TEST_HR

+8 −0
Original line number Diff line number Diff line
@@ -5683,7 +5683,11 @@ static void Quant_shb_res_gshape_fx(
        move16();
        IF( NE_16( st_fx->codec_mode, MODE2 ) )
        {
#ifdef FIX_1486_IND_SHB_RES
            push_indice( st_fx->hBstr, IND_SHB_RES_GS + i, idxSubGain_fx[i], NUM_BITS_SHB_RES_GS );
#else
            push_indice( st_fx->hBstr, IND_SHB_RES_GS1 + i, idxSubGain_fx[i], NUM_BITS_SHB_RES_GS );
#endif
        }
    }
}
@@ -5719,7 +5723,11 @@ static void Quant_shb_res_gshape_ivas_fx(
        }
        ELSE
        {
#ifdef FIX_1486_IND_SHB_RES
            push_indice( st->hBstr, IND_SHB_RES_GS + i, idxSubGain_fx[i], NUM_BITS_SHB_RES_GS );
#else
            push_indice( st->hBstr, IND_SHB_RES_GS1 + i, idxSubGain_fx[i], NUM_BITS_SHB_RES_GS );
#endif
        }
    }
}