Commit 230c0ae0 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_2379_REMOVE_previoussynth_fx_32

parent 93b190fc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@
#define FIX_2250_LARGE_DIFFERENCES_BETWEEN_BASOP_AND_FLOAT  /* Dolby: Issue 2250:  random vector generation in GenShapedSHBExcitation() */
#define FIX_2338_HARM_GSC_GAIN_COMP                     /* VA: basop issue 2338: harmonization of band gain computation for both EVS and IVAS */
#define FIX_BASOP_2361_OTR                              /* FhG: Basop issue 2361: Orientation tracking tests for equivalent rotations fail */
#define FIX_2379_REMOVE_previoussynth_fx_32             /* VA: basop issue 2379: remove duplicated buffer st->previoussynth_fx_32[] */
#define FIX_2396_CONSTANT_STRIDE_IN_TC_BUFFER           /* FhG/VA: basop issue 2396: keep TC channel pointers in one constant place during decoding and rendering */

/* ##################### End NON-BE switches ########################### */
+0 −4
Original line number Diff line number Diff line
@@ -2105,11 +2105,7 @@ ivas_error acelp_core_dec_fx(
            }

            /* save synthesis - needed in case of core switching */
#ifdef FIX_2379_REMOVE_previoussynth_fx_32
            Copy_Scale_sig_32_16( synth_fx, st->previoussynth_fx, output_frame, 0 ); // Q0
#else
            Copy32( synth_fx, st->previoussynth_fx_32, output_frame ); // Q0
#endif
        }
        ELSE
        {
+0 −8
Original line number Diff line number Diff line
@@ -1598,13 +1598,9 @@ ivas_error core_switching_pre_dec_fx(
        }
        ELSE
        {
#ifdef FIX_2379_REMOVE_previoussynth_fx_32
            Word32 previoussynth_fx_32[L_FRAME48k];
            Copy_Scale_sig_16_32_no_sat( st->previoussynth_fx, previoussynth_fx_32, output_frame, 0 );
            fer_energy_fx( output_frame, UNVOICED_CLAS, previoussynth_fx_32, 0, -1, &st->enr_old_fx, 1 ); /*Q0*/
#else
            fer_energy_fx( output_frame, UNVOICED_CLAS, st->previoussynth_fx_32, 0, -1, &st->enr_old_fx, 1 ); /*Q-0*/
#endif
            st->lp_gainp_fx = 0;
            move16();
            st->lp_gainc_fx = extract_h( Sqrt32( st->lp_ener_fx, &exp ) ); /*Q=15-exp*/
@@ -1687,13 +1683,9 @@ ivas_error core_switching_pre_dec_fx(
        set16_fx( st->dm_fx.prev_gain_pit, 0, 6 );
        st->last_coder_type = GENERIC;
        move16();
#ifdef FIX_2379_REMOVE_previoussynth_fx_32
        Word32 previoussynth_fx_32[L_FRAME48k];
        Copy_Scale_sig_16_32_no_sat( st->previoussynth_fx, previoussynth_fx_32, output_frame, 0 );
        fer_energy_fx( output_frame, UNVOICED_CLAS, previoussynth_fx_32, 0, -1, &st->enr_old_fx, 1 ); /*Q0*/
#else
        fer_energy_fx( output_frame, UNVOICED_CLAS, st->previoussynth_fx_32, 0, -1, &st->enr_old_fx, 1 );     /*Q-0*/
#endif

        st->lp_gainp_fx = 0;
        move16();
+0 −3
Original line number Diff line number Diff line
@@ -436,9 +436,6 @@ ivas_error init_decoder_fx(
    set16_fx( st_fx->previoussynth_fx, 0, L_FRAME48k );

    set32_fx( st_fx->delay_buf_out32_fx, 0, HQ_DELTA_MAX * HQ_DELAY_COMP );
#ifndef FIX_2379_REMOVE_previoussynth_fx_32
    set32_fx( st_fx->previoussynth_fx_32, 0, L_FRAME48k );
#endif

    IF( st_fx->element_mode == EVS_MONO )
    {
+0 −6
Original line number Diff line number Diff line
@@ -446,9 +446,6 @@ ivas_error ivas_core_dec_fx(
        move16();
        move16();

#ifndef FIX_2379_REMOVE_previoussynth_fx_32
        Copy_Scale_sig_16_32_DEPREC( st->previoussynth_fx, st->previoussynth_fx_32, L_FRAME48k, 0 ); // Q0
#endif
        IF( NE_32( ( error = core_switching_pre_dec_fx( st, output_frame, sts[0]->last_core_brate, nchan_out, last_element_mode, last_element_brate, st->Q_syn, &Q_olapBufferSynth, &Q_olapBufferSynth2 ) ), IVAS_ERR_OK ) )
        {
            return error;
@@ -558,9 +555,6 @@ ivas_error ivas_core_dec_fx(
            }
        }

#ifndef FIX_2379_REMOVE_previoussynth_fx_32
        Copy_Scale_sig_32_16( st->previoussynth_fx_32, st->previoussynth_fx, L_FRAME48k, 0 ); // Q0
#endif
        test();
        test();
        IF( ( EQ_16( st->core, TCX_20_CORE ) || EQ_16( st->core, TCX_10_CORE ) ) && NE_16( st->element_mode, IVAS_CPE_MDCT ) )
Loading