Loading lib_dec/ivas_sba_dec.c +0 −14 Original line number Diff line number Diff line Loading @@ -113,7 +113,6 @@ ivas_error ivas_sba_dec_reconfigure( #ifdef VLBR_20MS_MD int16_t num_channels, num_md_sub_frames; int16_t i, j, k; #endif RENDERER_TYPE old_renderer_type; Loading Loading @@ -198,19 +197,6 @@ ivas_error ivas_sba_dec_reconfigure( { return error; } for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) { for ( k = 0; k < IVAS_MAX_NUM_BANDS; k++ ) { st_ivas->hSpar->hMdDec->spar_coeffs_prev.C_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_prev.P_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_tar.C_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_tar.P_re[i][j][k] = 0; } } } } #endif ivas_spar_config( ivas_total_brate, sba_order_internal, &st_ivas->nchan_transport, &st_ivas->nSCE, &st_ivas->nCPE, &hSpar->core_nominal_brate, st_ivas->sid_format ); Loading lib_dec/ivas_spar_md_dec.c +24 −3 Original line number Diff line number Diff line Loading @@ -107,7 +107,9 @@ static ivas_error ivas_spar_md_dec_matrix_open const int16_t num_md_sub_frames ) { int16_t i, j; #ifdef VLBR_20MS_MD int16_t k; #endif if ( ( hMdDec->spar_md.band_coeffs = (ivas_band_coeffs_t *) malloc( IVAS_MAX_NUM_BANDS * num_md_sub_frames * sizeof( ivas_band_coeffs_t ) ) ) == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for band_coeffs in SPAR MD" ); Loading Loading @@ -244,7 +246,22 @@ static ivas_error ivas_spar_md_dec_matrix_open } } } #ifdef VLBR_20MS_MD for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) { for ( k = 0; k < IVAS_MAX_NUM_BANDS; k++ ) { hMdDec->spar_coeffs_prev.C_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_prev.P_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_tar.C_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_tar.P_re[i][j][k] = 0.0f; } } } #endif return IVAS_ERR_OK; } Loading Loading @@ -492,7 +509,11 @@ ivas_error ivas_spar_md_dec_init( const int16_t sba_order /* i : SBA order */ ) { #ifdef VLBR_20MS_MD int16_t i, j; #else int16_t i, j, k; #endif int16_t nchan_transport; float pFC[IVAS_MAX_NUM_BANDS], PR_minmax[2]; Loading Loading @@ -534,7 +555,7 @@ ivas_error ivas_spar_md_dec_init( set_s( hMdDec->base_band_age, 0, IVAS_MAX_NUM_BANDS ); hMdDec->spar_plc_num_lost_frames = 0; hMdDec->spar_plc_enable_fadeout_flag = 1; #ifndef VLBR_20MS_MD for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) Loading Loading @@ -578,7 +599,7 @@ ivas_error ivas_spar_md_dec_init( } } } #endif hMdDec->dtx_md_smoothing_cntr = 1; ivas_clear_band_coeffs( hMdDec->spar_md.band_coeffs, IVAS_MAX_NUM_BANDS ); Loading Loading
lib_dec/ivas_sba_dec.c +0 −14 Original line number Diff line number Diff line Loading @@ -113,7 +113,6 @@ ivas_error ivas_sba_dec_reconfigure( #ifdef VLBR_20MS_MD int16_t num_channels, num_md_sub_frames; int16_t i, j, k; #endif RENDERER_TYPE old_renderer_type; Loading Loading @@ -198,19 +197,6 @@ ivas_error ivas_sba_dec_reconfigure( { return error; } for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) { for ( k = 0; k < IVAS_MAX_NUM_BANDS; k++ ) { st_ivas->hSpar->hMdDec->spar_coeffs_prev.C_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_prev.P_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_tar.C_re[i][j][k] = 0; st_ivas->hSpar->hMdDec->spar_coeffs_tar.P_re[i][j][k] = 0; } } } } #endif ivas_spar_config( ivas_total_brate, sba_order_internal, &st_ivas->nchan_transport, &st_ivas->nSCE, &st_ivas->nCPE, &hSpar->core_nominal_brate, st_ivas->sid_format ); Loading
lib_dec/ivas_spar_md_dec.c +24 −3 Original line number Diff line number Diff line Loading @@ -107,7 +107,9 @@ static ivas_error ivas_spar_md_dec_matrix_open const int16_t num_md_sub_frames ) { int16_t i, j; #ifdef VLBR_20MS_MD int16_t k; #endif if ( ( hMdDec->spar_md.band_coeffs = (ivas_band_coeffs_t *) malloc( IVAS_MAX_NUM_BANDS * num_md_sub_frames * sizeof( ivas_band_coeffs_t ) ) ) == NULL ) { return IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for band_coeffs in SPAR MD" ); Loading Loading @@ -244,7 +246,22 @@ static ivas_error ivas_spar_md_dec_matrix_open } } } #ifdef VLBR_20MS_MD for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) { for ( k = 0; k < IVAS_MAX_NUM_BANDS; k++ ) { hMdDec->spar_coeffs_prev.C_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_prev.P_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_tar.C_re[i][j][k] = 0.0f; hMdDec->spar_coeffs_tar.P_re[i][j][k] = 0.0f; } } } #endif return IVAS_ERR_OK; } Loading Loading @@ -492,7 +509,11 @@ ivas_error ivas_spar_md_dec_init( const int16_t sba_order /* i : SBA order */ ) { #ifdef VLBR_20MS_MD int16_t i, j; #else int16_t i, j, k; #endif int16_t nchan_transport; float pFC[IVAS_MAX_NUM_BANDS], PR_minmax[2]; Loading Loading @@ -534,7 +555,7 @@ ivas_error ivas_spar_md_dec_init( set_s( hMdDec->base_band_age, 0, IVAS_MAX_NUM_BANDS ); hMdDec->spar_plc_num_lost_frames = 0; hMdDec->spar_plc_enable_fadeout_flag = 1; #ifndef VLBR_20MS_MD for ( i = 0; i < num_channels; i++ ) { for ( j = 0; j < num_channels; j++ ) Loading Loading @@ -578,7 +599,7 @@ ivas_error ivas_spar_md_dec_init( } } } #endif hMdDec->dtx_md_smoothing_cntr = 1; ivas_clear_band_coeffs( hMdDec->spar_md.band_coeffs, IVAS_MAX_NUM_BANDS ); Loading