Now that we're preventing huge gains, we no longer need to pretend there's
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 3 Jun 2016 19:20:28 +0000 (15:20 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 19 Jul 2016 20:11:50 +0000 (16:11 -0400)
no dither

silk/NSQ.c
silk/NSQ_del_dec.c

index 9fb05a8..0e2ea50 100644 (file)
@@ -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 );
index 1b6dbf0..3495613 100644 (file)
@@ -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 );