Commit 50f8a10d authored by vaclav's avatar vaclav
Browse files

port FIX_910_REMOVE_DUPLICATION_TD_REND

parent f9a567b8
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4010,13 +4010,13 @@ void ivas_omasa_modify_masa_energy_ratios(
/*----------------------------------------------------------------------------------*
 * TD Binaural Object renderer
 *----------------------------------------------------------------------------------*/

#ifndef FIX_910_REMOVE_DUPLICATION_TD_REND
ivas_error ivas_td_binaural_renderer(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder structure                  */
    float *output[],                                            /* i/o: SCE channels / Binaural synthesis       */
    const int16_t output_frame                                  /* i  : output frame length                     */
);

#endif
ivas_error ivas_td_binaural_renderer_sf(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder structure                  */
    float *output[],                                            /* i/o: SCE channels / Binaural synthesis       */
+27 −9
Original line number Diff line number Diff line
@@ -46,6 +46,12 @@
#include "ivas_stat_com.h"
#include "ivas_error_utils.h"

/* clang-format off */

/*----------------------------------------------------------------------------------*
 * General IVAS prototypes
 *----------------------------------------------------------------------------------*/

ivas_error ivas_masa_dec_open_fx(
    Decoder_Struct *st_ivas /* i/o: IVAS decoder handle                             */
);
@@ -165,11 +171,6 @@ ivas_error ivas_omasa_dec_config_fx(
    Word16 SrcInd[MAX_NUM_TDREND_CHANNELS],
    Word16 *data /* o  : output synthesis signal                                 */
);
ivas_error ivas_td_binaural_renderer_sf_fx(
    Decoder_Struct *st_ivas,           /* i/o: IVAS decoder structure              */
    Word32 *output_fx[],               /* i/o: SCE channels / Binaural synthesis   */
    const Word16 n_samples_granularity /* i  : granularity of the renderer/buffer  */
);

void ivas_omasa_modify_masa_energy_ratios_fx(
    IVAS_QMETADATA_HANDLE hQMetaData,                                                               /* i/o: q_metadata handle  */
@@ -3894,16 +3895,33 @@ void ivas_omasa_decode_masa_to_total_fx(
    const Word16 nblocks );


/*----------------------------------------------------------------------------------*
 * TD Binaural Object renderer
 *----------------------------------------------------------------------------------*/

ivas_error ivas_td_binaural_open_fx(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder structure  */
    Word16 *SrcInd,                                             /*Temporarily used to store the updated value of SrcInd*/
    Word16 *num_src );

    Word16 *num_src 
);
#ifndef FIX_910_REMOVE_DUPLICATION_TD_REND
ivas_error ivas_td_binaural_renderer_fx(
    Decoder_Struct *st_ivas,  /* i/o: IVAS decoder structure                  */
    Word32 *output[],         /* i/o: SCE channels / Binaural synthesis       */
    const Word16 output_frame /* i  : output frame length                     */
);
#endif

ivas_error ivas_td_binaural_renderer_sf_fx(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder structure              */
    Word32 *output_fx[],                                        /* i/o: SCE channels / Binaural synthesis   */
    const Word16 n_samples_granularity                          /* i  : granularity of the renderer/buffer  */
);


/*----------------------------------------------------------------------------------*
 * Filter-bank (FB) Mixer
 *----------------------------------------------------------------------------------*/

void ivas_FB_mixer_close_fx(
    IVAS_FB_MIXER_HANDLE *hFbMixer, /* i/o: FB mixer handle                             */
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@
#define SPLIT_REND_POSE_CORRECTION_UNUSED_BITS
#define ISAR_BITSTREAM_UPDATE_LC3PLUS                   /* FhG: Multiple improvements to the ISAR bitstream when LC3plus is used. See MR 1456 for details. */
#endif
#define FIX_910_REMOVE_DUPLICATION_TD_REND              /* VA: issue 910: remove duplication of function ivas_td_binaural_renderer() */

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

+2 −0
Original line number Diff line number Diff line
@@ -2477,6 +2477,7 @@ ivas_error ivas_jbm_dec_render_fx(
            {
                ivas_mc2sba_fx( st_ivas->hIntSetup, p_output_fx, p_output_fx, *nSamplesRendered, st_ivas->hOutSetup.ambisonics_order, 0 );
            }
#ifndef FIX_910_REMOVE_DUPLICATION_TD_REND
            ELSE IF( EQ_32( st_ivas->renderer_type, RENDERER_BINAURAL_OBJECTS_TD ) )
            {
                IF( NE_32( ( error = ivas_td_binaural_renderer_fx( st_ivas, p_output_fx, *nSamplesRendered ) ), IVAS_ERR_OK ) )
@@ -2486,6 +2487,7 @@ ivas_error ivas_jbm_dec_render_fx(

                ivas_binaural_add_LFE_fx( st_ivas, *nSamplesRendered, p_output_fx, p_output_fx );
            }
#endif
        }
        ELSE IF( EQ_32( st_ivas->mc_mode, MC_MODE_PARAMMC ) )
        {
+2 −2
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ ivas_error ivas_td_binaural_open_fx(
    return ivas_td_binaural_open_unwrap_fx( &st_ivas->hHrtfTD, st_ivas->hDecoderConfig->output_Fs, *num_src, st_ivas->ivas_format, st_ivas->transport_config, st_ivas->hRenderConfig->directivity_fx, st_ivas->hTransSetup, &st_ivas->hBinRendererTd, &st_ivas->binaural_latency_ns, SrcInd );
}


#ifndef FIX_910_REMOVE_DUPLICATION_TD_REND
/*---------------------------------------------------------------------*
 * ivas_td_binaural_renderer()
 *
@@ -108,7 +108,7 @@ ivas_error ivas_td_binaural_renderer_fx(
    }
    return ivas_td_binaural_renderer_unwrap_fx( st_ivas->hReverb, st_ivas->transport_config, st_ivas->hBinRendererTd, nchan_transport, LFE_CHANNEL, st_ivas->ivas_format, st_ivas->hIsmMetaData, st_ivas->hCombinedOrientationData, ism_md_subframe_update, output, output_frame, MAX_PARAM_SPATIAL_SUBFRAMES );
}

#endif

/*---------------------------------------------------------------------*
 * ivas_td_binaural_renderer_sf()
Loading