Commit 9afc1d62 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

tune SVD parameters

parent 637d9bbf
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@
#define NONBE_FIX_1045_ISM_BITRATE_SWITCHING            /* Eri: Difference between ROM/File HRTF in ISM bitrate switching */
#define NONBE_FIX_1067_QUATERNIONSLERP_INACCURACIES     /* Philips: issue 1067: QuaternionSlerp inaccuracies in corner cases */
#define NONBE_FIX_1065_ISM_MD_HANDLE                    /* VA: issue 1065: Allocate only the necessary number of ISM MD decoder handles. */
#define NONBE_FIX_1069_SVD_TUNING                       /* FhG: issue 1069: tune SVD constants */

/* ##################### End NON-BE switches ########################### */

+7 −0
Original line number Diff line number Diff line
@@ -48,10 +48,17 @@
 *-----------------------------------------------------------------------*/

/* The SVD is sensitive to changes to the following constants, so please be careful when trying to tune things   */
#ifdef NONBE_FIX_1069_SVD_TUNING
#define SVD_MINIMUM_VALUE        1e-32f           /* minimum value                                                   */
#define CONVERGENCE_FACTOR       1.0e-04f         /* factor for SVD convergence                                      */
#define SVD_MAX_NUM_ITERATION    75               /* maximum number of interations before exiting the SVD            */
#define SVD_ZERO_FLUSH_THRESHOLD 0.0f
#else
#define SVD_MINIMUM_VALUE        1e-32f          /* minimum value                                                   */
#define CONVERGENCE_FACTOR       1.19209290e-07f /* factor for SVD convergence                                      */
#define SVD_MAX_NUM_ITERATION    75              /* maximum number of interations before exiting the SVD            */
#define SVD_ZERO_FLUSH_THRESHOLD 1.0e-20f
#endif


/*-----------------------------------------------------------------------*