Commit ebbdf2d1 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

make OSBA X-over BR configurable with IVAS_OSBA_DISCRETE_ISM_MIN_BR

parent 1df9e4c3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -363,7 +363,9 @@ typedef enum
#define ISM_DTX_ELE_BITS_LOW                    5
#define ISM_Q_STEP_LOW                          (ISM_Q_STEP * 2)
#define ISM_Q_STEP_BORDER_LOW                   (ISM_Q_STEP_BORDER * 2)

#ifdef NONBE_FIX_ISM_XOVER_BR
#define IVAS_OSBA_DISCRETE_ISM_MIN_BR           IVAS_256k
#endif
/* ISM modes */
typedef enum 
{
+1 −0
Original line number Diff line number Diff line
@@ -167,6 +167,7 @@
/* all switches in this category should start with "NONBE_" */

#define NONBE_FIX_1021_ISM_BRIR_RS_FLUSH                      /* FhG: issue #1021: fix ISM with JBM and RS renderer flushing*/
#define NONBE_FIX_ISM_XOVER_BR

/* ##################### End NON-BE switches ########################### */

+4 −1
Original line number Diff line number Diff line
@@ -509,8 +509,11 @@ ivas_error ivas_dec_setup(
                    st_ivas->nCPE += ( st_ivas->nchan_ism + 1 ) >> 1;
                }
            }

#ifdef NONBE_FIX_ISM_XOVER_BR
            if ( ivas_total_brate >= IVAS_OSBA_DISCRETE_ISM_MIN_BR )
#else
            if ( ivas_total_brate >= IVAS_256k )
#endif
            {
                st_ivas->ism_mode = ISM_SBA_MODE_DISC;
            }
+5 −1
Original line number Diff line number Diff line
@@ -143,7 +143,11 @@ ivas_error ivas_sba_dec_reconfigure(

    if ( st_ivas->ivas_format == SBA_ISM_FORMAT )
    {
#ifdef NONBE_FIX_ISM_XOVER_BR
        if ( ivas_total_brate >= IVAS_OSBA_DISCRETE_ISM_MIN_BR )
#else
        if ( ivas_total_brate >= IVAS_256k )
#endif
	    {
            st_ivas->ism_mode = ISM_SBA_MODE_DISC;
        }
+5 −1
Original line number Diff line number Diff line
@@ -674,7 +674,11 @@ ivas_error ivas_init_encoder(
    {
        st_ivas->ism_mode = ISM_MODE_NONE;

#ifdef NONBE_FIX_ISM_XOVER_BR
        if ( ivas_total_brate >= IVAS_OSBA_DISCRETE_ISM_MIN_BR )
#else
        if ( ivas_total_brate >= IVAS_256k )
#endif 
		{
            st_ivas->ism_mode = ISM_SBA_MODE_DISC;
        }
Loading