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

Git pushed a commit to branch master
in repository ffmpeg.

commit 94f9ad8061371d1ac946beed42db49d5d2fe2499
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sat Feb 28 17:42:20 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Mar 6 20:02:41 2026 +0100

    avcodec/x86/vvc/alf: Use immediate for shift when possible
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/vvc/alf.asm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavcodec/x86/vvc/alf.asm b/libavcodec/x86/vvc/alf.asm
index ccb236294a..572427f98a 100644
--- a/libavcodec/x86/vvc/alf.asm
+++ b/libavcodec/x86/vvc/alf.asm
@@ -760,12 +760,18 @@ cglobal vvc_alf_classify_grad_%1bpc, 6, 14, 16, 
gradient_sum, src, src_stride, w
     pblendvb          m2, m5, m8, m1     ; hvd1
     pblendvb          m3, m6, m9, m1     ; hvd0
 
+%if ps != 1  ; high bit depth
     movd             xm5, bit_depthd
     vpbroadcastd      m5, xm5
+%endif
 
     ;*class_idx = arg_var[av_clip_uintp2(sum_hv * ac >> (BIT_DEPTH - 1), 4)];
     pmulld            m0, m14            ; sum_hv * ac
+%if ps != 1
     vpsrlvd           m0, m0, m5
+%else
+    psrld             m0, 8
+%endif
     pminsd            m0, [dd15]
     movu              m6, [ARG_VAR_SHUFFE]
     pshufb            m6, m0             ; class_idx
@@ -818,7 +824,9 @@ ALF_CLASSIFY_GRAD %1
 cglobal vvc_alf_classify_%1bpc, 7, 15, 16, class_idx, transpose_idx, 
gradient_sum, width, height, vb_pos, bit_depth, \
     x, y, grad, sum_stride, sum_stride3, temp, w
 
+%if ps != 1
     sub       bit_depthq, 1
+%endif
 
     ; now we can use gradient to get class idx and transpose idx
     lea      sum_strideq, [widthd + ALF_GRADIENT_BORDER * 2]

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

Reply via email to