You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-04-24 04:44:54 +02:00
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 <git@haasn.dev>
This commit is contained in:
+1
-1
@@ -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),
|
||||
|
||||
@@ -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) |\
|
||||
|
||||
Reference in New Issue
Block a user