Commit acfbcc3e authored by Devansh Kandpal's avatar Devansh Kandpal
Browse files

declared hrtf statistics struct

parent a9012d00
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1108,6 +1108,9 @@ typedef struct Decoder_Struct
    HRTFS_CREND_HANDLE hSetOfHRTF;                             /* Set of HRTFs handle (CRend) */
    HRTFS_FASTCONV_HANDLE hHrtfFastConv;                       /* FASTCONV HRTF tables for binaural rendering */
    HRTFS_PARAMBIN_HANDLE hHrtfParambin;                       /* HRTF tables for parametric binauralizer */
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
	HRTFS_STATISTICS_HANDLE hHrtfStatistics;                   /* HRTF statistics handle */
#endif
    LSSETUP_CUSTOM_HANDLE hLsSetupCustom;                      /* Custom LS configuration handle */
    float *hoa_dec_mtx;                                        /* Pointer to decoder matrix for SBA */
    HEAD_TRACK_DATA_HANDLE hHeadTrackData;                     /* Head tracking data structure */
+7 −0
Original line number Diff line number Diff line
@@ -440,6 +440,13 @@ ivas_error IVAS_DEC_GetHrtfParamBinHandle(
    IVAS_DEC_HRTF_PARAMBIN_HANDLE **hHrtfParambin /* o  : Parametric binauralizer HRTF handle */
);

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
ivas_error IVAS_DEC_GetHrtfStatisticsHandle(
    IVAS_DEC_HANDLE hIvasDec,                           /* i/o: IVAS decoder handle                                             */
    IVAS_DEC_HRTF_STATISTICS_HANDLE **hHrtfStatistics   /* o  : HRTF statistics handle                                          */
);
#endif  

/*! r: error code*/
ivas_error IVAS_DEC_GetRenderConfig(
    IVAS_DEC_HANDLE hIvasDec,                   /* i/o: IVAS decoder handle                                                     */
+12 −0
Original line number Diff line number Diff line
@@ -1058,8 +1058,11 @@ typedef struct TDREND_HRFILT_FiltSet_struct
    ModelParamsITD_t ModelParamsITD;
    TDREND_HRFILT_Method_t FilterMethod; /* HR filtering method */
    float latency_s;
#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES
#else
    const float *lr_energy_and_iac[3]; /* left/right energy and interaural coherence for late reverb */
    float *lr_energy_and_iac_dyn[3];
#endif

} TDREND_HRFILT_FiltSet_t;

@@ -1332,6 +1335,15 @@ typedef struct ivas_hrtfs_parambin_struct

} HRTFS_PARAMBIN, *HRTFS_PARAMBIN_HANDLE;

#ifdef NONBE_FIX_922_PRECOMPUTED_HRTF_PROPERTIES 
typedef struct ivas_hrtfs_statistics_struct
{
    float *average_energy_l;
    float *average_energy_r;
    float *inter_aural_coherence;
    int16_t fromROM; /*  Flag that indicates that the pointers point to tables in ROM (controls init/dealloc).*/
} HRTFS_STATISTICS, *HRTFS_STATISTICS_HANDLE;
#endif 

#ifdef SPLIT_REND_WITH_HEAD_ROT
/*----------------------------------------------------------------------------------*