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

Git pushed a commit to branch master
in repository ffmpeg.

commit 84c8f55398a8ac6bc527e91471c3aa7c3a0416be
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue May 19 12:02:57 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Jun 11 16:27:47 2026 +0000

    swscale/ops_optimizer: simplify shuffle solver plane checks
    
    Using ff_sws_rw_op_planes(), to directly encode the relevant condition (i.e.
    physical access to multiple planes).
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops_optimizer.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libswscale/ops_optimizer.c b/libswscale/ops_optimizer.c
index 38483b96ac..4ee9fa3933 100644
--- a/libswscale/ops_optimizer.c
+++ b/libswscale/ops_optimizer.c
@@ -816,8 +816,7 @@ int ff_sws_solve_shuffle(const SwsOpList *const ops, 
uint8_t shuffle[],
         return AVERROR(EINVAL);
 
     const SwsOp *read = ff_sws_op_list_input(ops);
-    if (!read || read->rw.frac || read->rw.filter.op ||
-        (!read->rw.packed && read->rw.elems > 1))
+    if (!read || read->rw.frac || read->rw.filter.op || 
ff_sws_rw_op_planes(read) > 1)
         return AVERROR(ENOTSUP);
 
     const int read_size = ff_sws_pixel_type_size(read->type);
@@ -867,8 +866,7 @@ int ff_sws_solve_shuffle(const SwsOpList *const ops, 
uint8_t shuffle[],
         }
 
         case SWS_OP_WRITE: {
-            if (op->rw.frac || op->rw.filter.op ||
-                (!op->rw.packed && op->rw.elems > 1))
+            if (op->rw.frac || op->rw.filter.op || ff_sws_rw_op_planes(op) > 1)
                 return AVERROR(ENOTSUP);
 
             /* Initialize to no-op */

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

Reply via email to