mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.
Originally committed as revision 30434 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
3b1ee70312
commit
81858371d9
@ -411,6 +411,22 @@ const char *sws_format_name(enum PixelFormat format);
|
||||
|| (x)==PIX_FMT_MONOBLACK \
|
||||
|| (x)==PIX_FMT_MONOWHITE \
|
||||
)
|
||||
#define isRGBinBytes(x) ( \
|
||||
(x)==PIX_FMT_RGB48BE \
|
||||
|| (x)==PIX_FMT_RGB48LE \
|
||||
|| (x)==PIX_FMT_RGBA \
|
||||
|| (x)==PIX_FMT_ARGB \
|
||||
|| (x)==PIX_FMT_RGB24 \
|
||||
)
|
||||
#define isBGRinBytes(x) ( \
|
||||
(x)==PIX_FMT_BGRA \
|
||||
|| (x)==PIX_FMT_ABGR \
|
||||
|| (x)==PIX_FMT_BGR24 \
|
||||
)
|
||||
#define isAnyRGB(x) ( \
|
||||
isRGBinInt(x) \
|
||||
|| isBGRinInt(x) \
|
||||
)
|
||||
#define isALPHA(x) ( \
|
||||
(x)==PIX_FMT_BGR32 \
|
||||
|| (x)==PIX_FMT_BGR32_1 \
|
||||
|
Loading…
Reference in New Issue
Block a user