Commit cbf3b9fd authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_FLOAT_1533_BLEND_SUBFR2

parent 8d64850a
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -292,27 +292,15 @@ void scale_st(
void blend_subfr2(
    float *sigIn1,
    float *sigIn2,
#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
    int16_t L_subfr,
#endif
    float *sigOut )
{
#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
    float fac1 = 1.f - ( 1.f / L_subfr );
    float fac2 = 0.f + ( 1.f / L_subfr );
    float step = 1.f / ( L_subfr / 2 );
#else
    float fac1 = 1.f - ( 1.f / L_SUBFR );
    float fac2 = 0.f + ( 1.f / L_SUBFR );
    float step = 1.f / ( L_SUBFR / 2 );
#endif
    int16_t i;

#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
    for ( i = 0; i < L_subfr / 2; i++ )
#else
    for ( i = 0; i < L_SUBFR / 2; i++ )
#endif
    {
        sigOut[i] = fac1 * sigIn1[i] + fac2 * sigIn2[i];
        fac1 -= step;
+0 −1
Original line number Diff line number Diff line
@@ -169,7 +169,6 @@
/* any switch which is non-be wrt. TS 26.258 V3.0 */
#define FIX_FLOAT_1493_MASA_ENCODE_STABILITY_IMPROVE    /* Nokia: float issue 1493: Improves float decision stability in MASA encoding by adjusting reduction code */

#define FIX_FLOAT_1533_BLEND_SUBFR2                     /* FhG: float issue 1533: correct blending in blend_subfr2() */

#define FIX_1530_Codec_Level_Harmonization_Non_diegetic_panning /* FhG: Adjust non-diegetic panning law to harmonize codec levels with 3GPP reference software */
/* ##################### End NON-BE switches ########################### */
+0 −2
Original line number Diff line number Diff line
@@ -10039,9 +10039,7 @@ int16_t tbe_celp_exc_offset(
void blend_subfr2(
    float *sigIn1, /* i  : input signal for fade-out */
    float *sigIn2, /* i  : input signal for fade-in  */
#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
    int16_t L_subfr, /* i  : subframe length           */
#endif
    float *sigOut /* o  : output signal             */
);

+0 −4
Original line number Diff line number Diff line
@@ -1091,11 +1091,7 @@ ivas_error acelp_core_dec(
            syn_filt( Aq, M, temp_buf + M + L_SUBFR, temp_buf, L_SUBFR, st->hPFstat->mem_stp + L_SYN_MEM - M, 0 );
            scale_st( syn, temp_buf, &st->hPFstat->gain_prec, L_SUBFR, -1 );
            mvr2r( temp_buf, syn, L_SUBFR / 2 );
#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
            blend_subfr2( temp_buf + L_SUBFR / 2, syn + L_SUBFR / 2, L_SUBFR, syn + L_SUBFR / 2 );
#else
            blend_subfr2( temp_buf + L_SUBFR / 2, syn + L_SUBFR / 2, syn + L_SUBFR / 2 );
#endif
        }
        st->hPFstat->on = 0;
    }
+0 −4
Original line number Diff line number Diff line
@@ -201,11 +201,7 @@ ivas_error acelp_core_switch_dec(
            syn_filt( Aq, M, old_exc, bpf_error_signal, L_SUBFR, st->hPFstat->mem_stp + L_SYN_MEM - M, 0 );
            scale_st( synth_intFreq, bpf_error_signal, &st->hPFstat->gain_prec, L_SUBFR, -1 );
            mvr2r( bpf_error_signal, synth_intFreq, L_SUBFR / 2 );
#ifdef FIX_FLOAT_1533_BLEND_SUBFR2
            blend_subfr2( bpf_error_signal + L_SUBFR / 2, synth_intFreq + L_SUBFR / 2, L_SUBFR, synth_intFreq + L_SUBFR / 2 );
#else
            blend_subfr2( bpf_error_signal + L_SUBFR / 2, synth_intFreq + L_SUBFR / 2, synth_intFreq + L_SUBFR / 2 );
#endif
        }
        st->hPFstat->on = 0;

Loading