Commit 6cc20862 authored by vaclav's avatar vaclav
Browse files

removed outdated todos in ivas_qmetadata_enc_sid_decode()

parent b24d2290
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1456,7 +1456,7 @@ int16_t ivas_qmetadata_dec_sid_decode(
        }
    }

#if !( #defined FIX_137_SID_MD_BITS && #defined FIX_QMETA_SID_5k2 )
#if !( defined FIX_137_SID_MD_BITS && defined FIX_QMETA_SID_5k2 )
    /* TODO: temporary hack to keep BE */
    if ( ivas_format != SBA_FORMAT )
    {
+5 −4
Original line number Diff line number Diff line
@@ -988,9 +988,9 @@ void ivas_qmetadata_enc_sid_encode(
    else
    {
#ifdef FIX_QMETA_SID_5k2
        /* TODO: still use old sid frame size to keep bitexactness */
        metadata_sid_bits = ( IVAS_SID_5k2 - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS;
#else
        /* TODO: still use old sid frame size to keep bitexactness */
        metadata_sid_bits = ( 4400 /*IVAS_SID_5k2*/ - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS;
#endif
    }
@@ -1231,12 +1231,13 @@ void ivas_qmetadata_enc_sid_encode(
    }
#endif

#if !( defined FIX_137_SID_MD_BITS && defined FIX_QMETA_SID_5k2 )
    /* TODO: temporary to keep BE */
    if ( ivas_format != SBA_FORMAT )
    {
        metadata_sid_bits = ( IVAS_SID_5k2 - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS;
    }

#endif
    /* fill bits*/
    assert( ( hMetaData->nb_bits_tot - bit_pos_start ) <= metadata_sid_bits && "Too many written bits!" );
    while ( ( hMetaData->nb_bits_tot - bit_pos_start ) < metadata_sid_bits )
@@ -2273,7 +2274,7 @@ static void ivas_qmetadata_encode_quasi_uniform(
    int16_t bits;
    uint16_t tresh;
#ifdef DEBUGGING
    assert( ( alphabet_size >= 1 ) ); /* ToDo: fcs: to check if this additional conditon is really needed: && (alphabet_size <= (1U << 31) - 1));*/
    assert( ( alphabet_size >= 1 ) );
    assert( value < alphabet_size );
#endif

@@ -2512,7 +2513,7 @@ static int16_t ivas_qmetadata_encode_quasi_uniform_length(
    int16_t bits;
    uint16_t tresh;
#ifdef DEBUGGING
    assert( ( alphabet_size >= 1 ) ); /* ToDo: fcs: to check if this additional conditon is really needed: && (alphabet_size <= (1U << 31) - 1));*/
    assert( ( alphabet_size >= 1 ) );
    assert( value < alphabet_size );
#endif