Commit 62ac9271 authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

commit 1

parent f2de97c0
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 );
    }
+3 −4
Original line number Diff line number Diff line
@@ -1046,15 +1046,14 @@ typedef enum

/* Common SPAR metadata constants */
#define IVAS_ACTIVEW_DM_F_SCALE                 0.5f
#define IVAS_ACTIVEW_DM_F_SCALE_FX              IVAS_ACTIVEW_DM_F_SCALE * ONE_IN_Q31
#define IVAS_ACTIVEW_DM_F_SCALE_FX                 ONE_IN_Q30
#define IVAS_ACTIVEW_DM_F_SCALE_DTX             0.25f
#define IVAS_ACTIVEW_DM_F_SCALE_DTX_FX          IVAS_ACTIVEW_DM_F_SCALE_DTX * ONE_IN_Q31
#define IVAS_ACTIVEW_DM_F_SCALE_DTX_FX             ONE_IN_Q29
#define IVAS_ACTIVEW_DM_F_SCALE_VLBR            0.25f
#define IVAS_ACTIVEW_DM_F_SCALE_VLBR_FX         IVAS_ACTIVEW_DM_F_SCALE_VLBR * ONE_IN_Q31
#define IVAS_ACTIVEW_DM_F_SCALE_VLBR_FX            ONE_IN_Q29
#define IVAS_SPAR_FOA_DFLT_FREQ_PER_CHAN        24000

#define IVAS_SPAR_DYN_ACTIVEW_THRESH           (0.0039f)
#define IVAS_SPAR_DYN_ACTIVEW_THRESH_FX        IVAS_SPAR_DYN_ACTIVEW_THRESH * ONE_IN_Q31
#define IVAS_SPAR_SIDE_CH_DYN_ACTIVEW_THRESH   (32.0f)

#define MAX_QUANT_STRATS                        3
+6 −30
Original line number Diff line number Diff line
@@ -5466,23 +5466,6 @@ void ivas_create_fullr_dmx_mat(
    ivas_spar_md_com_cfg *hMdCfg
);

#ifdef IVAS_FLOAT_FIXED
void ivas_create_fullr_dmx_mat_fx(
	Word32 pred_coeffs_re[IVAS_SPAR_MAX_CH - 1][IVAS_MAX_NUM_BANDS],
	Word16 q_pred_coeffs_re,
	Word32 dm_fv_re[IVAS_SPAR_MAX_CH - 1][IVAS_MAX_NUM_BANDS],
	Word16 q_dm_fv_re,
	Word32 ***mixer_mat,
	Word16 *q_mixer_mat,
	const Word16 in_chans,
	const Word16 start_band,
	const Word16 end_band,
	const Word16 active_w,
	ivas_spar_md_com_cfg *hMdCfg
);
#endif // IVAS_FLOAT_FIXED


