]> git.sesse.net Git - ffmpeg/commitdiff
Add macro to check for 16bit per sample.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 21 Apr 2009 00:03:00 +0000 (00:03 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 Apr 2009 00:03:00 +0000 (00:03 +0000)
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale_internal.h

index 3552e92657f973261ae77a65c9f262a6551cb59f..5c56ffe7ba8d1a1c5088f48476efe81ac16d6962 100644 (file)
@@ -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     \