[Scummvm-cvs-logs] SF.net SVN: scummvm: [21985] scummvm/trunk/graphics/scaler/2xsai.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Mon Apr 17 11:55:06 CEST 2006


Revision: 21985
Author:   fingolfin
Date:     2006-04-17 11:54:20 -0700 (Mon, 17 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21985&view=rev

Log Message:
-----------
Make use of triple-interpolation function in SuperEagel (should save a few cycles... not that it really matters :)

Modified Paths:
--------------
    scummvm/trunk/graphics/scaler/2xsai.cpp
Modified: scummvm/trunk/graphics/scaler/2xsai.cpp
===================================================================
--- scummvm/trunk/graphics/scaler/2xsai.cpp	2006-04-17 18:50:33 UTC (rev 21984)
+++ scummvm/trunk/graphics/scaler/2xsai.cpp	2006-04-17 18:54:20 UTC (rev 21985)
@@ -46,6 +46,7 @@
 
 #define interpolate_1_1		interpolate16_2<bitFormat, 1, 1>
 #define interpolate_3_1		interpolate16_2<bitFormat, 3, 1>
+#define interpolate_6_1_1	interpolate16_3<bitFormat, 6, 1, 1>
 #define interpolate_1_1_1_1	interpolate32_1_1_1_1<bitFormat>
 
 template<int bitFormat>
@@ -204,13 +205,11 @@
 						product2b = interpolate_1_1(color2, color3);
 					}
 				} else {
-					product2b = product1a = interpolate_1_1(color2, color6);
-					product2b = interpolate_3_1(color3, product2b);
-					product1a = interpolate_3_1(color5, product1a);
+					product2b = interpolate_6_1_1(color3, color2, color6);
+					product1a = interpolate_6_1_1(color5, color2, color6);
 
-					product2a = product1b = interpolate_1_1(color5, color3);
-					product2a = interpolate_3_1(color2, product2a);
-					product1b = interpolate_3_1(color6, product1b);
+					product2a = interpolate_6_1_1(color2, color5, color3);
+					product1b = interpolate_6_1_1(color6, color5, color3);
 				}
 			} else {
 				if (color2 != color6) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list