From b63c4b6a42d68032cb24ea8256c1530afcc34e59 Mon Sep 17 00:00:00 2001 From: Stefan Bayer Date: Wed, 7 Jun 2023 07:52:05 +0200 Subject: [PATCH] fix for #122, reduce MC worst case decoder complexity by reducing the number of parameter bands in ParamMC, not BE, under define FIX_122_MC_DECODER_COMPLEXITY --- lib_com/ivas_mc_param_com.c | 4 ++++ lib_com/options.h | 1 + 2 files changed, 5 insertions(+) diff --git a/lib_com/ivas_mc_param_com.c b/lib_com/ivas_mc_param_com.c index acf7a8eae2..a66cdba916 100644 --- a/lib_com/ivas_mc_param_com.c +++ b/lib_com/ivas_mc_param_com.c @@ -406,7 +406,11 @@ static int16_t ivas_param_mc_get_num_param_bands( switch ( ivas_total_brate ) { case IVAS_128k: +#ifdef FIX_122_MC_DECODER_COMPLEXITY + num_parameter_bands = 14; +#else num_parameter_bands = 20; +#endif break; case IVAS_160k: num_parameter_bands = 20; diff --git a/lib_com/options.h b/lib_com/options.h index 3ff30c7505..8ef5e79b7c 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -166,6 +166,7 @@ #define FIX_570_TCX_LPC_WRITE /* FhG: fix issue 570: LPC bitstream writer in TCX */ #define FIX_506 /* FhG: Compiler warnings */ #define FIX_511_OPTIMIZE_PARAMBIN_GAIN_FETCH /* Nokia: Issue 511, significant optimization of parametric binauralizer gain fetching. */ +#define FIX_122_MC_DECODER_COMPLEXITY /* FhG: Issue 122, significant decrease of worst case MC decoder complexity */ /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ -- GitLab