This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 1d0fd7fabfb1e259415da3bffdd1ac0fcd67f8bf Author: Niklas Haas <[email protected]> AuthorDate: Tue Dec 16 13:59:04 2025 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Sat Dec 20 13:52:45 2025 +0000 swscale/ops: categorize ops by type compatibility This is a more useful grouping than the previous, somewhat arbitrary one. --- libswscale/ops.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/libswscale/ops.h b/libswscale/ops.h index d1a15294d1..fe072c1fe7 100644 --- a/libswscale/ops.h +++ b/libswscale/ops.h @@ -43,26 +43,28 @@ bool ff_sws_pixel_type_is_int(SwsPixelType type) av_const; typedef enum SwsOpType { SWS_OP_INVALID = 0, - /* Input/output handling */ + /* Defined for all types; but implemented for integers only */ SWS_OP_READ, /* gather raw pixels from planes */ SWS_OP_WRITE, /* write raw pixels to planes */ SWS_OP_SWAP_BYTES, /* swap byte order (for differing endianness) */ + SWS_OP_SWIZZLE, /* rearrange channel order, or duplicate channels */ + + /* Bit manipulation operations. Defined for integers only. */ SWS_OP_UNPACK, /* split tightly packed data into components */ SWS_OP_PACK, /* compress components into tightly packed data */ - - /* Pixel manipulation */ - SWS_OP_CLEAR, /* clear pixel values */ SWS_OP_LSHIFT, /* logical left shift of raw pixel values by (u8) */ SWS_OP_RSHIFT, /* right shift of raw pixel values by (u8) */ - SWS_OP_SWIZZLE, /* rearrange channel order, or duplicate channels */ - SWS_OP_CONVERT, /* convert (cast) between formats */ - SWS_OP_DITHER, /* add dithering noise */ - /* Arithmetic operations */ - SWS_OP_LINEAR, /* generalized linear affine transform */ - SWS_OP_SCALE, /* multiplication by scalar (q) */ + /* Generic arithmetic. Defined and implemented for all types */ + SWS_OP_CLEAR, /* clear pixel values */ + SWS_OP_CONVERT, /* convert (cast) between formats */ SWS_OP_MIN, /* numeric minimum (q4) */ SWS_OP_MAX, /* numeric maximum (q4) */ + SWS_OP_SCALE, /* multiplication by scalar (q) */ + + /* Floating-point only arithmetic operations. */ + SWS_OP_LINEAR, /* generalized linear affine transform */ + SWS_OP_DITHER, /* add dithering noise */ SWS_OP_TYPE_NB, } SwsOpType; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
