Commit 6bf45de5 authored by malenov's avatar malenov
Browse files

removing INTERFRAME_HEAP_MANAGEMENT

parent 6eb71868
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -174,7 +174,6 @@
#define FIX_ISM_DECODER_PRINTOUT                        /* Issue 229: fix ISM decoder printout */


#define INTRAFRAME_HEAP_MANAGEMENT

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+0 −12
Original line number Diff line number Diff line
@@ -774,7 +774,6 @@ 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 )
    {
@@ -784,7 +783,6 @@ 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 );
@@ -1116,9 +1114,7 @@ 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 );

@@ -1888,11 +1884,7 @@ 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;
@@ -2560,10 +2552,6 @@ void ivas_dirac_dec(
        }
    }

#ifdef INTRAFRAME_HEAP_MANAGEMENT
    ivas_dirac_free_mem( &DirAC_mem );
#endif

    pop_wmops();

    return;
+0 −2
Original line number Diff line number Diff line
@@ -698,9 +698,7 @@ 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;