Commit 9baaf894 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

formatting fixes

parent 5e002352
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ ivas_error CreateLCLDDecoder(
    ivas_error error;
    LCLDDecoder *psLCLDDecoder = NULL;

    assert( iSampleRate == 48000 ); /* Fix */
    assert( iSampleRate == 48000 );
#ifdef SPLIT_REND_LCLD_5MS
    assert( iNumBlocks == 16 || iNumBlocks == 8 || iNumBlocks == 4 );
#endif
@@ -381,7 +381,7 @@ ivas_error CreateLCLDDecoder(
#else
    psLCLDDecoder->iNumBands = MAX_BANDS_48; /* Fix */
#endif
    psLCLDDecoder->piBandwidths = c_aiBandwidths48; /* Fix */
    psLCLDDecoder->piBandwidths = c_aiBandwidths48;

    psLCLDDecoder->iMSMode = 0;
    if ( ( psLCLDDecoder->piMSFlags = (int32_t *) malloc( MAX_BANDS * sizeof( int32_t ) ) ) == NULL )
+20 −2
Original line number Diff line number Diff line
@@ -89,7 +89,16 @@ struct LCLD_ENCODER
};

#ifdef SPLIT_REND_LCLD_5MS
static int32_t Quantize( float fVal, float fScale, int32_t *iSign, int32_t iMaxVal )
/*------------------------------------------------------------------------------------------*
 * Function Quantize()
 *
 *
 *------------------------------------------------------------------------------------------*/

static int32_t Quantize( const float fVal,
                         const float fScale,
                         int32_t *iSign,
                         const int32_t iMaxVal )
{
    int32_t iVal;
    if ( fVal > 0.0f )
@@ -106,7 +115,16 @@ static int32_t Quantize( float fVal, float fScale, int32_t *iSign, int32_t iMaxV

    return iVal;
}
static float UnQuantize( int32_t iVal, float fScale, int32_t iSign )

/*------------------------------------------------------------------------------------------*
 * Function UnQuantize()
 *
 *
 *------------------------------------------------------------------------------------------*/

static float UnQuantize( const int32_t iVal,
                         const float fScale,
                         const int32_t iSign )
{
    float fVal;
    if ( iSign == 0 )