From 63508c6853e359173758b039bc95eb074ab3b934 Mon Sep 17 00:00:00 2001 From: naghibza Date: Mon, 15 Jun 2026 11:25:42 +0200 Subject: [PATCH 1/2] round |elevation| with anint_fx before the 90deg subtraction in add_vertex_fx --- lib_com/options.h | 1 + lib_rend/ivas_efap_fx.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index e985a75ef..d3c11d9f5 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -101,6 +101,7 @@ #define NONBE_FIX2614_LP_CNG_ASSERT /* FhG: */ #define FIX_FLOAT_1600_OMASA_WRONG_RENDER_PATH /* Nokia: float issue 1600: fix initialization condition of stereo type detection for OMASA */ #define FIX_BASOP_1765_MASA1TC_CNG_MISMATCH /* Nokia: BASOP issue 1765: Improve accuracy of FD CNG noise estimation */ +#define FIX_BASOP_2635_EFAP_ADD_VERTEX_ELE_ROUND /* FhG: BASOP #2635: round |elevation| with anint_fx before the 90deg subtraction in add_vertex_fx */ /* ##################### End NON-BE switches ########################### */ diff --git a/lib_rend/ivas_efap_fx.c b/lib_rend/ivas_efap_fx.c index 9a3cb2f0b..9b9502683 100644 --- a/lib_rend/ivas_efap_fx.c +++ b/lib_rend/ivas_efap_fx.c @@ -1696,8 +1696,13 @@ static void add_vertex_fx( /* IdxEleTmp */ tmp = L_abs( vtxArray[pos].ele ); // q22 +#ifdef FIX_BASOP_2635_EFAP_ADD_VERTEX_ELE_ROUND + idxEleTmp = anint_fx( tmp, Q22 ); // q22 + move32(); +#else idxEleTmp = tmp; // q22 move16(); +#endif idxEleTmp = L_sub( Q22_90_DEG /*90 q22*/, idxEleTmp ); // q22 /* Final Idx */ -- GitLab From 3eab78846d70de7fb2c031a591896808dd34c8fa Mon Sep 17 00:00:00 2001 From: naghibza Date: Mon, 15 Jun 2026 11:37:17 +0200 Subject: [PATCH 2/2] Apply clang format --- lib_rend/ivas_efap_fx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib_rend/ivas_efap_fx.c b/lib_rend/ivas_efap_fx.c index 9b9502683..d716c5b7d 100644 --- a/lib_rend/ivas_efap_fx.c +++ b/lib_rend/ivas_efap_fx.c @@ -1700,7 +1700,7 @@ static void add_vertex_fx( idxEleTmp = anint_fx( tmp, Q22 ); // q22 move32(); #else - idxEleTmp = tmp; // q22 + idxEleTmp = tmp; // q22 move16(); #endif idxEleTmp = L_sub( Q22_90_DEG /*90 q22*/, idxEleTmp ); // q22 -- GitLab