aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler/hq3x_i386.asm
diff options
context:
space:
mode:
authorMax Horn2009-01-23 22:05:40 +0000
committerMax Horn2009-01-23 22:05:40 +0000
commit04517f17ad7752ad3273c08f230c0e4a8a245a9b (patch)
treeb6313e594305e71c462490947e5c85ea9716e057 /graphics/scaler/hq3x_i386.asm
parenta8562cf64bbb1e023680a6e113b5140590546127 (diff)
downloadscummvm-rg350-04517f17ad7752ad3273c08f230c0e4a8a245a9b.tar.gz
scummvm-rg350-04517f17ad7752ad3273c08f230c0e4a8a245a9b.tar.bz2
scummvm-rg350-04517f17ad7752ad3273c08f230c0e4a8a245a9b.zip
Added some comments to hq2x/hq3x asm code
svn-id: r36024
Diffstat (limited to 'graphics/scaler/hq3x_i386.asm')
-rw-r--r--graphics/scaler/hq3x_i386.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/scaler/hq3x_i386.asm b/graphics/scaler/hq3x_i386.asm
index 8ffb2d5aba..6a808ac6e8 100644
--- a/graphics/scaler/hq3x_i386.asm
+++ b/graphics/scaler/hq3x_i386.asm
@@ -124,6 +124,8 @@ SECTION .text
%%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 @@ SECTION .text
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 @@ SECTION .text
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 @@ SECTION .text
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 @@ SECTION .text
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