Commit 9e9fc097 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

Merge branch 'main-pc' of ssh://forge.3gpp.org:29419/sa4/audio/ivas-basop into...

Merge branch 'main-pc' of ssh://forge.3gpp.org:29419/sa4/audio/ivas-basop into 1587_basop_port_fl1318
parents 10846450 2204d825
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@
#define NONBE_FIX_947_STEREO_DMX_EVS_POC                /* Orange: Fix clicks on POC */  
#define NONBE_FIX_947_STEREO_DMX_EVS_PHA                /* Orange: Fix issues on PHA */      
#define NONBE_FIX_951_MCMASA_5MS_RENDERING              /* Nokia: issue #951: Differences for 5ms and 20ms rendering for McMASA at 13.2 kbps to BINAURAL */
#define NONBE_FIX_979_OSBA_STEREO_5MS                   /* FhG : issue #979 : 5ms and 20ms output different for OSBA and stereo */

/* #################### End BASOP porting switches ############################ */

+4 −0
Original line number Diff line number Diff line
@@ -1877,7 +1877,11 @@ ivas_error ivas_jbm_dec_render_fx(
    {
        FOR( n = 0; n < st_ivas->hTcBuffer->nchan_buffer_full; n++ )
        {
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
            p_tc_fx[n] = &p_output_fx[n][st_ivas->hTcBuffer->n_samples_rendered];
#else
            p_tc_fx[n] = p_output_fx[n];
#endif
        }

        FOR( n = 0; n < MAX_TRANSPORT_CHANNELS + MAX_NUM_OBJECTS; n++ )
+14 −1
Original line number Diff line number Diff line
@@ -297,10 +297,23 @@ ivas_error ivas_osba_render_sf_fx(
        p_output_ism[n] = &output_ism[n][0];
    }

    FOR( n = 0; n < st_ivas->nchan_ism; n++ )
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
    if ( !st_ivas->hDecoderConfig->Opt_tsm )
    {
        int16_t tc_offset;
        tc_offset = st_ivas->hTcBuffer->n_samples_rendered;
#endif
        for ( n = 0; n < st_ivas->nchan_ism; n++ )
        {
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
            v_shr( &p_output[n][tc_offset], Q11 - Q11, &output_ism[n][tc_offset], nSamplesAsked ); // Q11
#else
        v_shr( p_output[n], Q11 - Q11, output_ism[n], nSamplesAsked ); // Q11
#endif
        }
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
    }
#endif

    IF( NE_32( ( error = ivas_sba_dec_render_fx( st_ivas, nSamplesAsked, nSamplesRendered, nSamplesAvailableNext, p_output ) ), IVAS_ERR_OK ) )
    {
+6 −0
Original line number Diff line number Diff line
@@ -386,6 +386,12 @@ Word16 ivas_get_nchan_buffers_dec(
        {
            nchan_out_buff = shl( CPE_CHANNELS, 1 );
        }
#ifdef NONBE_FIX_979_OSBA_STEREO_5MS
        else if ( EQ_32( st_ivas->renderer_type, RENDERER_BINAURAL_PARAMETRIC ) || EQ_32( st_ivas->renderer_type, RENDERER_BINAURAL_PARAMETRIC_ROOM ) || EQ_32( st_ivas->renderer_type, RENDERER_STEREO_PARAMETRIC ) )
        {
            nchan_out_buff = s_max( nchan_out_buff, add( shl( BINAURAL_CHANNELS, 1 ), 2 ) );
        }
#endif
        ELSE IF( NE_32( output_config, IVAS_AUDIO_CONFIG_EXTERNAL ) )
        {
            nchan_out_buff = s_max( nchan_out_buff, audioCfg2channels( st_ivas->intern_config ) );