changeset 29174:d467f9cc89c6

Add macro to check for 16bit per sample.
author michael
date Tue, 21 Apr 2009 00:03:00 +0000
parents dbf9cf2438b0
children c8e33abc6488
files libswscale/swscale_internal.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_internal.h	Tue Apr 21 00:01:59 2009 +0000
+++ b/libswscale/swscale_internal.h	Tue Apr 21 00:03:00 2009 +0000
@@ -291,6 +291,10 @@
 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     \