Commit 035b9d30 authored by multrus's avatar multrus
Browse files

harmonize enc_prm_hm() and enc_prm_hm_ivas_fx()

parent df7d10dc
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -99,8 +99,9 @@
#define FIX_BASOP_2470_POWER_SPEC_E_INIT                /* FhG: make sure powerSpec_e is always initialized in core_signal_analysis_high_bitrate_fx() */
#define FIX_BASOP_2475_ASSERT_IN_MASA2_REND_TO_MONO     /* Nokia: basop issue 2475: Fix MASA2 to MONO rendering within IVAS_rend */
#define FIX_2346_DUPLICATED_IGF_FUNCTIONS               /* FhG: basop issue 2346: Review potentially duplicated IGF functions */

#define HARMONIZE_2446_CON_TCX_FX                       /* FhG: basop issue: 2446 harmonization of function con_tcx_fx() */
#define FIX_BASOP_2478_HARM_ENC_PRM_HM                  /* FhG: basop issue 2478: harmonize enc_prm_hm() and enc_prm_hm_ivas_fx() */

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

/* #################### Start NON-BE switches ############################ */
+12 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
#include "prot_fx_enc.h" /* Function prototypes                    */


#ifndef FIX_BASOP_2478_HARM_ENC_PRM_HM
static void enc_prm_hm(
    Word16 *prm_hm, /* Q0 */
    Encoder_State *st,
@@ -53,6 +54,9 @@ static void enc_prm_hm(
    }
}
static void enc_prm_hm_ivas_fx(
#else
static void enc_prm_hm_fx(
#endif
    Word16 *prm_hm, /* Q0 */
    Encoder_State *st,
    Word16 L_frame /* Q0 */
@@ -754,7 +758,11 @@ void enc_prm_fx(
        test();
        IF( hTcxEnc->tcx_lpc_shaped_ari && NE_16( last_core, ACELP_CORE ) )
        {
#ifdef FIX_BASOP_2478_HARM_ENC_PRM_HM
            enc_prm_hm_fx( &prm[j], st, hm_size );
#else
            enc_prm_hm( &prm[j], st, hm_size );
#endif
        }

        /*Context HM flag*/
@@ -1235,7 +1243,11 @@ void writeTCXparam_fx(
                test();
                IF( st->hTcxEnc->tcx_lpc_shaped_ari && last_core != ACELP_CORE && EQ_16( core, TCX_20_CORE ) )
                {
#ifdef FIX_BASOP_2478_HARM_ENC_PRM_HM
                    enc_prm_hm_fx( &prm[j], st, hm_size );
#else
                    enc_prm_hm_ivas_fx( &prm[j], st, hm_size );
#endif
                }

                /*Context HM flag*/