Commit 9bd1eebf authored by Arash Azizi's avatar Arash Azizi
Browse files

issue: 2437 removing instances of EncodeIndex_ivas_fx() and converting them to EncodeIndex_fx()

parent ac900052
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@
#define HARM_FD_BWE                                     /* VA: harmonize core-coder FD BWE function duplications */
#define FIX_2411_Harmonize_TNSANALYSIS_DETECTTNSFILT    /* FhG: basop issue 2411: harmonize TNSAnalysis*_fx(), DetectTnsFilt*_fx()*/        
#define HARMONIZE_READ_DECODE_TNS                       /* FhG basop 2389: Harm between two pairs of functions. */
#define FIX_2437_HARMONIZE_ENCODERINDEX                 /* FhG: basop issue 2437 EncoderIndex_ivas_fx() and EncoderIndex_fx()*/

/* #################### End BE switches ################################## */

+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ Word16 EncodeIndex_fx(
        return 8;
    }
}
#ifndef FIX_2437_HARMONIZE_ENCODERINDEX
Word16 EncodeIndex_ivas_fx(
    const Word16 Bandwidth,
    Word16 PeriodicityIndex,
@@ -79,6 +80,7 @@ Word16 EncodeIndex_ivas_fx(
        return 8;
    }
}
#endif // !FIX_2437_HARMONIZE_ENCODERINDEX
/*-------------------------------------------------------------------*
 * SearchPeriodicityIndex_Single()
 *
+13 −4
Original line number Diff line number Diff line
@@ -82,7 +82,11 @@ static void enc_prm_hm_ivas_fx(
            flag = 1;
            move16();
        }
#ifndef FIX_2437_HARMONIZE_ENCODERINDEX
        EncodeIndex_ivas_fx(flag, prm_hm[1], hBstr);
#else
        EncodeIndex_fx(flag, prm_hm[1], hBstr);
#endif // !FIX_2437_HARMONIZE_ENCODERINDEX

        IF( EQ_16( st->hTcxCfg->coder_type, VOICED ) )
        {
@@ -1234,7 +1238,12 @@ void writeTCXparam_fx(

                    IF( prm[j] )
                    {   
#ifndef FIX_2437_HARMONIZE_ENCODERINDEX
                        EncodeIndex_ivas_fx((Word16)GE_16(hm_size, 256), prm[j + 1], hBstr);
#else
                        EncodeIndex_fx((Word16)GE_16(hm_size, 256), prm[j + 1], hBstr);
#endif // !FIX_2437_HARMONIZE_ENCODERINDEX

                        
                        flag_ctx_hm = 1;
                        move16();
+2 −2
Original line number Diff line number Diff line
@@ -2577,13 +2577,13 @@ Word16 EncodeIndex_fx(
    Word16 PeriodicityIndex,
    BSTR_ENC_HANDLE hBst /* i/o: bitstream handle            */
);

#ifndef FIX_2437_HARMONIZE_ENCODERINDEX
Word16 EncodeIndex_ivas_fx(
    const Word16 Bandwidth, /* 0: NB, 1: (S)WB */
    Word16 PeriodicityIndex,
    BSTR_ENC_HANDLE hBst /* i/o: bitstream handle            */
);

#endif
void enc_prm_side_Info_fx(
    PLC_ENC_EVS_HANDLE hPlc_Ext,
    Encoder_State *st );