[xiph-cvs] cvs commit: vorbis/lib mapping0.c psy.c

Monty xiphmont at xiph.org
Wed Oct 16 21:56:23 PDT 2002



xiphmont    02/10/17 00:56:23

  Modified:    lib      mapping0.c psy.c
  Log:
  Incorrect thinking on my part; rolling change back to 1.77

Revision  Changes    Path
1.55      +7 -7      vorbis/lib/mapping0.c

Index: mapping0.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/mapping0.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- mapping0.c	11 Oct 2002 11:14:41 -0000	1.54
+++ mapping0.c	17 Oct 2002 04:56:23 -0000	1.55
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: channel mapping 0 implementation
- last mod: $Id: mapping0.c,v 1.54 2002/10/11 11:14:41 xiphmont Exp $
+ last mod: $Id: mapping0.c,v 1.55 2002/10/17 04:56:23 xiphmont Exp $
 
  ********************************************************************/
 
@@ -157,7 +157,7 @@
 #include "psy.h"
 #include "scales.h"
 
-#if 0
+//#if 0
 static long seq=0;
 static ogg_int64_t total=0;
 static float FLOOR1_fromdB_LOOKUP[256]={
@@ -227,7 +227,7 @@
   0.82788260F, 0.88168307F, 0.9389798F, 1.F, 
 };
 
-#endif 
+//#endif 
 
 extern int *floor1_fit(vorbis_block *vb,vorbis_look_floor *look,
                        const float *logmdct,   /* in */
@@ -346,7 +346,7 @@
       for(j=0;j<n/2;j++)
         logmdct[j]=todB(mdct+j);
 
-#if 0
+      //#if 0
       if(vi->channels==2){
         if(i==0)
           _analysis_output("mdctL",seq,logmdct,n/2,1,0,0);
@@ -355,7 +355,7 @@
       }else{
         _analysis_output("mdct",seq,logmdct,n/2,1,0,0);
       }
-#endif 
+      //#endif 
       
       /* first step; noise masking.  Not only does 'noise masking'
          give us curves from which we can decide how much resolution
@@ -641,10 +641,10 @@
     
   }
 
-#if 0
+  //#if 0
   seq++;
   total+=ci->blocksizes[vb->W]/4+ci->blocksizes[vb->nW]/4;
-#endif
+  //#endif
   return(0);
 }
 

<p><p>1.79      +6 -6      vorbis/lib/psy.c

Index: psy.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/psy.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- psy.c	17 Oct 2002 04:41:39 -0000	1.78
+++ psy.c	17 Oct 2002 04:56:23 -0000	1.79
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: psychoacoustics not including preecho
- last mod: $Id: psy.c,v 1.78 2002/10/17 04:41:39 xiphmont Exp $
+ last mod: $Id: psy.c,v 1.79 2002/10/17 04:56:23 xiphmont Exp $
 
  ********************************************************************/
 
@@ -630,10 +630,10 @@
     lo = hi - fixed;
     
     tN = N[hi] + N[-lo];
-    tX = X[hi] + X[-lo];
+    tX = X[hi] - X[-lo];
     tXX = XX[hi] + XX[-lo];
     tY = Y[hi] + Y[-lo];
-    tXY = XY[hi] + XY[-lo];
+    tXY = XY[hi] - XY[-lo];
     
     
     A = tY * tXX - tX * tXY;
@@ -780,14 +780,14 @@
     }
     
     if(seq&1)
-      _analysis_output("median2R",seq/2,work,n,1,0,0);
+      _analysis_output("medianR",seq/2,work,n,1,0,0);
     else
-      _analysis_output("median2L",seq/2,work,n,1,0,0);
+      _analysis_output("medianL",seq/2,work,n,1,0,0);
     
     if(seq&1)
-      _analysis_output("envelope2R",seq/2,work2,n,1,0,0);
+      _analysis_output("envelopeR",seq/2,work2,n,1,0,0);
     else
-      _analysis_output("envelope2L",seq/2,work2,n,1,0,0);
+      _analysis_output("enveloperL",seq/2,work2,n,1,0,0);
     seq++;
   }
 #endif

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list