Commit cd1e4351 authored by michael's avatar michael

Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30434 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 60da978e
...@@ -411,6 +411,22 @@ const char *sws_format_name(enum PixelFormat format); ...@@ -411,6 +411,22 @@ const char *sws_format_name(enum PixelFormat format);
|| (x)==PIX_FMT_MONOBLACK \ || (x)==PIX_FMT_MONOBLACK \
|| (x)==PIX_FMT_MONOWHITE \ || (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) ( \ #define isALPHA(x) ( \
(x)==PIX_FMT_BGR32 \ (x)==PIX_FMT_BGR32 \
|| (x)==PIX_FMT_BGR32_1 \ || (x)==PIX_FMT_BGR32_1 \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment