Commit 70adb62b authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_2261_REMOVE_LP_RESCALING

parent 110b4754
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -108,7 +108,6 @@
/* any switch which is non-be wrt. TS 26.251 V3.0 */

#define FIX_2250_LARGE_DIFFERENCES_BETWEEN_BASOP_AND_FLOAT  /* Dolby: Issue 2250:  random vector generation in GenShapedSHBExcitation() */
#define FIX_2261_REMOVE_LP_RESCALING                    /* VA: Remove of unnecessary lpc coefficient rescaling */
#define FIX_2320_OOB_SCE_SWITCHING                      /* VA: basop issue 2320: Correct the length of the buffer to be scaled in SCE/CPE switching */
#define FIX_2302_LSF_CDBK_THRESHOLD                     /* VA: basop issue 2302: fix threshold for LSF Q codebook-type decision  */

+0 −14
Original line number Diff line number Diff line
@@ -1067,13 +1067,6 @@ ivas_error acelp_core_enc_ivas_fx(
        move16();
        st->hLPDmem->q_mem_syn = st->Q_syn;
        move16();
#ifndef FIX_2261_REMOVE_LP_RESCALING
        // Scaling Aq to Q12
        FOR( Word16 k = 0; k < NB_SUBFR16k; k++ )
        {
            Scale_sig( &Aq[( M + 1 ) * k], M + 1, sub( norm_s( Aq[( M + 1 ) * k] ), 2 ) );
        }
#endif
        /* synthesis at 12.8kHz sampling rate */
        syn_12k8_fx( st->L_frame, Aq, exc3_fx, syn1_fx, hLPDmem->mem_syn3, 1, sub( Q_new, 1 ), st->Q_syn );

@@ -1208,13 +1201,6 @@ ivas_error acelp_core_enc_ivas_fx(
            st->stab_fac_fx = lsf_stab_fx( lsf_new_fx, st->lsf_old_fx, 0, st->L_frame ); // Q15
            move16();
        }
#ifndef FIX_2261_REMOVE_LP_RESCALING
        // Scaling Aq to Q12
        FOR( Word16 k = 0; k < NB_SUBFR16k; k++ )
        {
            Scale_sig( &Aq[( M + 1 ) * k], M + 1, sub( norm_s( Aq[( M + 1 ) * k] ), 2 ) );
        }
#endif
        test();
        IF( EQ_16( st->last_core, HQ_CORE ) && st->element_mode > EVS_MONO )
        {
+0 −9
Original line number Diff line number Diff line
@@ -223,9 +223,6 @@ ivas_error ivas_core_enc_fx(
                                                        // fft_buff_fx_exp = add(fft_buff_fx_exp,1);
        FOR( i = 0; i < st->nb_subfr; i++ )
        {
#ifndef FIX_2261_REMOVE_LP_RESCALING
            Scale_sig( &A_fx[n][i * ( M + 1 )], M + 1, sub( norm_s( A_fx[n][i * ( M + 1 )] ), 2 ) ); // scaling to Q12
#endif
            Scale_sig( &Aw_fx[n][i * ( M + 1 )], M + 1, sub( norm_s( Aw_fx[n][i * ( M + 1 )] ), 2 ) ); // scaling to Q12
        }

@@ -349,12 +346,6 @@ ivas_error ivas_core_enc_fx(
        test();
        IF( ( EQ_16( st->core, TCX_20_CORE ) || EQ_16( st->core, TCX_10_CORE ) ) && NE_16( st->element_mode, IVAS_CPE_MDCT ) )
        {
#ifndef FIX_2261_REMOVE_LP_RESCALING
            FOR( i = 0; i < st->nb_subfr; i++ )
            {
                Scale_sig( &Aw_fx[n][i * ( M + 1 )], M + 1, sub( norm_s( Aw_fx[n][i * ( M + 1 )] ), 2 ) ); // scaling to Q12
            }
#endif
            TCX_ENC_HANDLE hTcxEnc = st->hTcxEnc;
            Word16 Q_spec_old, L_spec;

+0 −3
Original line number Diff line number Diff line
@@ -631,9 +631,6 @@ ivas_error front_vad_spar_fx(
        }

        relE_fx = sub( Etot_fx[0], extract_h( st->lp_speech_32fx ) );
#ifndef FIX_2261_REMOVE_LP_RESCALING
        Scale_sig( A_fx, ( L_FRAME / L_SUBFR ) * ( M + 1 ), -2 ); // Q12
#endif
        st->mem_wsp_fx = (Word16) shl_sat( st->mem_wsp_fx, Q_inp_12k8 - st->mem_wsp_q ); /* Q_inp_12k8 */
        st->mem_wsp_q = Q_inp_12k8;
        move16();
+0 −6
Original line number Diff line number Diff line
@@ -238,12 +238,6 @@ ivas_error ivas_ism_enc_fx(
        /*----------------------------------------------------------------*
         * Front Pre-processing
         *----------------------------------------------------------------*/
#ifndef FIX_2261_REMOVE_LP_RESCALING
        FOR( i = 0; i < hSCE->hCoreCoder[0]->nb_subfr; i++ )
        {
            Scale_sig( &A_fx[sce_id][0][i * ( M + 1 )], M + 1, sub( norm_s( A_fx[sce_id][0][i * ( M + 1 )] ), 2 ) ); // scaling to Q12
        }
#endif

        set16_fx( old_wsp_fx[sce_id][0], 0, L_WSP );
        q_old_wsp = Q15;