From f7f1835258595596b7493d3add8c6a2f7f2cdcde Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 24 Nov 2011 12:21:03 -0800 Subject: swscale: fix failing fate tests. isGray() is left as a FIXME for later. --- libswscale/swscale_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libswscale/swscale_internal.h') diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index b20e0a34e0..7bfdc7eb6b 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -552,9 +552,18 @@ const char *sws_format_name(enum PixelFormat format); #define isRGB(x) \ (av_pix_fmt_descriptors[x].flags & PIX_FMT_RGB) +#if 0 // FIXME #define isGray(x) \ (!(av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) && \ av_pix_fmt_descriptors[x].nb_components <= 2) +#else +#define isGray(x) ( \ + (x)==PIX_FMT_GRAY8 \ + || (x)==PIX_FMT_Y400A \ + || (x)==PIX_FMT_GRAY16BE \ + || (x)==PIX_FMT_GRAY16LE \ + ) +#endif #define isRGBinInt(x) ( \ (x)==PIX_FMT_RGB48BE \ -- cgit v1.2.3