Removed some more motion blur garbage.
This commit is contained in:
@@ -1585,78 +1585,3 @@ SystemTime:
|
|||||||
.wSecond dw 0
|
.wSecond dw 0
|
||||||
.wMilliseconds dw 0
|
.wMilliseconds dw 0
|
||||||
|
|
||||||
|
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
%if 0
|
|
||||||
|
|
||||||
; here's some code to blur a 512x448 region inside a 640x wide buffer
|
|
||||||
; code "borrowed" from KEGA 0.04b
|
|
||||||
|
|
||||||
%macro blurcrap 0
|
|
||||||
mov eax,ebx
|
|
||||||
mov ebx,ecx
|
|
||||||
mov ecx,dword [edi+4]
|
|
||||||
shr ecx,1
|
|
||||||
and ecx,ebp
|
|
||||||
mov edx,ecx
|
|
||||||
add edx,eax
|
|
||||||
shr edx,1
|
|
||||||
and edx,ebp
|
|
||||||
add edx,ebx
|
|
||||||
mov word [edi+2],dx
|
|
||||||
push edx
|
|
||||||
shr edx,1
|
|
||||||
shr esi,1
|
|
||||||
and edx,ebp
|
|
||||||
and esi,ebp
|
|
||||||
add edx,esi
|
|
||||||
mov word [edi],dx
|
|
||||||
pop esi
|
|
||||||
add edi,4
|
|
||||||
%endmacro
|
|
||||||
|
|
||||||
NEWSYM fastblur
|
|
||||||
push ebx
|
|
||||||
push ecx
|
|
||||||
push edx
|
|
||||||
push esi
|
|
||||||
push edi
|
|
||||||
push ebp
|
|
||||||
mov ebp, 0111101111101111b
|
|
||||||
cmp dword [converta], 1
|
|
||||||
jne .565
|
|
||||||
mov ebp, 0011110111101111b
|
|
||||||
.565
|
|
||||||
mov edi, [esp+1Ch]
|
|
||||||
mov ecx, 448
|
|
||||||
|
|
||||||
.loop
|
|
||||||
push ecx
|
|
||||||
|
|
||||||
xor ebx, ebx
|
|
||||||
mov ecx, dword [edi]
|
|
||||||
xor esi, esi
|
|
||||||
shr ecx, 1
|
|
||||||
and ecx, ebp
|
|
||||||
|
|
||||||
%rep 256
|
|
||||||
blurcrap
|
|
||||||
%endrep
|
|
||||||
|
|
||||||
pop ecx
|
|
||||||
|
|
||||||
add edi, 256
|
|
||||||
|
|
||||||
dec ecx
|
|
||||||
jne .loop
|
|
||||||
|
|
||||||
pop ebp
|
|
||||||
pop edi
|
|
||||||
pop esi
|
|
||||||
pop edx
|
|
||||||
pop ecx
|
|
||||||
pop ebx
|
|
||||||
ret
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user