diff libswscale/swscale_internal.h @ 32308:ecb8e52d4add

Y400A (gray alpha) input support in libswscale
author bcoudurier
date Mon, 27 Sep 2010 22:24:03 +0000
parents b90559772910
children
line wrap: on
line diff
--- a/libswscale/swscale_internal.h	Mon Sep 27 20:10:53 2010 +0000
+++ b/libswscale/swscale_internal.h	Mon Sep 27 22:24:03 2010 +0000
@@ -378,6 +378,7 @@
     )
 #define isGray(x)       (           \
            (x)==PIX_FMT_GRAY8       \
+        || (x)==PIX_FMT_Y400A      \
         || (x)==PIX_FMT_GRAY16BE    \
         || (x)==PIX_FMT_GRAY16LE    \
     )
@@ -440,9 +441,10 @@
         || (x)==PIX_FMT_BGR32_1     \
         || (x)==PIX_FMT_RGB32       \
         || (x)==PIX_FMT_RGB32_1     \
+        || (x)==PIX_FMT_Y400A       \
         || (x)==PIX_FMT_YUVA420P    \
     )
-#define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)
+#define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) || (x) == PIX_FMT_Y400A)
 
 extern const uint64_t ff_dither4[2];
 extern const uint64_t ff_dither8[2];