Commit 3f312896 authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

SBA path cleanup for encoder, Q-info updates in lib_com

parent 9bae8e35
Loading
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -58,35 +58,35 @@
 *-----------------------------------------------------------------------------------------*/

void ivas_agc_initWindowFunc_fx(
    Word16 *pWinFunc,
    Word16 *pWinFunc, // o: Q15
    const Word16 length )
{
    Word16 i;
    Word16 a;
    const Word16 *cos_val;

    a = A_FX; /* for DBSTEP -6.f */
    a = A_FX; /* for DBSTEP -6.f */ // Q15
    move16();

    SWITCH( length )
    {
        case 128:
            cos_val = cos_pi_by_127;
            cos_val = cos_pi_by_127; // Q15
            BREAK;
        case 256:
            cos_val = cos_pi_by_255;
            cos_val = cos_pi_by_255; // Q15
            BREAK;
        case 384:
            cos_val = cos_pi_by_383;
            cos_val = cos_pi_by_383; // Q15
            BREAK;
        default:
            cos_val = cos_pi_by_383;
            cos_val = cos_pi_by_383; // Q15
            BREAK;
    }

    FOR( i = 0; i < length; i++ )
    {
        pWinFunc[i] = add( MAX_16, extract_l( Mpy_32_16_1( L_sub( cos_val[i], MAX_16 ), a ) ) );
        pWinFunc[i] = add( MAX_16, extract_l( Mpy_32_16_1( L_sub( cos_val[i], MAX_16 ), a ) ) ); // Q15 + Q15 - 15 = Q15
        move16();
    }

@@ -100,9 +100,9 @@ void ivas_agc_initWindowFunc_fx(
 *-----------------------------------------------------------------------------------------*/

void ivas_agc_calcGainParams_fx(
    UWord16 *absEmin,
    UWord16 *betaE,
    UWord16 *maxAttExp,
    UWord16 *absEmin,   // o: Q0
    UWord16 *betaE,     // o: Q0
    UWord16 *maxAttExp, // o: Q0
    const Word16 numCoeffs )
{
    assert( numCoeffs == IVAS_SPAR_MAX_DMX_CHS );
+103 −103

File changed.

Preview size limit exceeded, changes collapsed.

+38 −38

File changed.

Preview size limit exceeded, changes collapsed.

+76 −62

File changed.

Preview size limit exceeded, changes collapsed.

+116 −94

File changed.

Preview size limit exceeded, changes collapsed.

Loading