Commit d57c3d2e authored by Jan Kiene's avatar Jan Kiene
Browse files

Accept FIX_1521_SBA_LOUDNESS_STEREO

parent 8ddd209d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -168,7 +168,6 @@
/* #################### Start NON-BE switches ############################ */
/* any switch which is non-be wrt. TS 26.258 V3.0 */

#define FIX_1521_SBA_LOUDNESS_STEREO                    /* FhG: issue 1521: Fix loudness for SBA to stereo rendering */
#define FIX_2500_RENDCONF_REFACTOR                      /* Eri: Basop issue #2500: Renderer configuration range check before conversion to fixed point. Harmonize between BASOP/float */
#define FIX_BASOP_2023_TDREND_DISTATT_PRECISION         /* Eri: Basop issue 2023: Distance attenuation scaling, synch with BASOP updates and adding clamping of distance att input and listener position  */
#define FIX_1576_LCLD_CRASH_DIFFERENT_CODEC_ISAR_FRAME_SIZE  /* Dolby: float issue 1576: fix for crash in LCLD mode when codec frame size is less than isar frame size */
+0 −9
Original line number Diff line number Diff line
@@ -910,13 +910,8 @@ void ivas_sba_dirac_stereo_dec(
    synchro_synthesis( st_ivas->hDecoderConfig->ivas_total_brate, hCPE, output, output_frame, 1 /*st_ivas->sba_dirac_stereo_flag*/ );

    /* output scaling */
#ifdef FIX_1521_SBA_LOUDNESS_STEREO
    if ( !sba_mono_flag )
#else
    if ( !sba_mono_flag && !( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_MODE_NONE ) )
#endif
    {
#ifdef FIX_1521_SBA_LOUDNESS_STEREO
        if ( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_MODE_NONE )
        {
            /* low bitrate OSBA needs a makeup gain of 2.f to compensate for the encoder side
@@ -929,10 +924,6 @@ void ivas_sba_dirac_stereo_dec(
            v_multc( output[0], INV_SQRT2, output[0], output_frame );
            v_multc( output[1], INV_SQRT2, output[1], output_frame );
        }
#else
        v_multc( output[0], 0.5f, output[0], output_frame );
        v_multc( output[1], 0.5f, output[1], output_frame );
#endif
    }

    /* delay HB synth */
+0 −7
Original line number Diff line number Diff line
@@ -129,17 +129,10 @@ ivas_error ivas_sba_get_hoa_dec_matrix(
    }
    else if ( hOutSetup.output_config == IVAS_AUDIO_CONFIG_STEREO )
    {
#ifdef FIX_1521_SBA_LOUDNESS_STEREO
        ( *hoa_dec_mtx )[0] = INV_SQRT2;
        ( *hoa_dec_mtx )[1] = INV_SQRT2;
        ( *hoa_dec_mtx )[SBA_NHARM_HOA3] = INV_SQRT2;
        ( *hoa_dec_mtx )[SBA_NHARM_HOA3 + 1] = -INV_SQRT2;
#else
        ( *hoa_dec_mtx )[0] = 0.5f;
        ( *hoa_dec_mtx )[1] = 0.5f;
        ( *hoa_dec_mtx )[SBA_NHARM_HOA3] = 0.5f;
        ( *hoa_dec_mtx )[SBA_NHARM_HOA3 + 1] = -0.5f;
#endif
    }
    else if ( hOutSetup.is_loudspeaker_setup )
    {