[xiph-commits] r17475 - in trunk/xiph-qt: . Theora/src

arek at svn.xiph.org arek at svn.xiph.org
Thu Sep 30 15:20:55 PDT 2010


Author: arek
Date: 2010-09-30 15:20:55 -0700 (Thu, 30 Sep 2010)
New Revision: 17475

Modified:
   trunk/xiph-qt/ChangeLog
   trunk/xiph-qt/Theora/src/TheoraDecoder.c
Log:
	* Theora/src/TheoraDecoder.c:
	Use "correct" endian for the 'y420' pixmap info structure.


Modified: trunk/xiph-qt/ChangeLog
===================================================================
--- trunk/xiph-qt/ChangeLog	2010-09-30 03:41:41 UTC (rev 17474)
+++ trunk/xiph-qt/ChangeLog	2010-09-30 22:20:55 UTC (rev 17475)
@@ -1,3 +1,8 @@
+2010-10-01  Arek Korbik  <arkadini at gmail.com>
+
+	* Theora/src/TheoraDecoder.c:
+	Use "correct" endian for the 'y420' pixmap info structure.
+
 2009-08-02  Arek Korbik  <arkadini at gmail.com>
 
 	* OggImport/src/stream_theora.c:

Modified: trunk/xiph-qt/Theora/src/TheoraDecoder.c
===================================================================
--- trunk/xiph-qt/Theora/src/TheoraDecoder.c	2010-09-30 03:41:41 UTC (rev 17474)
+++ trunk/xiph-qt/Theora/src/TheoraDecoder.c	2010-09-30 22:20:55 UTC (rev 17475)
@@ -848,8 +848,8 @@
                ycbcr[2].width, ycbcr[2].height, ycbcr[2].stride);
 
     lines = height;
-    dst_base = baseAddr + pinfo->componentInfoY.offset;
-    dst_stride = pinfo->componentInfoY.rowBytes;
+    dst_base = baseAddr + EndianS32_BtoN(pinfo->componentInfoY.offset);
+    dst_stride = EndianU32_BtoN(pinfo->componentInfoY.rowBytes);
     src_base = ycbcr[0].data + off_y * ycbcr[0].stride + off_x;
     src_stride = ycbcr[0].stride;
     while (lines-- > 0) {
@@ -859,8 +859,8 @@
     }
 
     lines = height / 2;
-    dst_base = baseAddr + pinfo->componentInfoCb.offset;
-    dst_stride = pinfo->componentInfoCb.rowBytes;
+    dst_base = baseAddr + EndianS32_BtoN(pinfo->componentInfoCb.offset);
+    dst_stride = EndianU32_BtoN(pinfo->componentInfoCb.rowBytes);
     src_base = ycbcr[1].data + off_y * ycbcr[1].stride + off_x2;
     src_stride = ycbcr[1].stride;
     while (lines-- > 0) {
@@ -870,8 +870,8 @@
     }
 
     lines = height / 2;
-    dst_base = baseAddr + pinfo->componentInfoCr.offset;
-    dst_stride = pinfo->componentInfoCr.rowBytes;
+    dst_base = baseAddr + EndianS32_BtoN(pinfo->componentInfoCr.offset);
+    dst_stride = EndianU32_BtoN(pinfo->componentInfoCr.rowBytes);
     src_base = ycbcr[2].data + off_y * ycbcr[2].stride + off_x2;;
     src_stride = ycbcr[2].stride;
     while (lines-- > 0) {



More information about the commits mailing list