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

Git pushed a commit to branch master
in repository ffmpeg.

commit 05d3983277a7fed5e07163179fd270f8e12a8d6c
Author:     Ramiro Polla <[email protected]>
AuthorDate: Mon Oct 19 15:46:53 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Tue Nov 10 15:05:12 2026 +0000

    swscale/ops_dispatch: record CPU flags on passes
    
    Copy the informative CPU flags of the compiled op list to the pass, so
    that tests can tell which implementation a conversion ended up using.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Ramiro Polla <[email protected]>
---
 libswscale/graph.h        | 1 +
 libswscale/ops_dispatch.c | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libswscale/graph.h b/libswscale/graph.h
index 7380a991ce..e1e2a79547 100644
--- a/libswscale/graph.h
+++ b/libswscale/graph.h
@@ -92,6 +92,7 @@ struct SwsPass {
      */
     SwsPassFunc run;
     SwsBackend backend; /* backend this pass is using, or 0 */
+    int cpu_flags;      /* CPU flags used by the backend (informative) */
     enum AVPixelFormat format; /* new pixel format */
     int lines;         /* pass dispatch size */
     int slice_h;       /* filter granularity */
diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index bfc776c43a..129251daf1 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -571,7 +571,8 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
                                     input, 0, c.slice_align, c.func_opaque,
                                     NULL, c.priv, c.free, output);
         if (ret >= 0) {
-            (*output)->backend = c.backend->flags;
+            (*output)->backend   = c.backend->flags;
+            (*output)->cpu_flags = c.cpu_flags;
             op_list_get_plane_copy(ops, *output);
             ff_sws_pass_link_output(*output, link);
         }
@@ -689,7 +690,8 @@ static int compile_single(const CompileArgs *args, const 
SwsOpList *ops,
     if (ret < 0)
         return ret;
 
-    (*output)->backend = comp->backend->flags;
+    (*output)->backend   = comp->backend->flags;
+    (*output)->cpu_flags = comp->cpu_flags;
     op_list_get_plane_copy(ops, *output);
     ff_sws_pass_link_output(*output, link);
     align_pass(*output, comp->block_size, comp->over_write, p->pixel_bits_out);

-- 
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