Commit db41d47d authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[cleanup] accept NONBE_FIX_979_OSBA_STEREO_5MS

parent 8aa4644f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -108,7 +108,6 @@

#endif

#define NONBE_FIX_979_OSBA_STEREO_5MS                   /* FhG : issue #979 : 5ms and 20ms output different for OSBA and stereo */

#define FIX_944_REMOVE_LS_RENDERER_CALL_IN_STEREO       /* VA: issue 994: remove an obsolete call of function ivas_ls_setup_conversion() in stereo */
#define NONBE_FIX_982_OMASA_DELAY_COMP_5MS              /* FhG : issue #982 : 5ms and 20ms output different for OMASA */
+0 −4
Original line number Diff line number Diff line
@@ -1893,11 +1893,7 @@ 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++ )
+0 −8
Original line number Diff line number Diff line
@@ -297,23 +297,15 @@ ivas_error ivas_osba_render_sf_fx(
        p_output_ism[n] = &output_ism[n][0];
    }

#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 ) )
    {
+0 −2
Original line number Diff line number Diff line
@@ -386,12 +386,10 @@ 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 ) );