Commit 913763bf authored by multrus's avatar multrus
Browse files

temporarily replace tcx_res_Q_spec_fx() by tcx_res_Q_spec_ivas_fx()

parent 45b0764c
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -98,6 +98,7 @@
#define FIX_2431_AVOID_CALLOC                           /* VA: basp issue 2431: avoid use of calloc() */
#define FIX_2424_REMOVE_GAUSS_L2_ENC                    /* VA: basop issue 2424: Remove duplicated code in gauss_L2_ivas_fx() */
#define FIX_MDCT_STEREO_ENC_STACK                       /* VA: basop issue 2428: Move IGF temporary buffers out of the highest stack */
#define HARM_2454_TCX_RES_Q_SPEC                        /* FhG: harmonization of tcx_res_Q_spec_fx() and tcx_res_Q_spec_ivas_fx() */

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

+8 −0
Original line number Diff line number Diff line
@@ -3585,11 +3585,19 @@ void QuantizeTCXSpectrum_fx(
            resQBits = tcx_res_Q_gain_fx( gain_tcx_opt_fx, gain_tcx_opt_e, gain_tcx_fx, gain_tcx_e, sqQ + L_spec, resQTargetBits );
            IF( st->tcxonly )
            {
#ifdef HARM_2454_TCX_RES_Q_SPEC
                resQBits = tcx_res_Q_spec_fx( x_orig_fx, x_orig_e, spectrum_fx, *spectrum_e, L_spec, *gain_tcx_fx, *gain_tcx_e, sqQ + L_spec, resQTargetBits, resQBits, st->hTcxCfg->sq_rounding, NULL );
#else
                resQBits = tcx_res_Q_spec_ivas_fx( x_orig_fx, x_orig_e, spectrum_fx, *spectrum_e, L_spec, *gain_tcx_fx, *gain_tcx_e, sqQ + L_spec, resQTargetBits, resQBits, st->hTcxCfg->sq_rounding, NULL );
#endif
            }
            ELSE
            {
#ifdef HARM_2454_TCX_RES_Q_SPEC
                resQBits = tcx_res_Q_spec_fx( x_orig_fx, x_orig_e, spectrum_fx, *spectrum_e, L_spec, *gain_tcx_fx, *gain_tcx_e, sqQ + L_spec, resQTargetBits, resQBits, st->hTcxCfg->sq_rounding, lf_deemph_fact_fx );
#else
                resQBits = tcx_res_Q_spec_ivas_fx( x_orig_fx, x_orig_e, spectrum_fx, *spectrum_e, L_spec, *gain_tcx_fx, *gain_tcx_e, sqQ + L_spec, resQTargetBits, resQBits, st->hTcxCfg->sq_rounding, lf_deemph_fact_fx );
#endif
            }
        }
    }
+2 −1
Original line number Diff line number Diff line
@@ -1349,6 +1349,7 @@ Word16 tcx_res_Q_spec_fx(
    Word16 sq_round,
    const Word16 lf_deemph_factors[] );

#ifndef HARM_2454_TCX_RES_Q_SPEC
Word16 tcx_res_Q_spec_ivas_fx(
    Word32 *x_orig,
    Word16 x_orig_e,
@@ -1362,7 +1363,7 @@ Word16 tcx_res_Q_spec_ivas_fx(
    Word16 bits,
    Word16 sq_round,
    const Word16 lf_deemph_factors[] );

#endif
/* compute noise-measure flags for spectrum filling and quantization (0: tonal, 1: noise-like) */
void ComputeSpectrumNoiseMeasure_fx(
    const Word32 *powerSpec,
+4 −0
Original line number Diff line number Diff line
@@ -3388,6 +3388,7 @@ Word16 tcx_res_Q_gain_fx(
    return bits;
}

#ifndef HARM_2454_TCX_RES_Q_SPEC
Word16 tcx_res_Q_spec_fx(
    Word32 *x_orig,
    Word16 x_orig_e,
@@ -3568,6 +3569,9 @@ Word16 tcx_res_Q_spec_fx(


Word16 tcx_res_Q_spec_ivas_fx(
#else
Word16 tcx_res_Q_spec_fx(
#endif
    Word32 *x_orig,
    Word16 x_orig_e,
    Word32 *x_Q,