diff options
author | Koen Vos <koen.vos@skype.net> | 2011-12-14 20:39:29 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-12-14 20:41:18 +0400 |
commit | a51ebd6831e839551255999f501dbf635c0f1943 (patch) | |
tree | 539dc5d16fcf06e5dbb96561dfb08673c6183a40 /silk/define.h | |
parent | 5609cec9a5e1ea8fcb056f2306a115cb3b61c4c9 (diff) |
Accuracy improvements to help float implementations
Also clamps the gain to avoid forcing a float decoder to emulate the
state rescaling.
Diffstat (limited to 'silk/define.h')
-rw-r--r-- | silk/define.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/silk/define.h b/silk/define.h index 6730f142..f398bf8b 100644 --- a/silk/define.h +++ b/silk/define.h @@ -130,7 +130,7 @@ extern "C" #define QUANT_LEVEL_ADJUST_Q10 80 /* Maximum numbers of iterations used to stabilize an LPC vector */ -#define MAX_LPC_STABILIZE_ITERATIONS 30 +#define MAX_LPC_STABILIZE_ITERATIONS 15 #define MAX_PREDICTION_POWER_GAIN 1e4f #define MAX_PREDICTION_POWER_GAIN_AFTER_RESET 1e2f @@ -190,7 +190,7 @@ extern "C" #define VAD_N_BANDS 4 #define VAD_INTERNAL_SUBFRAMES_LOG2 2 -#define VAD_INTERNAL_SUBFRAMES (1 << VAD_INTERNAL_SUBFRAMES_LOG2) +#define VAD_INTERNAL_SUBFRAMES ( 1 << VAD_INTERNAL_SUBFRAMES_LOG2 ) #define VAD_NOISE_LEVEL_SMOOTH_COEF_Q16 1024 /* Must be < 4096 */ #define VAD_NOISE_LEVELS_BIAS 50 |