OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c89734
)
Add an isALPHA macro to check if pixel format has alpha channel
author
Cédric Schieli
<cschieli@gmail.com>
Fri, 27 Feb 2009 22:23:20 +0000
(22:23 +0000)
committer
Cédric Schieli
<cschieli@gmail.com>
Fri, 27 Feb 2009 22:23:20 +0000
(22:23 +0000)
Originally committed as revision 28747 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale_internal.h
patch
|
blob
|
history
diff --git
a/libswscale/swscale_internal.h
b/libswscale/swscale_internal.h
index
cf15742
..
cdf3754
100644
(file)
--- a/
libswscale/swscale_internal.h
+++ b/
libswscale/swscale_internal.h
@@
-273,6
+273,13
@@
const char *sws_format_name(int format);
|| (x)==PIX_FMT_MONOBLACK \
|| (x)==PIX_FMT_MONOWHITE \
)
+#define isALPHA(x) ( \
+ (x)==PIX_FMT_BGR32 \
+ || (x)==PIX_FMT_BGR32_1 \
+ || (x)==PIX_FMT_RGB32 \
+ || (x)==PIX_FMT_RGB32_1 \
+ || (x)==PIX_FMT_YUVA420P \
+ )
static inline int fmt_depth(int fmt)
{