Commit 962eb0cf authored by Malenovsky, Vladimir's avatar Malenovsky, Vladimir
Browse files

remove obsolete ISAR-related functions, improve error messages and formatting

parent a53d7b54
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@
#define FIX_2344_ALIGN_PREPROC                          /* VA: basop issue 2344: Align pre_proc_ivas() between FLP and BASOP */
#define FIX_FLOAT_1501_UNIT_VALUE_IN_OMASA              /* Nokia: Fix float issue 1501, uninitialized value in ivas_masa_combine_directions for OMASA */
#define FIX_2331_CLANG18_MSAN_UNINIT_VARIABLE           /* FhG: Fix issue 2331: Uninitialized variable */
#define FIX_2371_REMOVE_UNUSED_ISAR_FCNS                /* Dolby: basop issue 2371: remove unused ISAR-related functions */      

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

+2 −2
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ int16_t ReadPredictors(
    return iBitsRead;
}


#ifndef FIX_2371_REMOVE_UNUSED_ISAR_FCNS
/*-------------------------------------------------------------------*
 * Function SetDecodingPassed()
 *
@@ -363,7 +363,7 @@ void SetDecodingPassed(

    return;
}

#endif

/*-------------------------------------------------------------------*
 * Function AnyDecodingUnresolved()
+4 −4
Original line number Diff line number Diff line
@@ -622,8 +622,8 @@ static void LimitRMSEnvelope(

        if ( iDelta > iRMSDeltaMax )
        {
#ifdef DEBUG_VERBOSE
            printf( "WARNING RMS envelope delta limited\n" );
#ifdef DEBUGGING
            printf( "Warning: RMS envelope delta limited!\n" );
#endif
            piRMSEnvelope[iBand] += ( iDelta - iRMSDeltaMax );
        }
@@ -641,8 +641,8 @@ static void LimitRMSEnvelope(

        if ( iDelta < iRMSDeltaMin )
        {
#ifdef DEBUG_VERBOSE
            printf( "WARNING RMS envelope delta limited\n" );
#ifdef DEBUGGING
            printf( "Warning: RMS envelope delta limited!\n" );
#endif
            piRMSEnvelope[iBand] += ( iRMSDeltaMin - iDelta );
        }
+1 −1
Original line number Diff line number Diff line
@@ -1425,7 +1425,7 @@ static int32_t ReadMSInformation(
    }
    else
    {
        printf( "ERROR UNSUPPORTED MS MODE\n" );
        printf( "Error in ReadMSInformation() - unsupported MS mode information!\n" );
    }

    return iBitsRead;
+3 −4
Original line number Diff line number Diff line
@@ -1621,7 +1621,7 @@ static int32_t WriteAllocInformation(

    if ( iAllocOffset < MIN_ALLOC_OFFSET || iAllocOffset > MAX_ALLOC_OFFSET )
    {
        printf( "Serious error\n" );
        printf( "Error in WriteAllocInformation() - iAllocOffset has incorrect value: %d!\n", iAllocOffset\n" );
    }

    ISAR_SPLIT_REND_BITStream_write_int32( pBits, ( iAllocOffset - MIN_ALLOC_OFFSET ), ALLOC_OFFSET_BITS );
@@ -1849,10 +1849,9 @@ static int32_t ComputeAllocation(

        if ( *piAllocOffset <= MIN_ALLOC_OFFSET && iBitsUsed > iAvailableBits )
        {
#ifdef DEBUG_VERBOSE
            printf( "Frame can not be coded with the number of bits available\n" );
#ifdef DEBUGGING
            printf( "Error in ComputeAllocation() - frame can not be coded with the number of bits available!\n" );
#endif
            /* iLastError = ENC_ERROR_STREAM_FAILURE;*/
            return -1;
        }
        else if ( *piAllocOffset >= MAX_ALLOC_OFFSET && iBitsUsed < iAvailableBits )
Loading