void ivas_calc_c_p_coeffs(
    ivas_spar_md_t *pSparMd,
    float *pppCov_mat_re[IVAS_SPAR_MAX_CH][IVAS_SPAR_MAX_CH],
@@ -5497,18 +5480,18 @@ void ivas_calc_c_p_coeffs(
);
#ifdef IVAS_FLOAT_FIXED
void ivas_get_spar_md_from_dirac_fx(
    Word32 azi_dirac[IVAS_MAX_NUM_BANDS][MAX_PARAM_SPATIAL_SUBFRAMES],
	Word32 ele_dirac[IVAS_MAX_NUM_BANDS][MAX_PARAM_SPATIAL_SUBFRAMES],
	Word32 diffuseness[IVAS_MAX_NUM_BANDS],
    float azi_dirac[IVAS_MAX_NUM_BANDS][MAX_PARAM_SPATIAL_SUBFRAMES],
    float ele_dirac[IVAS_MAX_NUM_BANDS][MAX_PARAM_SPATIAL_SUBFRAMES],
    float diffuseness[IVAS_MAX_NUM_BANDS],
    const int16_t n_ts,
    Word32 ***mixer_mat,
    float ***mixer_mat,
    ivas_spar_md_t *hSpar_md,
    ivas_spar_md_com_cfg *hSpar_md_cfg,
    const int16_t start_band,
    const int16_t end_band,
    const int16_t order,
    const int16_t dtx_vad,
    Word32 Wscale_d[IVAS_MAX_NUM_BANDS],
    float Wscale_d[IVAS_MAX_NUM_BANDS],
    const uint8_t useLowerRes,
    const int16_t active_w_vlbr,
    const int16_t  dyn_active_w_flag
@@ -5612,14 +5595,7 @@ void ivas_spar_to_dirac(
    const int16_t bw,                                           /* i  : band joining factor                     */
    const int16_t dyn_active_w_flag                             /* i  : dynamic active W flag                   */
);
void ivas_spar_to_dirac_fx(
	Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder handle                     */
	ivas_spar_md_dec_state_t *hMdDec,                           /* i/o: SPAR MD decoder handle                  */
	const int16_t dtx_vad,                                      /* i  : DTX frame flag                          */
	const int16_t num_bands_out,                                /* i  : number of output bands                  */
	const int16_t bw,                                           /* i  : band joining factor                     */
	const int16_t dyn_active_w_flag                             /* i  : dynamic active W flag                   */
);

void ivas_spar_update_md_hist(
    ivas_spar_md_dec_state_t *hMdDec                            /* i/o: SPAR MD decoder handle                  */
);
+16 −54
Original line number Diff line number Diff line
@@ -687,26 +687,22 @@ Word16 masa_sq_fx(
);

void ivas_compute_spar_params_fx(
	Word32 *cov_real[IVAS_SPAR_MAX_CH][IVAS_SPAR_MAX_CH],
	Word16 q_cov_real,
    Word32 * pppCov_mat_re[IVAS_SPAR_MAX_CH][IVAS_SPAR_MAX_CH],
    Word32 dm_fv_re[IVAS_SPAR_MAX_CH - 1][IVAS_MAX_NUM_BANDS],
	Word16 *q_dm_fv_re,
	const Word16 i_ts,
	Word32 ***mixer_mat_fx,
	Word16 *q_mixer_mat,
	const Word16 start_band,
	const Word16 end_band,
	const Word16 dtx_vad,
	const Word16 num_ch,
	const Word16 bands_bw,
	const Word16 active_w,
	const Word16 active_w_vlbr,
    const int16_t i_ts,
    float ***mixer_mat,
    const int16_t start_band,
    const int16_t end_band,
    const int16_t dtx_vad,
    const int16_t num_ch,
    const int16_t bands_bw,
    const int16_t active_w,
    const int16_t active_w_vlbr,
    ivas_spar_md_com_cfg * hSparCfg,
    ivas_spar_md_t * hSparMd,
	Word32 *pWscale_fx,
	Word16 *q_pWscale,
	const Word16 from_dirac,
	const Word16 dyn_active_w_flag
    float *pWscale,
    const int16_t from_dirac,
    const int16_t dyn_active_w_flag
);

ivas_error ivas_ism_metadata_dec_fx(
@@ -1420,14 +1416,6 @@ void ivas_sba_dirac_stereo_dec_fx(
    const Word16 mcmasa         /* i  : McMASA flag                         */
);

ivas_error ivas_osba_render_sf_fx(
    Decoder_Struct *st_ivas,         /* i/o: IVAS decoder handle                       */
    const UWord16 nSamplesAsked,    /* i  : number of CLDFB slots requested           */
    UWord16 *nSamplesRendered,      /* o  : number of CLDFB slots rendered            */
    UWord16 *nSamplesAvailableNext, /* o  : number of CLDFB slots still to render     */
    Word32 *p_output[]                /* o  : rendered time signal                      */
);

void ivas_hq_core_dec_fx(
    Decoder_State *st_fx,             /* i/o: decoder state structure fx         */
    Word16 synth[],                   /* o  : output synthesis                   */
@@ -1955,13 +1943,6 @@ ivas_error ivas_spar_dec_fx(
    Word16 *nb_bits_read    /* o  : number of MD bits read          */
);

void ivas_spar_md_dec_process_fx(
    Decoder_Struct *st_ivas,     /* i/o: IVAS decoder handle                                */
    Decoder_State *st0,          /* i/o: decoder state structure - for bitstream handling   */
    const Word16 num_bands_out, /* i  : number of output bands                             */
    const Word16 sba_order      /* i  : Ambisonic (SBA) order                              */
);

ivas_error TDREND_Update_object_positions_fx(
    BINAURAL_TD_OBJECT_RENDERER_HANDLE hBinRendererTd, /* i/o: TD Renderer handle               */
    const Word16 num_src,                              /* i  : number of sources to render      */
@@ -2133,23 +2114,4 @@ ivas_error ivas_ism_metadata_dec_create_fx(
    const Word16 n_ISms,       /* i  : number of objects           */
    Word32 element_brate_tmp[] /* o  : element bitrate per object  */
);
ivas_error ivas_sba_dec_reconfigure_fx(
    Decoder_Struct *st_ivas,   /* i/o: IVAS decoder structure              */
    uint16_t *nSamplesFlushed, /* o  : number of samples flushed           */
    int16_t *data /* o  : output synthesis signal             */
);

ivas_error ivas_spar_md_dec_matrix_open_fx(
    ivas_spar_md_dec_state_t *hMdDec, /* i/o: SPAR MD decoder handle       */
    const int16_t num_channels,       /* i  : number of internal channels  */
    const int16_t num_md_sub_frames   /* i  : number of MD subframes       */
);
void ivas_spar_md_dec_matrix_close_fx(
    ivas_spar_md_dec_state_t *hMdDecoder, /* i/o: SPAR MD decoder handle      */
    const int16_t num_channels            /* i  : number of internal channels */
);
ivas_error ivas_spar_dec_open_fx(
    Decoder_Struct *st_ivas,         /* i/o: IVAS decoder handle        */
    const int16_t spar_reconfig_flag /* i  : SPAR reconfiguration flag  */
);
#endif
+137 −1202

File changed.

Preview size limit exceeded, changes collapsed.

Loading