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

Git pushed a commit to branch master
in repository ffmpeg.

commit 4f6d5c1794e9583b5669e6c072dbd82697dbf19d
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Jun 20 16:23:39 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Tue Jun 23 11:48:13 2026 +0000

    swscale/uops: add a helper to print a comp mask as a string
    
    For debugging/logging purposes exclusively.
    
    Sponsored-by: Sovereign Tech Fund
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/uops.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libswscale/uops.h b/libswscale/uops.h
index 533d036ca6..0098c46e05 100644
--- a/libswscale/uops.h
+++ b/libswscale/uops.h
@@ -78,6 +78,19 @@ enum {
      ((W) ? SWS_COMP(3) : 0))
 };
 
+
+#define ff_sws_comp_mask_str(mask) ff_sws_comp_mask_print(mask, (char[5]){0})
+static inline char *ff_sws_comp_mask_print(SwsCompMask mask, char buf[5])
+{
+    char *ptr = buf;
+    for (int c = 0; c < 4; c++) {
+        if (SWS_COMP_TEST(mask, c))
+            *ptr++ = "xyzw"[c];
+    }
+    *ptr = '\0';
+    return buf;
+}
+
 typedef uint32_t SwsUOpFlags;
 typedef enum SwsUOpFlagBits {
     SWS_UOP_FLAG_NONE = 0,

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

Reply via email to