Commit 308cadad authored by multrus's avatar multrus
Browse files

[cleanup] accept NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH

parent afa1b0bb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -159,7 +159,6 @@
#define FIX_1129_EXT_REND_OUTPUT_HIGH                   /* Philips: issue 1129: External renderer BINAURAL_ROOM_REVERB format output level too high compared to internal rendering output */
#define NONBE_1244_FIX_SWB_BWE_MEMORY                   /* VA: issue 1244: fix to SWB BWE memory in case of switching from FB coding - pending a review by Huawei */
#define FIX_1113_CLDFB_REND_IN_ISAR                     /* issue 1113: fix the use of CLDFB renderer in split-rendering at the external renderer */
#define NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH             /* VA: issue 1220: fix bug in renderer flush in OMASA 1ISM JBM bitrate switching */
#define FIX_1369_HQ_LR_OVERFLOW                         /* FhG: fix BASOP overflow in hq_lr_enc(), brings floating-point code inline with FX */
#define NONBE_1118_EVS_LR_HQ_BITERROR                   /* VA: issue 1118: fix EVS decoder crash in LR-HQ in case of bit errors */
#define FIX_1139_REV_COLORATION_SHORT_T60               /* Nokia,FhG: Fix issue 1139, prevent sound coloration artefacts at very low reverberation times */
+0 −23
Original line number Diff line number Diff line
@@ -1645,11 +1645,7 @@ ivas_error ivas_jbm_dec_flush_renderer(
        {
            if ( ism_mode_old == ISM_MASA_MODE_DISC )
            {
#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
                float *tc_local[MAX_NUM_OBJECTS];
#else
                float *tc_local[MAX_TRANSPORT_CHANNELS];
#endif

                for ( ch_idx = 0; ch_idx < st_ivas->nchan_ism; ch_idx++ )
                {
@@ -1657,30 +1653,11 @@ ivas_error ivas_jbm_dec_flush_renderer(
                    mvr2r( st_ivas->hMasaIsmData->delayBuffer[ch_idx], tc_local[ch_idx], st_ivas->hMasaIsmData->delayBuffer_size );
                }

#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
                if ( ( error = ivas_td_binaural_renderer_sf( st_ivas, p_output, hTcBuffer->n_samples_granularity ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
#else
                if ( st_ivas->nchan_ism > 0 )
                {
                if ( ( error = ivas_td_binaural_renderer_sf( st_ivas, p_output, hTcBuffer->n_samples_granularity ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
            }
                else
                {
                    for ( ch_idx = 0; ch_idx < st_ivas->hDecoderConfig->nchan_out; ch_idx++ )
                    {
                        set_zero( p_output[ch_idx], (int16_t) ( *nSamplesRendered ) );
                    }
                    st_ivas->hTcBuffer->slots_rendered += 1;
                    st_ivas->hTcBuffer->subframes_rendered += 1;
                }
#endif
            }
        }
        else if ( st_ivas->ivas_format == SBA_ISM_FORMAT )
        {
+0 −4
Original line number Diff line number Diff line
@@ -92,11 +92,7 @@ ivas_error ivas_td_binaural_renderer_sf(
    int16_t nchan_ism_internal, nchan_ism, ch_offset;

    /* Set the number of ISMs */
#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
    if ( st_ivas->ivas_format == MASA_ISM_FORMAT || ( st_ivas->ivas_format == MASA_FORMAT && st_ivas->nchan_ism > 0 ) )
#else
    if ( st_ivas->ivas_format == MASA_ISM_FORMAT )
#endif
    {
        nchan_ism_internal = st_ivas->nchan_ism;
        nchan_ism = st_ivas->nchan_ism;
+0 −12
Original line number Diff line number Diff line
@@ -738,26 +738,14 @@ ivas_error ivas_omasa_dirac_td_binaural_jbm(
)
{
    int16_t n;
#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
    float data_separated_objects[BINAURAL_CHANNELS][L_FRAME48k];
#else
    float data_separated_objects[MAX_NUM_OBJECTS][L_FRAME48k];
#endif
    ivas_error error;
#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
    float *p_sepobj[BINAURAL_CHANNELS];
#else
    float *p_sepobj[MAX_NUM_OBJECTS];
#endif
    int16_t slot_idx_start;

    slot_idx_start = st_ivas->hSpatParamRendCom->slots_rendered;

#ifdef NONBE_1220_OMASA_JBM_BRATE_SW_FLUSH
    for ( n = 0; n < BINAURAL_CHANNELS; n++ )
#else
    for ( n = 0; n < MAX_NUM_OBJECTS; n++ )
#endif
    {
        p_sepobj[n] = &data_separated_objects[n][0];
    }