aboutsummaryrefslogtreecommitdiff
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer2009-04-21 00:03:00 +0000
committerMichael Niedermayer2009-04-21 00:03:00 +0000
commit714f32bf15f5474acb806153db349743f7394b0a (patch)
tree8b882253d3e9f34f58920cac1a91a1f0f003def9 /libswscale/swscale_internal.h
parentb87fae9f56409ea32723def555e4e04b27899508 (diff)
Add macro to check for 16bit per sample.
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 3552e92657..5c56ffe7ba 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -291,6 +291,10 @@ void ff_yuv2packedX_altivec(SwsContext *c,
const char *sws_format_name(int format);
//FIXME replace this with something faster
+#define is16BPS(x) ( \
+ (x)==PIX_FMT_GRAY16BE \
+ || (x)==PIX_FMT_GRAY16LE \
+ )
#define isBE(x) ((x)&1)
#define isPlanarYUV(x) ( \
(x)==PIX_FMT_YUV410P \