Loading lib_com/options.h +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,8 @@ #define FIX_ISM_METADATA_READER /* Issue 211: make ISM metadata file reader robust against invalid files */ #define INTRAFRAME_HEAP_MANAGEMENT /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ #endif lib_dec/ivas_dirac_dec.c +13 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,7 @@ ivas_error ivas_dirac_dec_config( /* output synthesis */ ivas_dirac_dec_output_synthesis_init( hDirAC, nchan_out_woLFE ); #ifndef INTRAFRAME_HEAP_MANAGEMENT /* Allocate stack memory */ if ( flag_config != DIRAC_OPEN ) { Loading @@ -783,6 +784,7 @@ ivas_error ivas_dirac_dec_config( ivas_dirac_alloc_mem( hDirAC, st_ivas->renderer_type, &( hDirAC->stack_mem ) ); #else ivas_dirac_alloc_mem( hDirAC, &( hDirAC->stack_mem ) ); #endif #endif mvs2s( DirAC_block_grouping, hDirAC->block_grouping, MAX_PARAM_SPATIAL_SUBFRAMES + 1 ); Loading Loading @@ -1114,7 +1116,9 @@ void ivas_dirac_dec_close( hDirAC->masa_stereo_type_detect = NULL; } #ifndef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_free_mem( &( hDirAC->stack_mem ) ); #endif free( hDirAC ); Loading Loading @@ -1883,7 +1887,12 @@ void ivas_dirac_dec( /* Initialize aux buffers */ hDirAC = st_ivas->hDirAC; #ifdef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_alloc_mem( hDirAC, st_ivas->renderer_type, &DirAC_mem ); #else DirAC_mem = st_ivas->hDirAC->stack_mem; #endif reference_power = DirAC_mem.reference_power; reference_power_smooth = DirAC_mem.reference_power + hDirAC->num_freq_bands; Loading Loading @@ -2551,6 +2560,10 @@ void ivas_dirac_dec( } } #ifdef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_free_mem( &DirAC_mem ); #endif pop_wmops(); return; Loading lib_dec/ivas_stat_dec.h +2 −1 Original line number Diff line number Diff line Loading @@ -698,8 +698,9 @@ typedef struct ivas_dirac_dec_data_structure float *proto_frame_f; float *proto_frame_dec_f; #ifndef INTRAFRAME_HEAP_MANAGEMENT DIRAC_DEC_STACK_MEM stack_mem; #endif MASA_STEREO_TYPE_DETECT *masa_stereo_type_detect; int16_t num_ele_spk_no_diffuse_rendering; Loading Loading
lib_com/options.h +2 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,8 @@ #define FIX_ISM_METADATA_READER /* Issue 211: make ISM metadata file reader robust against invalid files */ #define INTRAFRAME_HEAP_MANAGEMENT /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ #endif
lib_dec/ivas_dirac_dec.c +13 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,7 @@ ivas_error ivas_dirac_dec_config( /* output synthesis */ ivas_dirac_dec_output_synthesis_init( hDirAC, nchan_out_woLFE ); #ifndef INTRAFRAME_HEAP_MANAGEMENT /* Allocate stack memory */ if ( flag_config != DIRAC_OPEN ) { Loading @@ -783,6 +784,7 @@ ivas_error ivas_dirac_dec_config( ivas_dirac_alloc_mem( hDirAC, st_ivas->renderer_type, &( hDirAC->stack_mem ) ); #else ivas_dirac_alloc_mem( hDirAC, &( hDirAC->stack_mem ) ); #endif #endif mvs2s( DirAC_block_grouping, hDirAC->block_grouping, MAX_PARAM_SPATIAL_SUBFRAMES + 1 ); Loading Loading @@ -1114,7 +1116,9 @@ void ivas_dirac_dec_close( hDirAC->masa_stereo_type_detect = NULL; } #ifndef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_free_mem( &( hDirAC->stack_mem ) ); #endif free( hDirAC ); Loading Loading @@ -1883,7 +1887,12 @@ void ivas_dirac_dec( /* Initialize aux buffers */ hDirAC = st_ivas->hDirAC; #ifdef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_alloc_mem( hDirAC, st_ivas->renderer_type, &DirAC_mem ); #else DirAC_mem = st_ivas->hDirAC->stack_mem; #endif reference_power = DirAC_mem.reference_power; reference_power_smooth = DirAC_mem.reference_power + hDirAC->num_freq_bands; Loading Loading @@ -2551,6 +2560,10 @@ void ivas_dirac_dec( } } #ifdef INTRAFRAME_HEAP_MANAGEMENT ivas_dirac_free_mem( &DirAC_mem ); #endif pop_wmops(); return; Loading
lib_dec/ivas_stat_dec.h +2 −1 Original line number Diff line number Diff line Loading @@ -698,8 +698,9 @@ typedef struct ivas_dirac_dec_data_structure float *proto_frame_f; float *proto_frame_dec_f; #ifndef INTRAFRAME_HEAP_MANAGEMENT DIRAC_DEC_STACK_MEM stack_mem; #endif MASA_STEREO_TYPE_DETECT *masa_stereo_type_detect; int16_t num_ele_spk_no_diffuse_rendering; Loading