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

Git pushed a commit to branch master
in repository ffmpeg.

commit 17a9a59333469cf98dc7459f47968b160422dca3
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Jun 12 12:13:39 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Jul 14 12:24:01 2026 +0000

    swscale/x86/ops: avoid direct reliance on `ops` metadata
    
    Instead, use the new metadata introduced in the previous commit. The
    motivating reason here is a desire to stop taking a direct SwsOpList from
    the backends altogether.
    
    In theory, we could still recover this information from the `uops` list
    itself, but that would require far more boilerplate than simply having
    uops.c generate it using existing SwsOpsList helpers.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 31c2199622..60550b7ff4 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -611,7 +611,7 @@ static int compile(SwsContext *ctx, const SwsOpList *ops, 
SwsCompiledOp *out)
 
     *out = (SwsCompiledOp) {
         /* Use at most two full YMM regs during the widest precision section */
-        .block_size  = 2 * FFMIN(mmsize, 32) / ff_sws_op_list_max_size(ops),
+        .block_size  = 2 * FFMIN(mmsize, 32) / uops->pixel_size_max,
         .slice_align = 1,
         .free        = ff_sws_op_chain_free_cb,
         .priv        = chain,
@@ -634,11 +634,7 @@ static int compile(SwsContext *ctx, const SwsOpList *ops, 
SwsCompiledOp *out)
             goto fail;
     }
 
-    const SwsOp *read      = ff_sws_op_list_input(ops);
-    const SwsOp *write     = ff_sws_op_list_output(ops);
-    const int read_planes  = read ? ff_sws_rw_op_planes(read) : 0;
-    const int write_planes = ff_sws_rw_op_planes(write);
-    switch (FFMAX(read_planes, write_planes)) {
+    switch (av_popcount(uops->planes_in | uops->planes_out)) {
     case 1: out->func = ff_sws_process1_x86; break;
     case 2: out->func = ff_sws_process2_x86; break;
     case 3: out->func = ff_sws_process3_x86; break;

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

Reply via email to