Commit 8b81421b authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_I25_FBE_FB_BITS

parent 248d09ee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -148,7 +148,6 @@


#define DIRAC_DRCT_GAIN_TUNING                          /* issue 64: tuning of DirAC energy-compensation gains */
#define FIX_I25_FBE_FB_BITS                             /* issue 25: properly skip reading of TBE FB bits when decoder output sampling rate is not 48 kHz */
#define ORDER_BITS_ADDITION                             /* issue 14: Transmit SBA order and planar bits at all bitrates */


+0 −2
Original line number Diff line number Diff line
@@ -2777,10 +2777,8 @@ void fb_tbe_dec(
    const float fb_exc[], /* i  : FB excitation from the SWB part         */
    float *hb_synth,      /* i/o: high-band synthesis                     */
    float *fb_synth_ref   /* o  : high-band synthesis 16-20 kHz           */
#ifdef FIX_I25_FBE_FB_BITS
    ,
    const int16_t output_frame /* i:  output frame length                      */
#endif

);

+0 −8
Original line number Diff line number Diff line
@@ -319,11 +319,7 @@ ivas_error evs_dec(
            /* FB TBE decoder */
            if ( output_frame == L_FRAME48k && st->extl == FB_TBE )
            {
#ifdef FIX_I25_FBE_FB_BITS
                fb_tbe_dec( st, fb_exc, hb_synth, NULL, L_FRAME48k );
#else
                fb_tbe_dec( st, fb_exc, hb_synth, NULL );
#endif
            }
        }
        else if ( st->extl == SWB_BWE || st->extl == FB_BWE || ( st->output_Fs >= 32000 && st->core == ACELP_CORE && st->bwidth > NB && st->bws_cnt > 0 && !st->ppp_mode_dec && !( st->nelp_mode_dec == 1 && st->bfi == 1 ) ) )
@@ -604,11 +600,7 @@ ivas_error evs_dec(

                        if ( st->extl == FB_TBE && output_frame == L_FRAME48k )
                        {
#ifdef FIX_I25_FBE_FB_BITS
                            fb_tbe_dec( st, fb_exc, hb_synth, NULL, L_FRAME48k );
#else
                            fb_tbe_dec( st, fb_exc, hb_synth, NULL );
#endif
                        }
                    }
                    mvr2r( hb_synth, st->hBWE_TD->old_hb_synth, output_frame );
+0 −7
Original line number Diff line number Diff line
@@ -531,17 +531,10 @@ ivas_error ivas_core_dec(
            swb_tbe_dec( st, hStereoICBWE, bwe_exc_extended[n], voice_factors[n], old_syn_12k8_16k[n], tmp_buffer /*fb_exc*/, hb_synth[n], pitch_buf[n] );

            /* FB TBE decoder */
#ifdef FIX_I25_FBE_FB_BITS
            if ( st->extl == FB_TBE )
            {
                fb_tbe_dec( st, tmp_buffer /*fb_exc*/, hb_synth[n], tmp_buffer /*fb_synth_ref*/, output_frame );
            }
#else
            if ( output_frame == L_FRAME48k && st->extl == FB_TBE )
            {
                fb_tbe_dec( st, tmp_buffer /*fb_exc*/, hb_synth[n], tmp_buffer /*fb_synth_ref*/ );
            }
#endif
        }
        else if ( st->extl == SWB_BWE || st->extl == FB_BWE || ( output_Fs >= 32000 && st->core == ACELP_CORE && st->bwidth > NB && st->bws_cnt > 0 && !st->ppp_mode_dec && !( st->nelp_mode_dec == 1 && st->bfi == 1 ) ) )
        {
+0 −6
Original line number Diff line number Diff line
@@ -1977,10 +1977,8 @@ void fb_tbe_dec(
    const float fb_exc[], /* i  : FB excitation from the SWB part */
    float *hb_synth,      /* o  : high-band synthesis             */
    float *fb_synth_ref   /* o  : high-band synthesis 16-20 kHz   */
#ifdef FIX_I25_FBE_FB_BITS
    ,
    const int16_t output_frame /* i:  output frame length              */
#endif
)
{
    int16_t i;
@@ -1990,10 +1988,8 @@ void fb_tbe_dec(

    hBWE_TD = st->hBWE_TD;

#ifdef FIX_I25_FBE_FB_BITS
    if ( output_frame == L_FRAME48k )
    {
#endif
        /* decode FB slope information */
        if ( st->extl == FB_TBE && !st->bfi )
        {
@@ -2011,7 +2007,6 @@ void fb_tbe_dec(
        {
            ratio = hBWE_TD->prev_fbbwe_ratio;
        }
#ifdef FIX_I25_FBE_FB_BITS
    }
    else
    {
@@ -2023,7 +2018,6 @@ void fb_tbe_dec(

        return;
    }
#endif

    fb_exc_energy = sum2_f( fb_exc, L_FRAME16k );