Commit 4ed03952 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 1

parent 40400bd0
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1691,6 +1691,10 @@ static ivas_error decodeG192(
                    goto cleanup;
                }
            }
            if (frame == 283) {
                frame = frame;
                //return error;
            }
            if ( ( error = IVAS_DEC_GetSamples( hIvasDec, nSamplesToRender, ( pcmBuf + nOutChannels * nSamplesRendered ), &nSamplesRendered_loop, &needNewFrame ) ) != IVAS_ERR_OK )

                {
+8 −0
Original line number Diff line number Diff line
@@ -3577,12 +3577,20 @@ Word16 div_l( Word32 L_num, Word16 den )

    if ( den == (Word16) 0 )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division by 0 in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }

    if ( ( L_num < (Word32) 0 ) || ( den < (Word16) 0 ) )
    {
#ifdef IVAS_FLOAT_FIXED
        /* NOTE: This is just for temporary usage for identifying crashes */
        assert( 0 );
#endif // IVAS_FLOAT_FIXED
        /* printf("Division Error in div_l, Fatal error in "); printStack(); */
        exit( -1 );
    }
+1 −0
Original line number Diff line number Diff line
@@ -255,4 +255,5 @@ typedef struct _IVAS_RENDER_CONFIG
#endif
} IVAS_RENDER_CONFIG_DATA, *IVAS_RENDER_CONFIG_HANDLE;


#endif /* COMMON_API_TYPES_H */
+11 −0
Original line number Diff line number Diff line
@@ -4924,6 +4924,17 @@ Word16 computeMixingMatricesResidual_fx(
);
#endif

/*! r: error or success */
Word16 svd_fx(
    Word32 InputMatrix[][MAX_OUTPUT_CHANNELS],           /* i  : matrix to be decomposed (M)                      */
    Word16 InputMatrix_e,
    float singularVectors_Left[][MAX_OUTPUT_CHANNELS],  /* o  : left singular vectors (U)                        */
    float singularValues[MAX_OUTPUT_CHANNELS],          /* o  : singular values vector (S)                       */
    float singularVectors_Right[][MAX_OUTPUT_CHANNELS], /* o  : right singular vectors (V)                       */
    const Word16 nChannelsL,                           /* i  : number of rows in the matrix to be decomposed    */
    const Word16 nChannelsC                            /* i  : number of columns in the matrix to be decomposed */
);

/*! r: error or success */
int16_t svd(
    float InputMatrix[][MAX_OUTPUT_CHANNELS],                   /* i  : matrix to be decomposed (M)                      */
+0 −2
Original line number Diff line number Diff line
@@ -332,7 +332,6 @@ static void gain_dec_gacelp_uv_fx(
/*********************
 * public functions  *
 *********************/

void decode_acelp_gains_fx(
    Word16 *code,                /* i  : algebraic code excitation        Q9  */
    Word16 gains_mode,
@@ -381,7 +380,6 @@ void decode_acelp_gains_fx(

}


/*---------------------------------------------------------------------*
 * d_gain_pred_fx :
 *
Loading