diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-08 23:07:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-09 02:04:54 +0200 |
commit | cca81e7eb0e9e88fe652334038cc17a4cb92f78b (patch) | |
tree | 61f50d3d915e66d06598090ec22f57c161ac192b /libswscale/swscale_internal.h | |
parent | 085ea85c2ebdc293c54158d26f0ecb86ceefbcc9 (diff) | |
download | ffmpeg-cca81e7eb0e9e88fe652334038cc17a4cb92f78b.tar.gz |
sws: gbr24p input support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 1c9e62a79f..0e62b38bcc 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -592,6 +592,12 @@ const char *sws_format_name(enum PixelFormat format); || (x)==PIX_FMT_YUV422P16BE \ || (x)==PIX_FMT_YUV444P16BE \ ) + +#define isPlanar(x) ( \ + isPlanarYUV(x) \ + || (x)==PIX_FMT_GBR24P \ + ) + #define isYUV(x) ( \ (x)==PIX_FMT_UYVY422 \ || (x)==PIX_FMT_YUYV422 \ @@ -668,6 +674,7 @@ const char *sws_format_name(enum PixelFormat format); #define isAnyRGB(x) ( \ isRGBinInt(x) \ || isBGRinInt(x) \ + || (x)==PIX_FMT_GBR24P \ ) #define isALPHA(x) ( \ (x)==PIX_FMT_BGRA64BE \ @@ -687,7 +694,8 @@ const char *sws_format_name(enum PixelFormat format); || (x)==PIX_FMT_YUYV422 \ || (x)==PIX_FMT_UYVY422 \ || (x)==PIX_FMT_Y400A \ - || isAnyRGB(x) \ + || isRGBinInt(x) \ + || isBGRinInt(x) \ ) #define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) || (x) == PIX_FMT_GRAY8A) |