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

Git pushed a commit to branch master
in repository ffmpeg.

commit c6205355b452590fbb3037646561a5ce32a97862
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sun Feb 22 14:57:59 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Mar 6 20:02:41 2026 +0100

    avcodec/x86/vvc/of: Avoid initialization, addition for first block
    
    Output directly to the desired destination registers instead
    of zeroing them, followed by adding the desired values.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/vvc/of.asm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/libavcodec/x86/vvc/of.asm b/libavcodec/x86/vvc/of.asm
index 4a28550690..8ad68aa16f 100644
--- a/libavcodec/x86/vvc/of.asm
+++ b/libavcodec/x86/vvc/of.asm
@@ -230,14 +230,20 @@ INIT_YMM avx2
     pshufhw                      m6, m6, q2301
     paddw                        m8, m6, m11                ; 4 x (4sgx2, 
4sgy2, 4sgxdi, 4sgydi)
 
-%if (%1) == 0 || (%2)
-    ; pad for top and bottom
+%if (%1) == 0
+    ; pad for top and directly output to m12, m13
+    paddw                      m12, m8,  m8
+    paddw                      m13, m10, m10
+%else
+%if (%2)
+    ; pad for bottom
     paddw                       m8, m8
     paddw                      m10, m10
 %endif
 
     paddw                      m12, m8
     paddw                      m13, m10
+%endif
 %endmacro
 
 
@@ -321,9 +327,6 @@ INIT_YMM avx2
     movu                    m3, [src1q + 0 * SRC_STRIDE + SRC_PS]
     movu                    m4, [src1q + 1 * SRC_STRIDE + SRC_PS]
 
-    pxor                   m12, m12
-    pxor                   m13, m13
-
     BDOF_PROF_GRAD           0, 0
 %endif
 

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

Reply via email to