Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-06-03 22:20:28 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-07-17 04:06:10 +0300
commit158a051c8a8d3e88c8fb6d05291349bd2be94bdf (patch)
treeffd2acec7ffec5fabfc5100c1d3e86a434da8bd0
parent19bb2dbe58ddd3af36c604cd50e787b8e8625376 (diff)
Now that we're preventing huge gains, we no longer need to pretend there's
no dither
-rw-r--r--silk/NSQ.c4
-rw-r--r--silk/NSQ_del_dec.c3
2 files changed, 0 insertions, 7 deletions
diff --git a/silk/NSQ.c b/silk/NSQ.c
index 9fb05a80..0e2ea504 100644
--- a/silk/NSQ.c
+++ b/silk/NSQ.c
@@ -225,10 +225,6 @@ void silk_noise_shape_quantizer(
silk_short_prediction_create_arch_coef(a_Q12_arch, a_Q12, predictLPCOrder);
#endif
- /* We're getting desperate to hit the target -- pretend there's
- no dithering to make hitting the target more likely. */
- if (Lambda_Q10 > 3072) offset_Q10 = 0;
-
for( i = 0; i < length; i++ ) {
/* Generate dither */
NSQ->rand_seed = silk_RAND( NSQ->rand_seed );
diff --git a/silk/NSQ_del_dec.c b/silk/NSQ_del_dec.c
index 1b6dbf04..3495613b 100644
--- a/silk/NSQ_del_dec.c
+++ b/silk/NSQ_del_dec.c
@@ -362,9 +362,6 @@ static OPUS_INLINE void silk_noise_shape_quantizer_del_dec(
NSQ_sample_struct *psSS;
SAVE_STACK;
- /* We're getting desperate to hit the target -- pretend there's
- no dithering to make hitting the target more likely. */
- if (Lambda_Q10 > 3072) offset_Q10 = 0;
silk_assert( nStatesDelayedDecision > 0 );
ALLOC( psSampleState, nStatesDelayedDecision, NSQ_sample_pair );