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

Git pushed a commit to branch master
in repository ffmpeg.

commit af2674645fca2c72af33d5aa60ff6a7a074a2b44
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Apr 7 14:36:18 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Thu Apr 16 23:24:55 2026 +0200

    swscale/ops: drop offset from SWS_MASK_ALPHA
    
    This is far more commonly used without an offset than with; so having it 
there
    prevents these special cases from actually doing much good.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/ops.h             | 2 +-
 libswscale/x86/ops_float.asm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/ops.h b/libswscale/ops.h
index 4d908edba2..86bf3312e6 100644
--- a/libswscale/ops.h
+++ b/libswscale/ops.h
@@ -216,7 +216,7 @@ typedef struct SwsLinearOp {
 enum {
     SWS_MASK_ALL   = (1 << 20) - 1,
     SWS_MASK_LUMA  = SWS_MASK(0, 0) | SWS_MASK_OFF(0),
-    SWS_MASK_ALPHA = SWS_MASK(3, 3) | SWS_MASK_OFF(3),
+    SWS_MASK_ALPHA = SWS_MASK(3, 3),
 
     SWS_MASK_DIAG3 = SWS_MASK(0, 0)  | SWS_MASK(1, 1)  | SWS_MASK(2, 2),
     SWS_MASK_OFF3  = SWS_MASK_OFF(0) | SWS_MASK_OFF(1) | SWS_MASK_OFF(2),
diff --git a/libswscale/x86/ops_float.asm b/libswscale/x86/ops_float.asm
index 4f09ab846e..2d36f6686e 100644
--- a/libswscale/x86/ops_float.asm
+++ b/libswscale/x86/ops_float.asm
@@ -292,7 +292,7 @@ op dither%1
 %xdefine MASK_COL(J) (0x8421 << J)
 %xdefine MASK_ALL    (1 << 20) - 1
 %xdefine MASK_LUMA   MASK(0, 0) | MASK_OFF(0)
-%xdefine MASK_ALPHA  MASK(3, 3) | MASK_OFF(3)
+%xdefine MASK_ALPHA  MASK(3, 3)
 %xdefine MASK_DIAG3  MASK(0, 0) | MASK(1, 1) | MASK(2, 2)
 %xdefine MASK_OFF3   MASK_OFF(0) | MASK_OFF(1) | MASK_OFF(2)
 %xdefine MASK_MAT3   MASK(0, 0) | MASK(0, 1) | MASK(0, 2) |\

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

Reply via email to