[Scummvm-cvs-logs] SF.net SVN: scummvm:[36024] scummvm/trunk/graphics/scaler

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jan 23 23:05:40 CET 2009


Revision: 36024
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36024&view=rev
Author:   fingolfin
Date:     2009-01-23 22:05:40 +0000 (Fri, 23 Jan 2009)

Log Message:
-----------
Added some comments to hq2x/hq3x asm code

Modified Paths:
--------------
    scummvm/trunk/graphics/scaler/hq2x_i386.asm
    scummvm/trunk/graphics/scaler/hq3x_i386.asm

Modified: scummvm/trunk/graphics/scaler/hq2x_i386.asm
===================================================================
--- scummvm/trunk/graphics/scaler/hq2x_i386.asm	2009-01-23 12:17:12 UTC (rev 36023)
+++ scummvm/trunk/graphics/scaler/hq2x_i386.asm	2009-01-23 22:05:40 UTC (rev 36024)
@@ -127,6 +127,8 @@
 %%fin:
 %endmacro
 
+; interpolate16_2<bitFormat,3,1>
+; Mix two pixels with weight 3 and 1, respectively: (c1*3+c2)/4;
 %macro Interp1 3
     mov edx,%2
     mov ecx,%3
@@ -144,6 +146,8 @@
     mov %1,dx
 %endmacro
 
+; interpolate16_3<bitFormat,2,1,1>
+; Mix three pixels with weight 2, 1, and 1, respectively: (c1*2+c2+c3)/4;
 %macro Interp2 4
     mov edx,%3
     mov ecx,%4
@@ -166,6 +170,8 @@
     mov %1,dx
 %endmacro
 
+; interpolate16_2<bitFormat,1,1>
+; Mix two pixels with weight 1 and 1, respectively: (c1+c2)/2;
 %macro Interp5 3
     mov edx,%2
     mov ecx,%3
@@ -179,6 +185,8 @@
     mov %1,dx
 %endmacro
 
+; interpolate16_3<bitFormat,5,2,1>
+; Mix three pixels with weight 5, 2, and 1, respectively: (c1*5+c2*2+c3)/8;
 %macro Interp6 3
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]
@@ -203,6 +211,8 @@
     mov        %1,  dx
 %endmacro
 
+; interpolate16_3<bitFormat,6,1,1>
+; Mix three pixels with weight 6, 1, and 1, respectively: (c1*6+c2+c3)/8;
 %macro Interp7 3
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]
@@ -226,6 +236,8 @@
     mov        %1,  dx
 %endmacro
 
+; interpolate16_3<bitFormat,2,3,3>
+; Mix three pixels with weight 2, 3, and 3, respectively: (c1*2+(c2+c3)*3)/8;
 %macro Interp9 3
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]
@@ -250,6 +262,8 @@
     mov        %1,  dx
 %endmacro
 
+; interpolate16_3<bitFormat,14,1,1>
+; Mix three pixels with weight 14, 1, and 1, respectively: (c1*14+c2+c3)/16;
 %macro Interp10 3
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]

Modified: scummvm/trunk/graphics/scaler/hq3x_i386.asm
===================================================================
--- scummvm/trunk/graphics/scaler/hq3x_i386.asm	2009-01-23 12:17:12 UTC (rev 36023)
+++ scummvm/trunk/graphics/scaler/hq3x_i386.asm	2009-01-23 22:05:40 UTC (rev 36024)
@@ -124,6 +124,8 @@
 %%fin:
 %endmacro
 
+; interpolate16_2<bitFormat,3,1>
+; Mix two pixels with weight 3 and 1, respectively: (c1*3+c2)/4;
 %macro Interp1 3
     mov edx,%2
     mov ecx,%3
@@ -141,6 +143,8 @@
     mov %1,dx
 %endmacro
 
+; interpolate16_3<bitFormat,2,1,1>
+; Mix three pixels with weight 2, 1, and 1, respectively: (c1*2+c2+c3)/4;
 %macro Interp2 4
     mov edx,%3
     mov ecx,%4
@@ -163,6 +167,8 @@
     mov %1,dx
 %endmacro
 
+; interpolate16_2<bitFormat,7,1>
+; Mix two pixels with weight 7 and 1, respectively: (c1*7+c2)/8;
 %macro Interp3 2
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]
@@ -182,6 +188,8 @@
     mov        %1,  dx
 %endmacro
 
+; interpolate16_3<bitFormat,2,7,7>
+; Mix three pixels with weight 2, 7, and 7, respectively: (c1*2+(c2+c3)*7)/16;
 %macro Interp4 3
     mov        ecx, [_LUT16to32]
     movd       mm1, [ecx+eax*4]
@@ -206,6 +214,8 @@
     mov        %1,  dx
 %endmacro
 
+; interpolate16_2<bitFormat,1,1>
+; Mix two pixels with weight 1 and 1, respectively: (c1+c2)/2;
 %macro Interp5 3
     mov edx,%2
     mov ecx,%3


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