Commit 66508837 authored by sagnowski's avatar sagnowski
Browse files

Revert "Merge branch 'orange/197_fix_lib_rend_ivas_stat_rend_api' into 'main'"

This reverts commit 9166a5e7, reversing
changes made to 75b78040.
parent 7b41be85
Loading
Loading
Loading
Loading
Loading
+1 −25
Original line number Diff line number Diff line
@@ -40,20 +40,13 @@
#include "stat_enc.h"
#include "stat_dec.h"
#include "stat_com.h"
#ifndef FIX_197_CREND_INTERFACE_LIB_REND_H
#ifdef FIX_197_CREND_INTERFACE
#include "ivas_stat_rend.h"
#endif
#endif
#include "ivas_stat_enc.h"
#include "ivas_stat_dec.h"
#include "ivas_stat_com.h"
#include "ivas_error_utils.h"
#ifdef FIX_197_CREND_INTERFACE
#ifndef FIX_197_CREND_INTERFACE_LIB_REND_H
#include "lib_rend.h"
#endif
#endif

/* clang-format off */

@@ -5428,9 +5421,8 @@ ivas_error ivas_crend_process(
    float output[][L_FRAME48k]                                  /* i/o: input/output audio channels             */
);

#else /* FIX_197_CREND_INTERFACE */
#else

#ifndef FIX_197_CREND_INTERFACE_LIB_REND_H
IVAS_REND_AudioConfigType getAudioConfigType(
    const IVAS_REND_AudioConfig config );

@@ -5440,30 +5432,19 @@ ivas_error getAudioConfigNumChannels(

IVAS_REND_AudioConfig getRendAudioConfigFromIvasAudioConfig(
    AUDIO_CONFIG config );
#endif /* FIX_197_CREND_INTERFACE_LIB_REND_H */

ivas_error ivas_rend_initCrend(
    CREND_WRAPPER *pCrend,
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
    const AUDIO_CONFIG inConfig,
    const AUDIO_CONFIG outConfig,
#else
    const IVAS_REND_AudioConfig inConfig,
    const IVAS_REND_AudioConfig outConfig,
#endif    
    RENDER_CONFIG_DATA *hRendCfg,
    HRTFS_CREND_HANDLE hSetOfHRTF,
    const int32_t output_Fs );    

ivas_error ivas_rend_openCrend(
    CREND_WRAPPER_HANDLE *pCrend,
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
    const AUDIO_CONFIG inConfig,
    const AUDIO_CONFIG outConfig,
#else
    const IVAS_REND_AudioConfig inConfig,
    const IVAS_REND_AudioConfig outConfig,
#endif    
    RENDER_CONFIG_DATA *hRendCfg,
    int16_t Opt_Headrotation,
    HRTFS_CREND_HANDLE hSetOfHRTF,
@@ -5478,13 +5459,8 @@ ivas_error ivas_rend_closeCrend(

ivas_error ivas_rend_crendProcess(
    const CREND_WRAPPER *pCrend,
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H    
    const AUDIO_CONFIG inConfig,
    const AUDIO_CONFIG outConfig,
#else
    const IVAS_REND_AudioConfig inConfig,
    const IVAS_REND_AudioConfig outConfig,
#endif    
    DECODER_CONFIG_HANDLE hDecoderConfig,
    HEAD_TRACK_DATA_HANDLE hHeadTrackData,   
    IVAS_OUTPUT_SETUP_HANDLE hIntSetup, 
+0 −4
Original line number Diff line number Diff line
@@ -150,10 +150,6 @@

#define FIX_197_CREND_INTERFACE 

#ifdef FIX_197_CREND_INTERFACE
#define FIX_197_CREND_INTERFACE_LIB_REND_H
#endif

#define FIX_MEMORY_COUNTING_HRTF_BINARY_FILE
#define FIX_334_DEBUG_BE_STEREO_SWITCHING               /* FhG: Fix non-BE issue for stereo switching when DEBUGGING is enabled */
#define FIX_198_TDREND_INTERFACE                        /* Issue 198: Harmonize interface for TD renderer between decoder and external renderer */
+0 −11
Original line number Diff line number Diff line
@@ -209,13 +209,8 @@ ivas_error ivas_dec(
            {
#ifdef FIX_197_CREND_INTERFACE
                if ( ( error = ivas_rend_crendProcess( st_ivas->hCrendWrapper,
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
                                                       AUDIO_CONFIG_7_1_4,
                                                       AUDIO_CONFIG_BINAURAL_ROOM,
#else
                                                       IVAS_REND_AUDIO_CONFIG_7_1_4,
                                                       IVAS_REND_AUDIO_CONFIG_BINAURAL_ROOM,
#endif
                                                       NULL,
                                                       NULL,
                                                       NULL,
@@ -427,14 +422,8 @@ ivas_error ivas_dec(
            {
#ifdef FIX_197_CREND_INTERFACE
                if ( ( error = ivas_rend_crendProcess( st_ivas->hCrendWrapper,
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
                                                       st_ivas->intern_config,
                                                       st_ivas->hOutSetup.output_config,
#else
                                                       getRendAudioConfigFromIvasAudioConfig( st_ivas->intern_config ),
                                                       getRendAudioConfigFromIvasAudioConfig( st_ivas->hOutSetup.output_config ),

#endif
                                                       st_ivas->hDecoderConfig,
                                                       st_ivas->hHeadTrackData,
                                                       &st_ivas->hIntSetup,
+0 −5
Original line number Diff line number Diff line
@@ -1249,13 +1249,8 @@ ivas_error ivas_init_decoder(
        }

        if ( ( error = ivas_rend_openCrend( &( st_ivas->hCrendWrapper ),
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
                                            st_ivas->intern_config,
                                            st_ivas->hDecoderConfig->output_config,
#else
                                            getRendAudioConfigFromIvasAudioConfig( st_ivas->intern_config ),
                                            getRendAudioConfigFromIvasAudioConfig( st_ivas->hDecoderConfig->output_config ),
#endif
                                            st_ivas->hRenderConfig, st_ivas->hDecoderConfig->Opt_Headrotation,
                                            st_ivas->hSetOfHRTF,
                                            st_ivas->hDecoderConfig->output_Fs ) ) != IVAS_ERR_OK )
+0 −5
Original line number Diff line number Diff line
@@ -1087,13 +1087,8 @@ static ivas_error ivas_ism_bitrate_switching(
            /* Open Crend Binaural renderer */
#ifdef FIX_197_CREND_INTERFACE
            if ( ( error = ivas_rend_openCrend( &( st_ivas->hCrendWrapper ),
#ifdef FIX_197_CREND_INTERFACE_LIB_REND_H
                                                st_ivas->intern_config,
                                                st_ivas->hOutSetup.output_config,
#else
                                                getRendAudioConfigFromIvasAudioConfig( st_ivas->intern_config ),
                                                getRendAudioConfigFromIvasAudioConfig( st_ivas->hOutSetup.output_config ),
#endif
                                                st_ivas->hRenderConfig,
                                                st_ivas->hDecoderConfig->Opt_Headrotation,
                                                st_ivas->hSetOfHRTF,
Loading