This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 3a1e63e007f1906ba23ca145f5ebd04ee094b768
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Thu Mar 19 14:38:57 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Mon Mar 30 13:51:53 2026 +0200

    avcodec/x86/vvc/alf: Avoid zeroing unnecessarily
    
    In case of >8bpp, there is already a zero register available
    (for clipping); in case of Unix64, one can simply use an
    unused register. Doing so reduces codesize.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/vvc/alf.asm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/libavcodec/x86/vvc/alf.asm b/libavcodec/x86/vvc/alf.asm
index 4dc396afce..04da800ad8 100644
--- a/libavcodec/x86/vvc/alf.asm
+++ b/libavcodec/x86/vvc/alf.asm
@@ -136,8 +136,12 @@ SECTION .text
     %define clips m %+ k
 
     pshufb           m12, clips, [param_shuffe_ %+ i]        ;clip
+%if ps != 1 || UNIX64
+    psubw            m11, m14, m12                           ;-clip
+%else
     pxor             m11, m11
     psubw            m11, m12                                ;-clip
+%endif
 
     psubw             m9, m2
     CLIPW             m9, m11, m12
@@ -477,9 +481,9 @@ cglobal vvc_alf_filter_%2_%1
     jmp vvc_alf_filter_%2_%3_prologue
 %else
 vvc_alf_filter_%2_%1_prologue:
-    PROLOGUE 9, 14+LUMA, 12+2*(ps!=1)+2*LUMA, dst, dst_stride, src, 
src_stride, width, height, filter, clip, vb_pos, \
+    PROLOGUE 9, 14+LUMA, UNIX64 ? 16 : (12+2*(ps!=1)+2*LUMA), dst, dst_stride, 
src, src_stride, width, height, filter, clip, vb_pos, \
     x, s1, s2, s3, s4, s5
-%if ps != 1
+%if ps != 1 || UNIX64
     pxor             m14, m14
 %endif
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to