[FFmpeg-cvslog] r29215 - trunk/libswscale/swscale_internal.h

michael subversion
Tue Apr 21 02:03:01 CEST 2009


Author: michael
Date: Tue Apr 21 02:03:00 2009
New Revision: 29215

Log:
Add macro to check for 16bit per sample.

Modified:
   trunk/libswscale/swscale_internal.h

Modified: trunk/libswscale/swscale_internal.h
==============================================================================
--- trunk/libswscale/swscale_internal.h	Tue Apr 21 02:01:59 2009	(r29214)
+++ trunk/libswscale/swscale_internal.h	Tue Apr 21 02:03:00 2009	(r29215)
@@ -291,6 +291,10 @@ void ff_yuv2packedX_altivec(SwsContext *
 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     \



More information about the ffmpeg-cvslog mailing list