[xiph-cvs] cvs commit: theora/lib toplevel.c

Ralph Giles giles at xiph.org
Sat Mar 13 15:46:28 PST 2004



giles       04/03/13 18:46:28

  Modified:    lib      toplevel.c
  Log:
  Move the in-loop filter limit coefficients table from the end of the
  setup packet to the beginning. It's a fixed-length table, so this lets
  us keep byte alignment for more of the data. Suggestion from Derf.
  
  THIS IS AN INCOMPATIBLE BITSTREAM CHANGE.

Revision  Changes    Path
1.38      +5 -5      theora/lib/toplevel.c

Index: toplevel.c
===================================================================
RCS file: /usr/local/cvsroot/theora/lib/toplevel.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- a/toplevel.c	9 Mar 2004 02:02:56 -0000	1.37
+++ b/toplevel.c	13 Mar 2004 23:46:27 -0000	1.38
@@ -11,7 +11,7 @@
  ********************************************************************
 
   function:
-  last mod: $Id: toplevel.c,v 1.37 2004/03/09 02:02:56 giles Exp $
+  last mod: $Id: toplevel.c,v 1.38 2004/03/13 23:46:27 giles Exp $
 
  ********************************************************************/
 
@@ -24,7 +24,7 @@
 #define VERSION_MINOR 2
 #define VERSION_SUB 0
 
-#define VENDOR_STRING "Xiph.Org libTheora I 20040228 3 2 0"
+#define VENDOR_STRING "Xiph.Org libTheora I 20040313 3 2 0"
 
 #define A_TABLE_SIZE        29
 #define DF_CANDIDATE_WINDOW 5
@@ -1186,9 +1186,9 @@
   oggpackB_write(cpi->oggbuffer,0x82,8);
   _tp_writebuffer(cpi->oggbuffer,"theora",6);
 
+  WriteFilterTables(&cpi->pb,cpi->oggbuffer);
   WriteQTables(&cpi->pb,cpi->oggbuffer);
   WriteHuffmanTrees(cpi->pb.HuffRoot_VP3x,cpi->oggbuffer);
-  WriteFilterTables(&cpi->pb,cpi->oggbuffer);
 
 #ifndef LIBOGG2
   op->packet=oggpackB_get_buffer(cpi->oggbuffer);
@@ -1347,12 +1347,12 @@
 
   ci=(codec_setup_info *)c->codec_setup;
 
+  ret=ReadFilterTables(ci, opb);
+  if(ret)return ret;
   ret=ReadQTables(ci, opb);
   if(ret)return ret;
   ret=ReadHuffmanTrees(ci, opb);
   if(ret)return ret;
-  ret=ReadFilterTables(ci, opb);
-  if(ret)return ret;
 
   return ret;
 }

<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