Loading lib_com/ivas_prot.h +0 −2 Original line number Diff line number Diff line Loading @@ -209,9 +209,7 @@ ivas_error pre_proc_front_ivas( const int16_t front_vad_flag, /* i : front-VAD flag to overwrite VAD decision */ const int16_t force_front_vad, /* i : flag to force VAD decision */ const int16_t front_vad_dtx_flag, /* i : front-VAD DTX flag to overwrite VAD decision*/ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int32_t ivas_total_brate /* i : IVAS total bitrate */ ); Loading lib_com/options.h +0 −1 Original line number Diff line number Diff line Loading @@ -149,7 +149,6 @@ #define FIX_545_ASSERT /* VA: fix issue 545, replace assert() with warning message when hitting memory limit in the buffer of indices */ #endif #define FIX_529_BWD_ISSUE /* VA: issue 529: fix Bandwidth Detector not working reliably for Music and Generic Audio */ #define FIX_557_CRASH_IN_ISM_DTX /* VA issue 557: fix crash in 1ISM 48 kbps DTX */ #define FIX_563_PARAMMC_LIMITER /* FhG: issue 563: fix ILD limiter when coming from silence w/o transient set */ Loading lib_com/prot.h +0 −2 Original line number Diff line number Diff line Loading @@ -3891,9 +3891,7 @@ void bw_detect( const float signal_in[], /* i : input signal */ float *spectrum, /* i : MDCT spectrum */ const float *enerBuffer, /* i : energy buffer */ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int16_t mct_on /* i : flag MCT mode */ ); Loading lib_enc/amr_wb_enc.c +0 −4 Original line number Diff line number Diff line Loading @@ -342,11 +342,7 @@ void amr_wb_enc( * WB, SWB and FB bandwidth detector *----------------------------------------------------------------*/ #ifdef FIX_529_BWD_ISSUE bw_detect( st, st->input, NULL, NULL, MONO_FORMAT, 0 ); #else bw_detect( st, st->input, NULL, NULL, 0 ); #endif /* in AMR_WB IO, limit the maximum band-width to WB */ if ( st->bwidth > WB ) Loading lib_enc/bw_detect.c +0 −14 Original line number Diff line number Diff line Loading @@ -52,12 +52,10 @@ * Local constants *-------------------------------------------------------------------*/ #ifdef FIX_529_BWD_ISSUE #define BWD_MIN_BRATE_WIDER_BW_MDCT IVAS_48k #define BWD_MIN_BRATE_WIDER_BW_ISM IVAS_32k #define BWD_MAX_BRATE_WIDER_BW_MDCT IVAS_80k #define BWD_MAX_BRATE_WIDER_BW_ISM IVAS_64k #endif #define ALPHA_BWD 0.75f #define BWD_LT_THRESH 0.6f Loading @@ -79,9 +77,7 @@ void bw_detect( const float signal_in[], /* i : input signal */ float *spectrum, /* i : MDCT spectrum */ const float *enerBuffer, /* i : energy buffer */ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int16_t mct_on /* i : flag MCT mode */ ) { Loading @@ -95,12 +91,8 @@ void bw_detect( int16_t bwd_count_wider_bw, l_frame; bwd_count_wider_bw = BWD_COUNT_WIDER_BW; #ifdef FIX_529_BWD_ISSUE if ( st->ini_frame > 0 && ( ( st->element_mode == IVAS_CPE_MDCT && ( st->element_brate >= BWD_MIN_BRATE_WIDER_BW_MDCT || mct_on ) ) || ( ivas_format == ISM_FORMAT && st->element_brate >= BWD_MIN_BRATE_WIDER_BW_ISM ) ) ) #else if ( st->element_mode == IVAS_CPE_MDCT && ( st->element_brate > IVAS_64k || mct_on ) ) #endif { bwd_count_wider_bw = BWD_COUNT_WIDER_BW_MDCT; } Loading Loading @@ -596,12 +588,10 @@ void set_bw( { st->bwidth = SWB; } #ifdef FIX_529_BWD_ISSUE else if ( element_brate > BWD_MAX_BRATE_WIDER_BW_ISM ) { st->bwidth = st->max_bwidth; } #endif } /* element_mode == EVS_MONO */ else if ( total_brate <= ACELP_9k60 && st->bwidth > WB ) Loading Loading @@ -659,14 +649,12 @@ void set_bw_stereo( { Encoder_State **sts = hCPE->hCoreCoder; #ifdef FIX_529_BWD_ISSUE if ( hCPE->element_brate > BWD_MAX_BRATE_WIDER_BW_MDCT ) { sts[0]->bwidth = sts[0]->max_bwidth; sts[1]->bwidth = sts[1]->max_bwidth; } else #endif if ( hCPE->element_mode == IVAS_CPE_MDCT ) { /* ensure that both CPE channels have the same audio band-width */ Loading Loading @@ -721,7 +709,6 @@ int16_t set_bw_mct( } } #ifdef FIX_529_BWD_ISSUE for ( cpe_id = 0; cpe_id < nCPE; cpe_id++ ) { if ( hCPE[cpe_id]->element_brate > BWD_MAX_BRATE_WIDER_BW_MDCT ) Loading @@ -729,7 +716,6 @@ int16_t set_bw_mct( mct_bwidth = max( mct_bwidth, hCPE[cpe_id]->hCoreCoder[0]->max_bwidth ); } } #endif bw_changed = 0; if ( mct_bwidth != last_mct_bwidth ) Loading Loading
lib_com/ivas_prot.h +0 −2 Original line number Diff line number Diff line Loading @@ -209,9 +209,7 @@ ivas_error pre_proc_front_ivas( const int16_t front_vad_flag, /* i : front-VAD flag to overwrite VAD decision */ const int16_t force_front_vad, /* i : flag to force VAD decision */ const int16_t front_vad_dtx_flag, /* i : front-VAD DTX flag to overwrite VAD decision*/ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int32_t ivas_total_brate /* i : IVAS total bitrate */ ); Loading
lib_com/options.h +0 −1 Original line number Diff line number Diff line Loading @@ -149,7 +149,6 @@ #define FIX_545_ASSERT /* VA: fix issue 545, replace assert() with warning message when hitting memory limit in the buffer of indices */ #endif #define FIX_529_BWD_ISSUE /* VA: issue 529: fix Bandwidth Detector not working reliably for Music and Generic Audio */ #define FIX_557_CRASH_IN_ISM_DTX /* VA issue 557: fix crash in 1ISM 48 kbps DTX */ #define FIX_563_PARAMMC_LIMITER /* FhG: issue 563: fix ILD limiter when coming from silence w/o transient set */ Loading
lib_com/prot.h +0 −2 Original line number Diff line number Diff line Loading @@ -3891,9 +3891,7 @@ void bw_detect( const float signal_in[], /* i : input signal */ float *spectrum, /* i : MDCT spectrum */ const float *enerBuffer, /* i : energy buffer */ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int16_t mct_on /* i : flag MCT mode */ ); Loading
lib_enc/amr_wb_enc.c +0 −4 Original line number Diff line number Diff line Loading @@ -342,11 +342,7 @@ void amr_wb_enc( * WB, SWB and FB bandwidth detector *----------------------------------------------------------------*/ #ifdef FIX_529_BWD_ISSUE bw_detect( st, st->input, NULL, NULL, MONO_FORMAT, 0 ); #else bw_detect( st, st->input, NULL, NULL, 0 ); #endif /* in AMR_WB IO, limit the maximum band-width to WB */ if ( st->bwidth > WB ) Loading
lib_enc/bw_detect.c +0 −14 Original line number Diff line number Diff line Loading @@ -52,12 +52,10 @@ * Local constants *-------------------------------------------------------------------*/ #ifdef FIX_529_BWD_ISSUE #define BWD_MIN_BRATE_WIDER_BW_MDCT IVAS_48k #define BWD_MIN_BRATE_WIDER_BW_ISM IVAS_32k #define BWD_MAX_BRATE_WIDER_BW_MDCT IVAS_80k #define BWD_MAX_BRATE_WIDER_BW_ISM IVAS_64k #endif #define ALPHA_BWD 0.75f #define BWD_LT_THRESH 0.6f Loading @@ -79,9 +77,7 @@ void bw_detect( const float signal_in[], /* i : input signal */ float *spectrum, /* i : MDCT spectrum */ const float *enerBuffer, /* i : energy buffer */ #ifdef FIX_529_BWD_ISSUE const IVAS_FORMAT ivas_format, /* i : IVAS format */ #endif const int16_t mct_on /* i : flag MCT mode */ ) { Loading @@ -95,12 +91,8 @@ void bw_detect( int16_t bwd_count_wider_bw, l_frame; bwd_count_wider_bw = BWD_COUNT_WIDER_BW; #ifdef FIX_529_BWD_ISSUE if ( st->ini_frame > 0 && ( ( st->element_mode == IVAS_CPE_MDCT && ( st->element_brate >= BWD_MIN_BRATE_WIDER_BW_MDCT || mct_on ) ) || ( ivas_format == ISM_FORMAT && st->element_brate >= BWD_MIN_BRATE_WIDER_BW_ISM ) ) ) #else if ( st->element_mode == IVAS_CPE_MDCT && ( st->element_brate > IVAS_64k || mct_on ) ) #endif { bwd_count_wider_bw = BWD_COUNT_WIDER_BW_MDCT; } Loading Loading @@ -596,12 +588,10 @@ void set_bw( { st->bwidth = SWB; } #ifdef FIX_529_BWD_ISSUE else if ( element_brate > BWD_MAX_BRATE_WIDER_BW_ISM ) { st->bwidth = st->max_bwidth; } #endif } /* element_mode == EVS_MONO */ else if ( total_brate <= ACELP_9k60 && st->bwidth > WB ) Loading Loading @@ -659,14 +649,12 @@ void set_bw_stereo( { Encoder_State **sts = hCPE->hCoreCoder; #ifdef FIX_529_BWD_ISSUE if ( hCPE->element_brate > BWD_MAX_BRATE_WIDER_BW_MDCT ) { sts[0]->bwidth = sts[0]->max_bwidth; sts[1]->bwidth = sts[1]->max_bwidth; } else #endif if ( hCPE->element_mode == IVAS_CPE_MDCT ) { /* ensure that both CPE channels have the same audio band-width */ Loading Loading @@ -721,7 +709,6 @@ int16_t set_bw_mct( } } #ifdef FIX_529_BWD_ISSUE for ( cpe_id = 0; cpe_id < nCPE; cpe_id++ ) { if ( hCPE[cpe_id]->element_brate > BWD_MAX_BRATE_WIDER_BW_MDCT ) Loading @@ -729,7 +716,6 @@ int16_t set_bw_mct( mct_bwidth = max( mct_bwidth, hCPE[cpe_id]->hCoreCoder[0]->max_bwidth ); } } #endif bw_changed = 0; if ( mct_bwidth != last_mct_bwidth ) Loading