[xiph-commits] r7828 - trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Wed Sep 22 03:59:35 PDT 2004


Author: illiminable
Date: 2004-09-22 03:59:35 -0700 (Wed, 22 Sep 2004)
New Revision: 7828

Modified:
   trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder/TheoraEncodeInputPin.cpp
Log:
* Another small optimisation.

Modified: trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder/TheoraEncodeInputPin.cpp
===================================================================
--- trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder/TheoraEncodeInputPin.cpp	2004-09-22 10:57:59 UTC (rev 7827)
+++ trunk/oggdsf/src/lib/codecs/theora/filters/dsfTheoraEncoder/TheoraEncodeInputPin.cpp	2004-09-22 10:59:35 UTC (rev 7828)
@@ -611,8 +611,9 @@
 			//NextUpto							^
 
 			//Ignore the alpha channel
-			locSourceUptoPtr++;
-			locSourceNextLine++;
+			//--
+			//locSourceUptoPtr++;			//Optimised away... merged into increment below
+			//locSourceNextLine++;			// "	"	"	"	"	"	"	"	"	"	"
 
 			//						v	u	y	a	v	u	y	a
 			//SourceUpto							^
@@ -625,7 +626,7 @@
 			//--
 
 			//Current line extra Y for yellows.
-			locSourceUptoPtr += 2;					//Skip the U and V samples
+			locSourceUptoPtr += 3;					//Skip the A and U and V samples
 			*(locYUpto++) = *(locSourceUptoPtr);	//get the Y for yellow sample		
 			locSourceUptoPtr += 2;					//Advance 1 for the Y for yellow and Skip the A sample.
 
@@ -635,7 +636,7 @@
 
 
 			//Next line extra Y for yellows.
-			locSourceNextLine += 2;							//Skip the U and V samples
+			locSourceNextLine += 3;							//Skip the A and U and V samples
 			*(locDestNextLine++) = *(locSourceNextLine);	//get the Y for yellow sample		
 			locSourceNextLine += 2;							//Advance 1 for the Y for yellow and Skip the A sample.
 



More information about the commits mailing list