Loading lib_com/options.h +2 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,8 @@ #define NONBE_FIX_1000_G1_G2_SWB_TBE /* VA: issue 1000: avoid div by zero due to g1 + g2 being zero in SWB TBE */ #define FIX_699_FILE_READER_JBM_TSM /* VA: issue 699: complement FileReader_getFilePath() logic for TSM and JBM */ #define FIX_997_REMOVE_SPAR_DEC_UPMIXER /* VA: issue 997: remove obsolete function ivas_spar_dec_upmixer() */ #define FIX_998_UNUSED_FUNCTION /* FhG: issue 998: delete unused funtion ivas_dirac_dec_get_response_split_order */ /* #################### End BASOP porting switches ############################ */ Loading lib_dec/ivas_dirac_dec.c +31 −0 Original line number Diff line number Diff line Loading @@ -1849,6 +1849,7 @@ void ivas_dirac_dec_render_sf( set_zero( surCohRatio, hSpatParamRendCom->num_freq_bands ); } } #ifndef FIX_998_UNUSED_FUNCTION if ( st_ivas->hCombinedOrientationData && st_ivas->hCombinedOrientationData->enableCombinedOrientation[st_ivas->hCombinedOrientationData->subframe_idx] && st_ivas->hCombinedOrientationData->shd_rot_max_order == 1 ) { Loading Loading @@ -1880,6 +1881,19 @@ void ivas_dirac_dec_render_sf( NULL, hodirac_flag ); } #else ivas_dirac_dec_compute_directional_responses( hSpatParamRendCom, hDirACRend, st_ivas->hVBAPdata, st_ivas->hMasa == NULL ? NULL : st_ivas->hMasa->data.band_mapping, st_ivas->hMasaIsmData, azimuth, elevation, md_idx, surCohRatio, hodirac_flag ); #endif } if ( st_ivas->ivas_format == MASA_ISM_FORMAT && nchan_transport == 2 ) Loading Loading @@ -2217,6 +2231,7 @@ void ivas_dirac_dec_render_sf( } /*Compute PSDs*/ #ifndef FIX_998_UNUSED_FUNCTION if ( st_ivas->hCombinedOrientationData && st_ivas->hCombinedOrientationData->enableCombinedOrientation[st_ivas->hCombinedOrientationData->subframe_idx] && st_ivas->hCombinedOrientationData->shd_rot_max_order > 0 ) { ivas_dirac_dec_output_synthesis_process_slot( reference_power, Loading Loading @@ -2253,6 +2268,22 @@ void ivas_dirac_dec_render_sf( hodirac_flag, hDirAC->hConfig->dec_param_estim ); } #else ivas_dirac_dec_output_synthesis_process_slot( reference_power, p_onset_filter, azimuth, elevation, hSpatParamRendCom->diffuseness_vector[md_idx], hSpatParamRendCom, hDirACRend, st_ivas->hVBAPdata, hDirACRend->hOutSetup, nchan_transport, md_idx, hodirac_flag, hDirAC->hConfig->dec_param_estim ); #endif if ( hDirAC->hConfig->dec_param_estim ) { Loading lib_rend/ivas_dirac_output_synthesis_dec.c +16 −2 Original line number Diff line number Diff line Loading @@ -542,8 +542,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( const float *diffuseness, SPAT_PARAM_REND_COMMON_DATA_HANDLE hSpatParamRendCom, /* i/o: common spatial renderer data handle */ DIRAC_REND_HANDLE hDirACRend, /* i/o: DirAC renderer handle */ #ifndef FIX_998_UNUSED_FUNCTION const int16_t sh_rot_max_order, const float *p_Rmat, /* i : rotation matrix */ #endif const VBAP_HANDLE hVBAPdata, /* i : VBAP structure */ const IVAS_OUTPUT_SETUP hOutSetup, /* i : output setup structure */ const int16_t nchan_transport, /* i : number of transport channels*/ Loading Loading @@ -590,8 +592,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( elevation, md_idx, NULL, #ifndef FIX_998_UNUSED_FUNCTION 2, p_Rmat, #endif hodirac_flag ); } Loading Loading @@ -638,8 +642,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( elevation, md_idx, NULL, #ifndef FIX_998_UNUSED_FUNCTION sh_rot_max_order, p_Rmat, #endif hodirac_flag ); if ( hDirACRend->synthesisConf == DIRAC_SYNTHESIS_GAIN_SHD ) Loading Loading @@ -1570,6 +1576,7 @@ void ivas_dirac_dec_output_synthesis_process_subframe_psd_ls( return; } #ifndef FIX_998_UNUSED_FUNCTION /*------------------------------------------------------------------------- * ivas_dirac_dec_get_response_split_order() Loading Loading @@ -1733,6 +1740,7 @@ static void ivas_dirac_dec_get_response_split_order( return; } #endif /*------------------------------------------------------------------------- * ivas_dirac_dec_compute_directional_responses() Loading @@ -1750,8 +1758,10 @@ void ivas_dirac_dec_compute_directional_responses( const int16_t *elevation, const int16_t md_idx, const float *surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION const int16_t shd_rot_max_order, /* i : split-order rotation method */ const float *p_Rmat, /* i : rotation matrix */ #endif const int16_t hodirac_flag /* i : flag to indicate HO-DirAC mode */ ) { Loading Loading @@ -1822,6 +1832,7 @@ void ivas_dirac_dec_compute_directional_responses( set_f( direct_response_hoa, 1.0f, MAX_OUTPUT_CHANNELS ); set_f( direct_response_dir2, 1.0f, MAX_OUTPUT_CHANNELS ); #ifndef FIX_998_UNUSED_FUNCTION if ( p_Rmat != 0 ) { ivas_dirac_dec_get_response_split_order( azimuth[k], elevation[k], direct_response_hoa, shd_rot_max_order, p_Rmat ); Loading @@ -1833,13 +1844,16 @@ void ivas_dirac_dec_compute_directional_responses( } else { #endif ivas_dirac_dec_get_response( azimuth[k], elevation[k], direct_response_hoa, hDirACRend->hOutSetup.ambisonics_order ); if ( hodirac_flag ) { ivas_dirac_dec_get_response( azimuth2[k], elevation2[k], direct_response_dir2, hDirACRend->hOutSetup.ambisonics_order ); } #ifndef FIX_998_UNUSED_FUNCTION } #endif if ( masa_band_mapping == NULL && hDirACRend->synthesisConf == DIRAC_SYNTHESIS_GAIN_SHD ) { Loading lib_rend/ivas_dirac_rend.c +4 −0 Original line number Diff line number Diff line Loading @@ -2216,8 +2216,10 @@ static void ivas_masa_ext_dirac_render_sf( elevation, md_idx, surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION 0, NULL, #endif 0 ); Loading Loading @@ -2372,8 +2374,10 @@ static void ivas_masa_ext_dirac_render_sf( hSpatParamRendCom->diffuseness_vector[md_idx], hSpatParamRendCom, hDirACRend, #ifndef FIX_998_UNUSED_FUNCTION 0, 0, #endif hMasaExtRend->hVBAPdata, hDirACRend->hOutSetup, nchan_transport, Loading lib_rend/ivas_prot_rend.h +4 −0 Original line number Diff line number Diff line Loading @@ -435,8 +435,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( const float *diffuseness, SPAT_PARAM_REND_COMMON_DATA_HANDLE hSpatParamRendCom, /* i/o: common spatial renderer data handle */ DIRAC_REND_HANDLE hDirACRend, /* i/o: DirAC renderer handle */ #ifndef FIX_998_UNUSED_FUNCTION const int16_t sh_rot_max_order, const float *p_Rmat, /* i : rotation matrix */ #endif const VBAP_HANDLE hVBAPdata, /* i : VBAP structure */ const IVAS_OUTPUT_SETUP hOutSetup, /* i : output setup structure */ const int16_t nchan_transport, /* i : number of transport channels */ Loading Loading @@ -503,8 +505,10 @@ void ivas_dirac_dec_compute_directional_responses( const int16_t *elevation, const int16_t md_idx, const float *surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION const int16_t shd_rot_max_order, /* i : split-order rotation method */ const float *p_Rmat, /* i : rotation matrix */ #endif const int16_t hodirac_flag /* i : flag to indicate HO-DirAC mode */ ); Loading Loading
lib_com/options.h +2 −0 Original line number Diff line number Diff line Loading @@ -222,6 +222,8 @@ #define NONBE_FIX_1000_G1_G2_SWB_TBE /* VA: issue 1000: avoid div by zero due to g1 + g2 being zero in SWB TBE */ #define FIX_699_FILE_READER_JBM_TSM /* VA: issue 699: complement FileReader_getFilePath() logic for TSM and JBM */ #define FIX_997_REMOVE_SPAR_DEC_UPMIXER /* VA: issue 997: remove obsolete function ivas_spar_dec_upmixer() */ #define FIX_998_UNUSED_FUNCTION /* FhG: issue 998: delete unused funtion ivas_dirac_dec_get_response_split_order */ /* #################### End BASOP porting switches ############################ */ Loading
lib_dec/ivas_dirac_dec.c +31 −0 Original line number Diff line number Diff line Loading @@ -1849,6 +1849,7 @@ void ivas_dirac_dec_render_sf( set_zero( surCohRatio, hSpatParamRendCom->num_freq_bands ); } } #ifndef FIX_998_UNUSED_FUNCTION if ( st_ivas->hCombinedOrientationData && st_ivas->hCombinedOrientationData->enableCombinedOrientation[st_ivas->hCombinedOrientationData->subframe_idx] && st_ivas->hCombinedOrientationData->shd_rot_max_order == 1 ) { Loading Loading @@ -1880,6 +1881,19 @@ void ivas_dirac_dec_render_sf( NULL, hodirac_flag ); } #else ivas_dirac_dec_compute_directional_responses( hSpatParamRendCom, hDirACRend, st_ivas->hVBAPdata, st_ivas->hMasa == NULL ? NULL : st_ivas->hMasa->data.band_mapping, st_ivas->hMasaIsmData, azimuth, elevation, md_idx, surCohRatio, hodirac_flag ); #endif } if ( st_ivas->ivas_format == MASA_ISM_FORMAT && nchan_transport == 2 ) Loading Loading @@ -2217,6 +2231,7 @@ void ivas_dirac_dec_render_sf( } /*Compute PSDs*/ #ifndef FIX_998_UNUSED_FUNCTION if ( st_ivas->hCombinedOrientationData && st_ivas->hCombinedOrientationData->enableCombinedOrientation[st_ivas->hCombinedOrientationData->subframe_idx] && st_ivas->hCombinedOrientationData->shd_rot_max_order > 0 ) { ivas_dirac_dec_output_synthesis_process_slot( reference_power, Loading Loading @@ -2253,6 +2268,22 @@ void ivas_dirac_dec_render_sf( hodirac_flag, hDirAC->hConfig->dec_param_estim ); } #else ivas_dirac_dec_output_synthesis_process_slot( reference_power, p_onset_filter, azimuth, elevation, hSpatParamRendCom->diffuseness_vector[md_idx], hSpatParamRendCom, hDirACRend, st_ivas->hVBAPdata, hDirACRend->hOutSetup, nchan_transport, md_idx, hodirac_flag, hDirAC->hConfig->dec_param_estim ); #endif if ( hDirAC->hConfig->dec_param_estim ) { Loading
lib_rend/ivas_dirac_output_synthesis_dec.c +16 −2 Original line number Diff line number Diff line Loading @@ -542,8 +542,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( const float *diffuseness, SPAT_PARAM_REND_COMMON_DATA_HANDLE hSpatParamRendCom, /* i/o: common spatial renderer data handle */ DIRAC_REND_HANDLE hDirACRend, /* i/o: DirAC renderer handle */ #ifndef FIX_998_UNUSED_FUNCTION const int16_t sh_rot_max_order, const float *p_Rmat, /* i : rotation matrix */ #endif const VBAP_HANDLE hVBAPdata, /* i : VBAP structure */ const IVAS_OUTPUT_SETUP hOutSetup, /* i : output setup structure */ const int16_t nchan_transport, /* i : number of transport channels*/ Loading Loading @@ -590,8 +592,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( elevation, md_idx, NULL, #ifndef FIX_998_UNUSED_FUNCTION 2, p_Rmat, #endif hodirac_flag ); } Loading Loading @@ -638,8 +642,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( elevation, md_idx, NULL, #ifndef FIX_998_UNUSED_FUNCTION sh_rot_max_order, p_Rmat, #endif hodirac_flag ); if ( hDirACRend->synthesisConf == DIRAC_SYNTHESIS_GAIN_SHD ) Loading Loading @@ -1570,6 +1576,7 @@ void ivas_dirac_dec_output_synthesis_process_subframe_psd_ls( return; } #ifndef FIX_998_UNUSED_FUNCTION /*------------------------------------------------------------------------- * ivas_dirac_dec_get_response_split_order() Loading Loading @@ -1733,6 +1740,7 @@ static void ivas_dirac_dec_get_response_split_order( return; } #endif /*------------------------------------------------------------------------- * ivas_dirac_dec_compute_directional_responses() Loading @@ -1750,8 +1758,10 @@ void ivas_dirac_dec_compute_directional_responses( const int16_t *elevation, const int16_t md_idx, const float *surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION const int16_t shd_rot_max_order, /* i : split-order rotation method */ const float *p_Rmat, /* i : rotation matrix */ #endif const int16_t hodirac_flag /* i : flag to indicate HO-DirAC mode */ ) { Loading Loading @@ -1822,6 +1832,7 @@ void ivas_dirac_dec_compute_directional_responses( set_f( direct_response_hoa, 1.0f, MAX_OUTPUT_CHANNELS ); set_f( direct_response_dir2, 1.0f, MAX_OUTPUT_CHANNELS ); #ifndef FIX_998_UNUSED_FUNCTION if ( p_Rmat != 0 ) { ivas_dirac_dec_get_response_split_order( azimuth[k], elevation[k], direct_response_hoa, shd_rot_max_order, p_Rmat ); Loading @@ -1833,13 +1844,16 @@ void ivas_dirac_dec_compute_directional_responses( } else { #endif ivas_dirac_dec_get_response( azimuth[k], elevation[k], direct_response_hoa, hDirACRend->hOutSetup.ambisonics_order ); if ( hodirac_flag ) { ivas_dirac_dec_get_response( azimuth2[k], elevation2[k], direct_response_dir2, hDirACRend->hOutSetup.ambisonics_order ); } #ifndef FIX_998_UNUSED_FUNCTION } #endif if ( masa_band_mapping == NULL && hDirACRend->synthesisConf == DIRAC_SYNTHESIS_GAIN_SHD ) { Loading
lib_rend/ivas_dirac_rend.c +4 −0 Original line number Diff line number Diff line Loading @@ -2216,8 +2216,10 @@ static void ivas_masa_ext_dirac_render_sf( elevation, md_idx, surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION 0, NULL, #endif 0 ); Loading Loading @@ -2372,8 +2374,10 @@ static void ivas_masa_ext_dirac_render_sf( hSpatParamRendCom->diffuseness_vector[md_idx], hSpatParamRendCom, hDirACRend, #ifndef FIX_998_UNUSED_FUNCTION 0, 0, #endif hMasaExtRend->hVBAPdata, hDirACRend->hOutSetup, nchan_transport, Loading
lib_rend/ivas_prot_rend.h +4 −0 Original line number Diff line number Diff line Loading @@ -435,8 +435,10 @@ void ivas_dirac_dec_output_synthesis_process_slot( const float *diffuseness, SPAT_PARAM_REND_COMMON_DATA_HANDLE hSpatParamRendCom, /* i/o: common spatial renderer data handle */ DIRAC_REND_HANDLE hDirACRend, /* i/o: DirAC renderer handle */ #ifndef FIX_998_UNUSED_FUNCTION const int16_t sh_rot_max_order, const float *p_Rmat, /* i : rotation matrix */ #endif const VBAP_HANDLE hVBAPdata, /* i : VBAP structure */ const IVAS_OUTPUT_SETUP hOutSetup, /* i : output setup structure */ const int16_t nchan_transport, /* i : number of transport channels */ Loading Loading @@ -503,8 +505,10 @@ void ivas_dirac_dec_compute_directional_responses( const int16_t *elevation, const int16_t md_idx, const float *surCohRatio, #ifndef FIX_998_UNUSED_FUNCTION const int16_t shd_rot_max_order, /* i : split-order rotation method */ const float *p_Rmat, /* i : rotation matrix */ #endif const int16_t hodirac_flag /* i : flag to indicate HO-DirAC mode */ ); Loading