Commit 7d6579d0 authored by Jouni Paulus's avatar Jouni Paulus
Browse files

issue #502: adjust the index list sizes for MASA content based on a set of...

issue #502: adjust the index list sizes for MASA content based on a set of items. modifications under switch FIX_502_IND_LIST_SIZE.
parent b74476db
Loading
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -791,7 +791,11 @@ int16_t get_ivas_max_num_indices_metadata( /* o
        }
        else if ( ivas_total_brate <= IVAS_32k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 125;
#else
            return 110;
#endif
        }
        else if ( ivas_total_brate <= IVAS_48k )
        {
@@ -799,23 +803,43 @@ int16_t get_ivas_max_num_indices_metadata( /* o
        }
        else if ( ivas_total_brate <= IVAS_96k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 240;
#else
            return 200;
#endif
        }
        else if ( ivas_total_brate <= IVAS_128k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 305;
#else
            return 250;
#endif
        }
        else if ( ivas_total_brate <= IVAS_160k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 425;
#else
            return 320;
#endif
        }
        else if ( ivas_total_brate <= IVAS_192k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 630;
#else
            return 430;
#endif
        }
        else if ( ivas_total_brate <= IVAS_256k )
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 850;
#else
            return 600;
#endif
        }
        else if ( ivas_total_brate <= IVAS_384k )
        {
@@ -823,7 +847,11 @@ int16_t get_ivas_max_num_indices_metadata( /* o
        }
        else
        {
#ifdef FIX_502_IND_LIST_SIZE
            return 1750;
#else
            return 1500;
#endif
        }
    }
    else if ( ivas_format == MC_FORMAT )
+2 −0
Original line number Diff line number Diff line
@@ -208,6 +208,8 @@

#define FIX_485_STATIC_BUFFERS                          /* FhG: move static buffers in DirAC parameter estimator to the DirAC struct */

#define FIX_502_IND_LIST_SIZE                           /* Fix issue #502: insufficient index buffer sizes */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */