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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4f9a85d44c3fb32298f4c6afc0a7467ce39dbbc7
Author:     Niklas Haas <[email protected]>
AuthorDate: Sun Oct 25 12:08:52 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Oct 27 18:53:16 2026 +0000

    swscale/aarch64/ops: skip over masked SWS_UOP_LINEAR rows
    
    These are entirely unneeded; prerequisite to the following fix, which fixes
    the wrong `zero` mask for the masked identity rows.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/aarch64/ops.c      | 2 +-
 libswscale/aarch64/ops_impl.h | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/libswscale/aarch64/ops.c b/libswscale/aarch64/ops.c
index 6bfe1824e9..1497352ad4 100644
--- a/libswscale/aarch64/ops.c
+++ b/libswscale/aarch64/ops.c
@@ -83,7 +83,7 @@ static int aarch64_setup_linear(const SwsAArch64OpImplParams 
*p,
      * The same order must be followed in asmgen_op_linear().
      */
     int i_coeff = 0;
-    for (int i = 0; i < 4; i++) {
+    LOOP_MASK(p, i) {
         for (int j = 0; j < 5; j++) {
             const int jj = (j == 0) ? 4 : (j - 1);
             if (!(p->par.lin.zero & SWS_MASK(i, jj))) {
diff --git a/libswscale/aarch64/ops_impl.h b/libswscale/aarch64/ops_impl.h
index c9ad019cfe..ff3181f396 100644
--- a/libswscale/aarch64/ops_impl.h
+++ b/libswscale/aarch64/ops_impl.h
@@ -73,9 +73,11 @@ static inline int linear_vreg_nelems(SwsPixelType type)
 static inline int linear_num_vregs(const SwsAArch64OpImplParams *params)
 {
     int count = 0;
-    for (int i = 0; i < 4 * 5; i++)
-        if (!(params->par.lin.zero & (1ULL << i)))
-            count++;
+    LOOP_MASK(params, i) {
+        for (int j = 0; j < 5; j++)
+            if (!(params->par.lin.zero & SWS_MASK(i, j)))
+                count++;
+    }
     const int nelems = linear_vreg_nelems(params->type);
     return (count + nelems - 1) / nelems;
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to