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

Git pushed a commit to branch master
in repository ffmpeg.

commit 812b5654ae6f56ce59418ef4259227d8c9c08b06
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri May 15 19:41:15 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sun May 17 10:41:34 2026 +0000

    swscale/tests/sws_ops: use SWS_SCALE_BILINEAR for printing ops lists
    
    This actually changes the behavior vs SWS_SCALE_POINT, because point scaling
    is bit-exact and thus implies a different set of optimizations.
    
    Ideally, we would still try and somehow merge this with tests/swscale.c to
    allow testing a different set of scalers; but I still don't have a good idea
    for how to accomplish that here.
    
    As it stands, results in additional extra dithering steps in almost all
    filters involving scaling, e.g.:
    
     rgb24 16x16 -> rgb24 16x32:
       [ u8 +++X] SWS_OP_READ         : 3 elem(s) packed >> 0
         min: {0 0 0 _}, max: {255 255 255 _}
    -  [ u8 +++X] SWS_OP_FILTER_V     : 16 -> 32 point (1 taps)
    +  [ u8 ...X] SWS_OP_FILTER_V     : 16 -> 32 bilinear (2 taps)
         min: {0 0 0 _}, max: {255 255 255 _}
    +  [f32 ...X] SWS_OP_DITHER       : 16x16 matrix + {0 3 2 -1}
    +    min: {1/512 1/512 1/512 _}, max: {255.998047 255.998047 255.998047 _}
    +  [f32 ...X] SWS_OP_MIN          : x <= {255 255 255 _}
    +    min: {1/512 1/512 1/512 _}, max: {255 255 255 _}
       [f32 +++X] SWS_OP_CONVERT      : f32 -> u8
         min: {0 0 0 _}, max: {255 255 255 _}
       [ u8 XXXX] SWS_OP_WRITE        : 3 elem(s) packed >> 0
         (X = unused, z = byteswapped, + = exact, 0 = zero)
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/tests/sws_ops.c  | 2 +-
 tests/ref/fate/sws-ops-list | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/tests/sws_ops.c b/libswscale/tests/sws_ops.c
index afdbcd1942..63e779bba4 100644
--- a/libswscale/tests/sws_ops.c
+++ b/libswscale/tests/sws_ops.c
@@ -226,7 +226,7 @@ bad_option:
     SwsContext *ctx = sws_alloc_context();
     if (!ctx)
         goto fail;
-    ctx->scaler = SWS_SCALE_POINT; /* reduce filter generation overhead */
+    ctx->scaler = SWS_SCALE_BILINEAR; /* reduce filter generation overhead */
 
     av_log_set_callback(log_stdout);
 
diff --git a/tests/ref/fate/sws-ops-list b/tests/ref/fate/sws-ops-list
index 68bba31c71..533b5e178e 100644
--- a/tests/ref/fate/sws-ops-list
+++ b/tests/ref/fate/sws-ops-list
@@ -1 +1 @@
-440662113582c9b7bdb3edbb6310be88
+8481a9658f6f61c8f7a72edc2ba42b5b

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

Reply via email to