Added clamping back

This commit is contained in:
z_demo_z
2002-07-15 00:48:52 +00:00
parent 76368bd84a
commit 901401ff74

View File

@@ -1738,6 +1738,7 @@ section .text
mov ebx,[filter1] mov ebx,[filter1]
imul eax,ebx imul eax,ebx
sar eax,8 sar eax,8
and eax,0fffffffeh
add edx,eax add edx,eax
mov eax,[prev0] mov eax,[prev0]
@@ -1756,14 +1757,24 @@ section .text
mov eax,edx mov eax,edx
and eax,0fffffffeh and eax,0fffffffeh
mov [prev0],eax mov [prev0],eax
jmp %%skipext jmp %%skipclamp
%%notfilter2 %%notfilter2
mov eax,[prev0] mov eax,[prev0]
mov [prev1],eax mov [prev1],eax
cmp edx,-32768
jnl %%notless
mov edx,-32768
mov byte[filteron],1
%%notless
cmp edx,32767
jng %%notgreater
mov edx,32767
mov byte[filteron],1
%%notgreater
movsx edx,dx movsx edx,dx
mov [prev0],edx mov [prev0],edx
%%skipext %%skipclamp
%endmacro %endmacro
%macro ProcessDynamicLowPass 0 %macro ProcessDynamicLowPass 0