Commit 2df83c8b authored by vaclav's avatar vaclav
Browse files

issue 1209: remove dead code in IVAS SID signaling; under FIX_1209_SID_SIGNALING

parent d195b452
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -233,7 +233,11 @@ typedef enum
#define SID_MDCT_STEREO                         0x1                         /*      1|      0|     0 */
#define SID_ISM                                 0x2                         /*      0|      1|     0 */
#define SID_MASA_1TC                            0x3                         /*      1|      1|     0 */
#ifdef FIX_1209_SID_SIGNALING
/*reserved*/                                  /*0x4*/                       /*      0|      0|     1 */
#else
#define SID_MULTICHANNEL                        0x4                         /*      0|      0|     1 */
#endif
#define SID_SBA_1TC                             0x5                         /*      1|      0|     1 */
#define SID_SBA_2TC                             0x6                         /*      0|      1|     1 */
#define SID_MASA_2TC                            0x7                         /*      1|      1|     1 */
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@
#define FIX_587_DEFAULT_REVERB                          /* Philips: issue 587: inconsistent default reverb parameters across renderers */

#define FIX_HRTF_LOAD                                   /* VA: issue 1187: fix memory issue when HRTFs are loaded from a binary file */

#define FIX_1209_SID_SIGNALING                          /* VA: issue 1209: remove dead code in IVAS SID signaling */

/* #################### End BE switches ################################## */

+6 −1
Original line number Diff line number Diff line
@@ -1036,11 +1036,12 @@ static ivas_error ivas_read_format(
                break;
            case SID_ISM:
                st_ivas->ivas_format = ISM_FORMAT;

                break;
#ifndef FIX_1209_SID_SIGNALING
            case SID_MULTICHANNEL:
                st_ivas->ivas_format = MC_FORMAT;
                break;
#endif
            case SID_SBA_1TC:
                st_ivas->ivas_format = SBA_FORMAT;
                st_ivas->element_mode_init = IVAS_SCE;
@@ -1065,7 +1066,9 @@ static ivas_error ivas_read_format(
                }
                break;
            default:
#ifndef FIX_1209_SID_SIGNALING
                /* This should actually be impossible, since only 3 bits are read, so if this happens something is broken */
#endif
                return IVAS_ERROR( IVAS_ERR_INTERNAL_FATAL, "Invalid value %c found in SID format field.", st_ivas->sid_format );
        }

@@ -1079,10 +1082,12 @@ static ivas_error ivas_read_format(
            st_ivas->sba_order = st_ivas->bit_stream[*num_bits_read + 1];
            st_ivas->sba_order += 2 * st_ivas->bit_stream[*num_bits_read];
            *num_bits_read += SBA_ORDER_BITS;
#ifndef FIX_1209_SID_SIGNALING
            if ( st_ivas->sba_analysis_order == 0 )
            {
                st_ivas->sba_analysis_order = SBA_FOA_ORDER;
            }
#endif
        }

        /* reset bitstream handle to avoid BER detection after reading the 2400 kbps for ch0 */
+2 −0
Original line number Diff line number Diff line
@@ -161,9 +161,11 @@ void ivas_write_format_sid(
        case ISM_FORMAT:
            ind = SID_ISM;
            break;
#ifndef FIX_1209_SID_SIGNALING
        case MC_FORMAT:
            ind = SID_MULTICHANNEL;
            break;
#endif
        case SBA_FORMAT:
            switch ( element_mode )
            {