diff options
author | Hans-Kristian Arntzen <maister@archlinux.us> | 2011-11-06 10:43:47 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2012-04-03 13:06:42 -0400 |
commit | b991b300f2d60f7726cdc2b15fd12591b89dc972 (patch) | |
tree | 26ef402eb0a3b9f2930bd234fa40db05c84a66a3 /libswscale/swscale_internal.h | |
parent | 0aaa45ef6962d8aee467fb11ed5c154cbad3de66 (diff) | |
download | ffmpeg-b991b300f2d60f7726cdc2b15fd12591b89dc972.tar.gz |
Unscaled Planar RGB -> RGB support in swscale.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 29fe4ff2c6..aa56aa70db 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -627,6 +627,14 @@ const char *sws_format_name(enum PixelFormat format); (av_pix_fmt_descriptors[x].nb_components >= 2 && \ (av_pix_fmt_descriptors[x].flags & PIX_FMT_PLANAR)) +#define isPackedRGB(x) \ + ((av_pix_fmt_descriptors[x].flags & \ + (PIX_FMT_PLANAR | PIX_FMT_RGB)) == PIX_FMT_RGB) + +#define isPlanarRGB(x) \ + ((av_pix_fmt_descriptors[x].flags & \ + (PIX_FMT_PLANAR | PIX_FMT_RGB)) == (PIX_FMT_PLANAR | PIX_FMT_RGB)) + #define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) || \ (av_pix_fmt_descriptors[x].flags & PIX_FMT_PSEUDOPAL) || \ (x) == PIX_FMT_Y400A) |