1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

hevc: cleaning up SSE2 and SSSE3 deblocking filters

Signed-off-by: Mickaël Raulet <mraulet@insa-rennes.fr>

cherry picked from commit b432041d7d1eca38831590f13b4e5baffff8186f
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Anton Khirnov
2014-07-19 13:53:56 +02:00
committed by Michael Niedermayer
parent 5f08b417b4
commit 7a4cf67117

View File

@@ -329,8 +329,10 @@ ALIGN 16
paddw m5, [pw_4]; +4 paddw m5, [pw_4]; +4
psraw m5, 3; >> 3 psraw m5, 3; >> 3
%if %1 > 8
psllw m4, %1-8; << (BIT_DEPTH - 8) psllw m4, %1-8; << (BIT_DEPTH - 8)
psllw m6, %1-8; << (BIT_DEPTH - 8) psllw m6, %1-8; << (BIT_DEPTH - 8)
%endif
pmaxsw m5, m4 pmaxsw m5, m4
pminsw m5, m6 pminsw m5, m6
paddw m1, m5; p0 + delta0 paddw m1, m5; p0 + delta0
@@ -420,11 +422,15 @@ ALIGN 16
;decide between strong and weak filtering ;decide between strong and weak filtering
;tc25 calculations ;tc25 calculations
mov r2d, [tcq]; mov r2d, [tcq];
%if %1 > 8
shl r2, %1 - 8 shl r2, %1 - 8
%endif
movd m8, r2d; tc0 movd m8, r2d; tc0
add tcq, 4; add tcq, 4;
mov r3d, [tcq]; mov r3d, [tcq];
%if %1 > 8
shl r3, %1 - 8 shl r3, %1 - 8
%endif
movd m9, r3d; tc1 movd m9, r3d; tc1
add r2d, r3d; tc0 + tc1 add r2d, r3d; tc0 + tc1
jz .bypassluma jz .bypassluma