Commit b0b17095 authored by multrus's avatar multrus
Browse files

[cleanup] accept ALIGN_ACELP_CORE

parent d4212e25
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -161,7 +161,6 @@
/*#define FIX_I4_OL_PITCH*/                             /* fix open-loop pitch used for EVS core switching */
#define TMP_1342_WORKAROUND_DEC_FLUSH_BROKEN_IN_SR      /* FhG: Temporary workaround for incorrect implementation of decoder flush with split rendering */
#define NONBE_1122_KEEP_EVS_MODE_UNCHANGED              /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR.  */
#define ALIGN_ACELP_CORE                                /* VA: align ACELP core functions with BASOP */
#define FIX_1532_MSAN_ERR_AMR_FIRST_FRAME_IS_SID        /* FhG: fix msan complaint in AMR-WB when first frame is an SID */
#define FIX_FLOAT_1535_ARI_RES_Q_CLEANUP                /* FhG: remove dead code from tcx_ari_res_Q_spec() */

+0 −6
Original line number Diff line number Diff line
@@ -2336,9 +2336,6 @@ void MDCT_classifier_reset(
ivas_error acelp_core_enc(
    Encoder_State *st, /* i/o: encoder state structure                 */
    const float inp[], /* i  : input signal of the current frame       */
#ifndef ALIGN_ACELP_CORE
    const float ener, /* i  : residual energy from Levinson-Durbin    */
#endif
    float A[NB_SUBFR16k * ( M + 1 )],    /* i  : A(z) unquantized for the 4 subframes    */
    float Aw[NB_SUBFR16k * ( M + 1 )],   /* i  : weighted A(z) unquant. for subframes    */
    const float epsP[M + 1],             /* i  : LP prediction errors                    */
@@ -3031,9 +3028,6 @@ void CNG_enc(
    Encoder_State *st,   /* i/o: State structure                                     */
    float Aq[],          /* o  : LP coefficients                                     */
    const float *speech, /* i  : pointer to current frame input speech buffer        */
#ifndef ALIGN_ACELP_CORE
    float enr, /* i  : frame energy output from Levinson recursion         */
#endif
    const float *lsp_mid,   /* i  : mid frame LSPs                                      */
    float *lsp_new,         /* i/o: current frame LSPs                                  */
    float *lsf_new,         /* i/o: current frame LSFs                                  */
+0 −7
Original line number Diff line number Diff line
@@ -59,9 +59,6 @@
ivas_error acelp_core_enc(
    Encoder_State *st, /* i/o: encoder state structure             */
    const float inp[], /* i  : input signal of the current frame   */
#ifndef ALIGN_ACELP_CORE
    const float ener, /* i  : residual energy from Levinson-Durbin*/
#endif
    float A[NB_SUBFR16k * ( M + 1 )],    /* i  : A(z) unquantized for the 4 subframes*/
    float Aw[NB_SUBFR16k * ( M + 1 )],   /* i  : weighted A(z) unquant. for subframes*/
    const float epsP[M + 1],             /* i  : LP prediction errors                */
@@ -296,11 +293,7 @@ ivas_error acelp_core_enc(
            cng_params_postupd( st->hTdCngEnc->ho_circ_ptr, &st->hTdCngEnc->cng_buf_cnt, st->hTdCngEnc->cng_exc2_buf, st->hTdCngEnc->cng_brate_buf, st->hTdCngEnc->ho_env_circ, st->element_mode, st->hFdCngEnc->hFdCngCom->CngBandwidth );

            /* encode CNG parameters */
#ifdef ALIGN_ACELP_CORE
            CNG_enc( st, Aq, inp, lsp_mid, lsp_new, lsf_new, &allow_cn_step, q_env, &sid_bw );
#else
            CNG_enc( st, Aq, inp, ener, lsp_mid, lsp_new, lsf_new, &allow_cn_step, q_env, &sid_bw );
#endif

            /* comfort noise generation */
            CNG_exc( st->core_brate, st->L_frame, &st->hTdCngEnc->Enew, &st->hTdCngEnc->cng_seed, exc, exc2, &st->hTdCngEnc->lp_ener, st->last_core_brate, &st->hDtxEnc->first_CNG, &st->hTdCngEnc->cng_ener_seed, bwe_exc, allow_cn_step, &st->hTdCngEnc->last_allow_cn_step, st->hTdCngEnc->num_ho, q_env, st->hTdCngEnc->lp_env, st->hTdCngEnc->old_env, st->hTdCngEnc->exc_mem, st->hTdCngEnc->exc_mem1, &sid_bw, &st->hTdCngEnc->cng_ener_seed1, exc3, st->Opt_AMR_WB, EVS_MONO );
+0 −4
Original line number Diff line number Diff line
@@ -410,11 +410,7 @@ void amr_wb_enc(
    if ( st->core_brate == SID_1k75 || st->core_brate == FRAME_NO_DATA )
    {
        /* encode CNG parameters */
#ifdef ALIGN_ACELP_CORE
        CNG_enc( st, Aq, inp, isp_new, isp_new, isf_new, &allow_cn_step, q_env, &sid_bw );
#else
        CNG_enc( st, Aq, inp, ener, isp_new, isp_new, isf_new, &allow_cn_step, q_env, &sid_bw );
#endif

        /* comfort noise generation */
        CNG_exc( st->core_brate, L_FRAME, &st->hTdCngEnc->Enew, &st->hTdCngEnc->cng_seed, exc, exc2, &st->hTdCngEnc->lp_ener, st->last_core_brate, &st->hDtxEnc->first_CNG, &st->hTdCngEnc->cng_ener_seed, dummy_buf, allow_cn_step, &st->hTdCngEnc->last_allow_cn_step, st->hTdCngEnc->num_ho, q_env, st->hTdCngEnc->lp_env, st->hTdCngEnc->old_env, st->hTdCngEnc->exc_mem, st->hTdCngEnc->exc_mem1, &sid_bw, &st->hTdCngEnc->cng_ener_seed1, exc3, st->Opt_AMR_WB, EVS_MONO );
+0 −5
Original line number Diff line number Diff line
@@ -72,9 +72,6 @@ void CNG_enc(
    Encoder_State *st,   /* i/o: State structure                                 */
    float Aq[],          /* o  : LP coefficients                                 */
    const float *speech, /* i  : pointer to current frame input speech buffer    */
#ifndef ALIGN_ACELP_CORE
    float enr, /* i  : residual energy from Levinson-Durbin            */
#endif
    const float *lsp_mid,   /* i  : mid frame LSPs                                  */
    float *lsp_new,         /* i/o: current frame ISPs                              */
    float *lsf_new,         /* i/o: current frame ISFs                              */
@@ -115,9 +112,7 @@ void CNG_enc(
    int16_t force_cn_step = 0;
    float st_lp_sp_enr;
    float lp_ener_thr_scale;
#ifdef ALIGN_ACELP_CORE
    float enr;
#endif

    BSTR_ENC_HANDLE hBstr = st->hBstr;
    TD_CNG_ENC_HANDLE hTdCngEnc = st->hTdCngEnc;
Loading