Commit 89bab706 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch 'main' into 681-remove-debug_ind_list_memory-for-the-last-time

parents b11843f5 68da9eef
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -293,6 +293,7 @@
    <ClCompile Include="..\lib_dec\ivas_mdct_core_dec.c" />
    <ClCompile Include="..\lib_dec\ivas_mono_dmx_renderer.c" />
    <ClCompile Include="..\lib_dec\ivas_objectRenderer_internal.c" />
    <ClCompile Include="..\lib_dec\ivas_osba_dec.c" />
    <ClCompile Include="..\lib_dec\ivas_omasa_dec.c" />
    <ClCompile Include="..\lib_dec\ivas_output_config.c" />
    <ClCompile Include="..\lib_dec\ivas_out_setup_conversion.c" />
+2 −1
Original line number Diff line number Diff line
@@ -515,6 +515,7 @@
    <ClCompile Include="..\lib_dec\ivas_jbm_dec.c">
      <Filter>dec_ivas_c</Filter>
    </ClCompile>
    <ClCompile Include="..\lib_dec\ivas_osba_dec.c">
    <ClCompile Include="..\lib_dec\ivas_omasa_dec.c">
      <Filter>dec_ivas_c</Filter>
    </ClCompile>
+2 −1
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@
    <ClCompile Include="..\lib_enc\ivas_lfe_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_mc_paramupmix_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_mc_param_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_osba_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_omasa_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_pca_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_range_uni_enc.c" />
+2 −1
Original line number Diff line number Diff line
@@ -590,6 +590,7 @@
    <ClCompile Include="..\lib_enc\ivas_mc_paramupmix_enc.c">
      <Filter>enc_ivas_c</Filter>
    </ClCompile>
    <ClCompile Include="..\lib_enc\ivas_osba_enc.c" />
    <ClCompile Include="..\lib_enc\ivas_omasa_enc.c">
      <Filter>enc_ivas_c</Filter>
    </ClCompile>
+21 −4
Original line number Diff line number Diff line
@@ -81,7 +81,11 @@ static
#define MAX_FRAME_SIZE ( 48000 / 50 )
#endif
#define MAX_NUM_OUTPUT_CHANNELS 16
#ifdef SBA_AND_OBJECTS
#define MAX_OUTPUT_PCM_BUFFER_SIZE ( ( MAX_NUM_OUTPUT_CHANNELS + IVAS_MAX_NUM_OBJECTS ) * MAX_FRAME_SIZE )
#else
#define MAX_OUTPUT_PCM_BUFFER_SIZE ( MAX_NUM_OUTPUT_CHANNELS * MAX_FRAME_SIZE )
#endif
#ifdef SPLIT_REND_WITH_HEAD_ROT
#define MAX_SPLIT_REND_BITRATE                   ( 768000 ) /* TODO tmu: unify with SPLIT_REND_MAX_BRATE ? */
#define MAX_SPLIT_REND_BITS_BUFFER_SIZE_IN_BYTES ( ( ( (int32_t) MAX_SPLIT_REND_BITRATE / NUM_FRAMES_PER_SEC ) + 7 ) >> 3 )
@@ -705,6 +709,7 @@ int main(
        if ( ( error = load_fastconv_HRTF_from_binary( hHrtfFastConv, hrtfReader ) ) != IVAS_ERR_OK )
        {
            fprintf( stderr, "\nError in loading HRTF binary file %s for FastConv \n\n", arg.hrtfCRendFileName );
            goto cleanup;
        }
        IVAS_DEC_HRTF_PARAMBIN_HANDLE hHrtfParambin = NULL;
        IVAS_DEC_GetHrtfParamBinHandle( hIvasDec, &hHrtfParambin );
@@ -712,6 +717,7 @@ int main(
        if ( ( error = load_parambin_HRTF_from_binary( hHrtfParambin, hrtfReader ) ) != IVAS_ERR_OK )
        {
            fprintf( stderr, "\nError in loading HRTF binary file %s for parametric binauralizer \n\n", arg.hrtfCRendFileName );
            goto cleanup;
        }
    }

@@ -1754,10 +1760,14 @@ static ivas_error initOnFirstGoodFrame(
            fprintf( stderr, "\nError in IVAS_DEC_GetFormat, code: %d\n", error );
            return error;
        }

        /* If outputting ISM, get number of objects, open output files and write zero metadata for initial bad frames */
#ifdef MASA_AND_OBJECTS
        if ( *pBsFormat == IVAS_DEC_BS_OBJ || *pBsFormat == IVAS_DEC_BS_MASA_ISM )
        if ( *pBsFormat == IVAS_DEC_BS_OBJ || *pBsFormat == IVAS_DEC_BS_MASA_ISM
#ifdef SBA_AND_OBJECTS

             || *pBsFormat == IVAS_DEC_BS_SBA_ISM
#endif
        )
#else
        if ( *pBsFormat == IVAS_DEC_BS_OBJ )
#endif
@@ -2012,6 +2022,9 @@ static ivas_error decodeG192(
                    Quaternions[i].x = 0.0f;
                    Quaternions[i].y = 0.0f;
                    Quaternions[i].z = 0.0f;
                    Pos[i].x = 0.0f;
                    Pos[i].y = 0.0f;
                    Pos[i].z = 0.0f;
                }
            }
            else
@@ -2169,7 +2182,11 @@ static ivas_error decodeG192(
        if ( decodedGoodFrame && arg.outputFormat == IVAS_DEC_OUTPUT_EXT )
        {
#ifdef MASA_AND_OBJECTS
            if ( bsFormat == IVAS_DEC_BS_OBJ || bsFormat == IVAS_DEC_BS_MASA_ISM )
            if ( bsFormat == IVAS_DEC_BS_OBJ || bsFormat == IVAS_DEC_BS_MASA_ISM
#ifdef SBA_AND_OBJECTS
                 || bsFormat == IVAS_DEC_BS_SBA_ISM
#endif
            )
#else
            if ( bsFormat == IVAS_DEC_BS_OBJ )
#endif
Loading