From 6af2801088aef6dd7aa688e88073f13bc7a8a4f4 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 2 Jun 2011 22:45:16 -0700 Subject: swscale: split swscale.c in unscaled and generic conversion routines. This duplicates the function fillPlane(). --- libswscale/swscale_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libswscale/swscale_internal.h') diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 678d6d5797..6aaa843015 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -464,6 +464,13 @@ const char *sws_format_name(enum PixelFormat format); || (x)==PIX_FMT_Y400A \ || (x)==PIX_FMT_YUVA420P \ ) +#define isPacked(x) ( \ + (x)==PIX_FMT_PAL8 \ + || (x)==PIX_FMT_YUYV422 \ + || (x)==PIX_FMT_UYVY422 \ + || (x)==PIX_FMT_Y400A \ + || isAnyRGB(x) \ + ) #define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL) || (x) == PIX_FMT_Y400A) extern const uint64_t ff_dither4[2]; -- cgit v1.2.3