Commit 063c3be1 authored by multrus's avatar multrus
Browse files

[cleanup] accept NONBE_1325_TD_STEREO_QUANT_LSF_SEC

parent df3612fe
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -552,9 +552,6 @@ ivas_error config_acelp1(
    const int16_t tdm_lp_reuse_flag,        /* i  : LPC reuse flag (can be 1 only with secondary channel */
    const int16_t tdm_low_rate_mode,        /* i  : secondary channel low rate mode flag */
    const int16_t idchan,                   /* i  : stereo channel ID               */
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
    const int16_t active_cnt, /* i  : Active frame counter            */
#endif
    const int16_t tdm_Pitch_reuse_flag, /* i  : primary channel pitch reuse flag*/
    const int16_t tdm_LRTD_flag,        /* i  : LRTD stereo mode flag           */
    const int16_t GSC_IVAS_mode         /* i  : GSC IVAS mode                   */
@@ -772,11 +769,7 @@ ivas_error config_acelp1(

            bits -= acelp_cfg->mid_lsf_bits;
        }
#ifdef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
        else if ( tdm_lp_reuse_flag == 1 && idchan == 1 )
#else
        else if ( tdm_lp_reuse_flag == 1 && idchan == 1 && active_cnt != 1 )
#endif
        {
            bits -= TDM_IC_LSF_PRED_BITS;
        }
+0 −3
Original line number Diff line number Diff line
@@ -2126,9 +2126,6 @@ void td_stereo_param_updt(
    const float lsp_old_PCh[],                                  /* i  : primary channel old LSPs                */
    const float lsf_old_PCh[],                                  /* i  : primary channel old LSFs                */
    const float pitch_buf_PCh[],                                /* i  : primary channel pitch buffer            */
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
    float tdm_lspQ_PCh[],                                       /* o  : Q LSPs for primary channel              */
#endif
    float tdm_lsfQ_PCh[],                                       /* o  : Q LSFs for primary channel              */
    float tdm_Pri_pitch_buf[],                                  /* o  : pitch values for primary channel        */
    const int16_t flag_ACELP16k,                                /* i  : ACELP@16kHz flag                        */
+0 −28
Original line number Diff line number Diff line
@@ -443,9 +443,6 @@ void td_stereo_param_updt(
    const float lsp_old_PCh[],   /* i  : primary channel old LSPs            */
    const float lsf_old_PCh[],   /* i  : primary channel old LSFs            */
    const float pitch_buf_PCh[], /* i  : primary channel pitch buffer        */
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
    float tdm_lspQ_PCh[], /* o  : Q LSPs for primary channel          */
#endif
    float tdm_lsfQ_PCh[],              /* o  : Q LSFs for primary channel          */
    float tdm_Pri_pitch_buf[],         /* o  : pitch values for primary channel    */
    const int16_t flag_ACELP16k,       /* i  : ACELP@16kHz flag                    */
@@ -458,41 +455,16 @@ void td_stereo_param_updt(
    if ( tdm_use_IAWB_Ave_lpc == 1 )
    {
        mvr2r( IAWB_Ave, tdm_lsfQ_PCh, M );
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
        if ( tdm_lspQ_PCh != NULL )
        {
            lsf2lsp( tdm_lsfQ_PCh, tdm_lspQ_PCh, M, INT_FS_12k8 );
        }
#endif
    }
    else if ( flag_ACELP16k == 1 )
    {
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
        if ( tdm_lspQ_PCh != NULL )
        {
            mvr2r( lsp_old_PCh, tdm_lspQ_PCh, M );
            lsp_convert_poly( tdm_lspQ_PCh, L_FRAME, 0 );
            lsp2lsf( tdm_lspQ_PCh, tdm_lsfQ_PCh, M, INT_FS_12k8 );
        }
        else
        {
#endif
            float lsp_temp[M];
            mvr2r( lsp_old_PCh, lsp_temp, M );
            lsp_convert_poly( lsp_temp, L_FRAME, 0 );
            lsp2lsf( lsp_temp, tdm_lsfQ_PCh, M, INT_FS_12k8 );
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
        }
#endif
    }
    else
    {
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
        if ( tdm_lspQ_PCh != NULL )
        {
            mvr2r( lsp_old_PCh, tdm_lspQ_PCh, M );
        }
#endif
        mvr2r( lsf_old_PCh, tdm_lsfQ_PCh, M );
    }

+0 −1
Original line number Diff line number Diff line
@@ -157,7 +157,6 @@
/* #################### Start BASOP porting switches ############################ */

#define FIX_1129_EXT_REND_OUTPUT_HIGH                   /* Philips: issue 1129: External renderer BINAURAL_ROOM_REVERB format output level too high compared to internal rendering output */
#define NONBE_1325_TD_STEREO_QUANT_LSF_SEC              /* Nokia: issue 1325: fix for usage of active_cnt variable in TD stereo LSFQ */
#define NONBE_FIX_1130_DIV_ZERO_LEV_DUR                 /* VA: issue 1130: avoid div by zero in L-D by thresholding R[0] to a min value of 100.0 */
#define NONBE_1329_FIX_OSBA_CRASH                       /* FhG: issue 1329: prevent assert when bit budget is low*/
#define NONBE_FIX_1128_OSBA_EXT_OUTPUT_ORDER            /* FhG: issue 1128: set output ambisonics order to input order for EXT output  */
+0 −6
Original line number Diff line number Diff line
@@ -4507,9 +4507,6 @@ ivas_error acelp_core_dec(
    int16_t *unbits,                     /* o  : number of unused bits               */
    int16_t *sid_bw,                     /* o  : 0-NB/WB, 1-SWB SID                  */
    STEREO_TD_DEC_DATA_HANDLE hStereoTD, /* i/o: TD stereo decoder handle            */
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
    const float tdm_lspQ_PCh[M], /* i  : Q LSPs for primary channel          */
#endif
    const float tdm_lsfQ_PCh[M],      /* i  : Q LSFs for primary channel          */
    const int16_t use_cldfb_for_dft,  /* i  : flag to use of CLDFB for DFT Stereo */
    const int16_t last_element_mode,  /* i  : last element mode                   */
@@ -9071,9 +9068,6 @@ ivas_error config_acelp1(
    const int16_t tdm_lp_reuse_flag,        /* i  : LPC reuse flag (can be 1 only with secondary channel*/
    const int16_t tdm_low_rate_mode,        /* i  : secondary channel low rate mode flag*/
    const int16_t idchan,                   /* i  : channel id                          */
#ifndef NONBE_1325_TD_STEREO_QUANT_LSF_SEC
    const int16_t active_cnt, /* i  : Active frame counter                */
#endif
    const int16_t tdm_Pitch_reuse_flag, /* i  : primary channel pitch reuse flag    */
    const int16_t tdm_LRTD_flag,        /* i  : LRTD stereo mode flag               */
    const int16_t GSC_IVAS_mode         /* i  : GSC IVAS mode                       */
Loading