[xiph-commits] r10544 - experimental/j/Elphel333/common

giles at svn.xiph.org giles at svn.xiph.org
Mon Dec 5 16:51:07 PST 2005


Author: giles
Date: 2005-12-05 16:51:06 -0800 (Mon, 05 Dec 2005)
New Revision: 10544

Modified:
   experimental/j/Elphel333/common/oggtheora.c
Log:
Set a 1:1 pixel aspect ratio. I haven't measured, but I think the sensor 
is square.


Modified: experimental/j/Elphel333/common/oggtheora.c
===================================================================
--- experimental/j/Elphel333/common/oggtheora.c	2005-12-06 00:30:54 UTC (rev 10543)
+++ experimental/j/Elphel333/common/oggtheora.c	2005-12-06 00:51:06 UTC (rev 10544)
@@ -979,8 +979,8 @@
      buf[17]=(fmbh >> 12) & 0xff;
      buf[18]=(fmbh >>  4) & 0xff;
      buf[19]=(fmbh <<  4) & 0xff;
-     buf[20]=0x00;
-     buf[21]=0x00;
+     buf[20]=0x00; /* crop x offset - none */
+     buf[21]=0x00; /* crop y offset - none */
      buf[22]=(frn >> 24) &0xff;
      buf[23]=(frn >> 16) &0xff;
      buf[24]=(frn >>  8) &0xff;
@@ -990,11 +990,11 @@
      buf[28]=(frd >>  8) &0xff;
      buf[29]= frd        &0xff;
      buf[30]= 0; //PARN - 3 bytes
-     buf[31]= 0;
-     buf[32]= 0;
+     buf[31]= 0; // assume 1:1 for the sensor
+     buf[32]= 1;
      buf[33]= 0; //PARD - 3 bytes
      buf[34]= 0;
-     buf[35]= 0;
+     buf[35]= 1;
      buf[36]= 0; // color space - "undefined"
      buf[37]=(nobr >> 16) &0xff;
      buf[38]=(nobr >>  8) &0xff;



More information about the commits mailing list