Back out the old HF AoTuV weighting which was first enabled in
authorMonty <xiphmont@xiph.org>
Tue, 26 Oct 2010 17:09:47 +0000 (17:09 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 26 Oct 2010 17:09:47 +0000 (17:09 +0000)
Everywhere.  There are a few samples where I really don't like the
effect it causes.

svn path=/trunk/vorbis/; revision=17569

lib/psy.c

index f1330a5..507b509 100644 (file)
--- a/lib/psy.c
+++ b/lib/psy.c
@@ -1160,14 +1160,22 @@ void _vp_couple_quantize_normalize(int blobno,
                     However, this is a temporary patch.
                     by Aoyumi @ 2004/04/18
                 */
-                float derate = (1.0 - de*((float)(j-limit+i) / (float)(n-limit)));
-
-                /* elliptical */
+                /*float derate = (1.0 - de*((float)(j-limit+i) / (float)(n-limit)));
+                /* elliptical 
                 if(reM[j]+reA[j]<0){
                   reM[j] = - (qeM[j] = (fabs(reM[j])+fabs(reA[j]))*derate*derate);
                 }else{
                   reM[j] =   (qeM[j] = (fabs(reM[j])+fabs(reA[j]))*derate*derate);
+                  }*/
+
+                /* elliptical */
+                if(reM[j]+reA[j]<0){
+                  reM[j] = - (qeM[j] = fabs(reM[j])+fabs(reA[j]));
+                }else{
+                  reM[j] =   (qeM[j] = fabs(reM[j])+fabs(reA[j]));
                 }
+
+
               }
               reA[j]=qeA[j]=0.f;
               fA[j]=1;