Commit d285f48c authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '1044-ivas_merge_sba_transports-misses-1-2-normalization' into 'ivas-float-update'

Adjust gain in pre-rendering ISM to SBA and in merging transport channels when...

See merge request !799
parents b41d89f8 ef8b32b7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@
#define NONBE_FIX_1213_SBA_DET_MAT_INV_3BY3             /*Dolby: issue 1213: fix for inverse of det < 0*/
#define NONBE_FIX_1204_MDCT_STEREO_NOISE_EST_SCALING    /* FhG: fixes for decoder-side noise level estimation in MDCT-Stereo to prevent noise bursts in stereo switching */

#define NONE_BE_FIX_BASOP_1044_OSBA_PRERENDER_MIX_GAINS /* DLB: adjust prerendering and mixing gain in OSBA encoder. This is fix to float codes*/
/* #################### End FIXES switches ############################ */

#define BASOP_NOGLOB                                    /* Disable global symbols in BASOPs, Overflow/Carry in BASOPs disabled, additional BASOPs in case of Overflow */
+6 −0
Original line number Diff line number Diff line
@@ -72,7 +72,11 @@ static void ivas_merge_sba_transports(
    {
        for ( j = 0; j < input_frame; j++ )
        {
#ifdef NONE_BE_FIX_BASOP_1044_OSBA_PRERENDER_MIX_GAINS
            data_out_f[i][j] = 0.5f * ( data_in_f1[i][j] + data_in_f2[i][j] );
#else
            data_out_f[i][j] = ( data_in_f1[i][j] + data_in_f2[i][j] );
#endif
        }
    }

@@ -477,6 +481,7 @@ static void ivas_osba_render_ism_to_sba(
        }
    }

#ifndef NONE_BE_FIX_BASOP_1044_OSBA_PRERENDER_MIX_GAINS
    /* Gain with loudness-matching gains */
    output_gain = 0.7499f;
    for ( j = 0; j < nchan_sba; j++ )
@@ -486,6 +491,7 @@ static void ivas_osba_render_ism_to_sba(
            data_out_f[j][k] *= output_gain;
        }
    }
#endif

    return;
}