Commit 7b88f98e authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 1

parent 4edf911f
Loading
Loading
Loading
Loading
Loading
+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 );
    }
+6 −0
Original line number Diff line number Diff line
@@ -121,6 +121,11 @@ typedef struct _IVAS_ISM_METADATA
#ifdef IVAS_FLOAT_FIXED
    Word32 azimuth_fx;
    Word32 elevation_fx;
    Word16 radius_fx;
    Word32 spread_fx;
    Word32 gainFactor_fx;
    Word32 yaw_fx;
    Word32 pitch_fx;
#endif
    float azimuth;
    float elevation;
@@ -255,4 +260,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
@@ -4942,6 +4942,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 :
 *
+1 −0
Original line number Diff line number Diff line
@@ -501,6 +501,7 @@ void hq_core_dec(
 *
 * Initialize HQ core state structure
 *-------------------------------------------------------------------*/

#ifndef IVAS_FLOAT_FIXED
void HQ_core_dec_init_flt(
  HQ_DEC_HANDLE hHQ_core /* i/o: HQ core data handle  */
Loading