Commit 9164eaaa authored by malenovsky's avatar malenovsky
Browse files

Merge branch '1356_basop_PortFlpMR1263' into 'main-pc'

Port float MR1263 to BASOP

See merge request !1241
parents 23b78c48 ad21337b
Loading
Loading
Loading
Loading

lib_com/ivas_prot.h

0 → 100644
+4068 −0

File added.

Preview size limit exceeded, changes collapsed.

+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  */
@@ -3893,16 +3894,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                             */

lib_com/options.h

100755 → 100644
+1 −0
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@
#define NONBE_FIX_1058_DECODER_ERROR_WITH_REVERB_ROOM   /* FhG: issue 1058: do not initialize EFAP when IntSetup is HOA3 */
#define NONBE_FIX_907_VLBR_DIRAC_BAND_MAPPING           /* Dlb: issue 907: fix for band mapping at VLBR */  
#define NONBE_FIX_869_MASA_PREREND_MERGE                      /* Nokia: issue: #869: MASA pre-rend not updating energy */
#define FIX_910_REMOVE_DUPLICATION_TD_REND              /* VA: issue 910: remove duplication of function ivas_td_binaural_renderer() */

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

+4 −2
Original line number Diff line number Diff line
@@ -2495,6 +2495,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 ) )
@@ -2504,6 +2505,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 ) )
        {
@@ -3417,11 +3419,11 @@ Word16 ivas_jbm_dec_get_num_tc_channels_fx(
            move16();
        }

        test();
        test();
#ifdef NONBE_FIX_926_OSBA_DECODER_CRASH_PLANAR_SBA
        if ( EQ_16( num_tc, 3 ) )
#else
        test();
        test();
        if ( ( st_ivas->sba_planar && GE_16( num_tc, 3 ) ) || EQ_16( num_tc, 3 ) )
#endif
        {
+2 −2
Original line number Diff line number Diff line
@@ -62,7 +62,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()
 *
@@ -106,7 +106,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