diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-06-02 22:45:16 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-06-03 09:52:09 -0700 |
commit | 6af2801088aef6dd7aa688e88073f13bc7a8a4f4 (patch) | |
tree | 892c00a3ee7e30b30dc29fc98ab75457ac0f4ed5 /libswscale/swscale_internal.h | |
parent | 2762ee30347afd3c1d2795a232c8b78d56a44b0f (diff) | |
download | ffmpeg-6af2801088aef6dd7aa688e88073f13bc7a8a4f4.tar.gz |
swscale: split swscale.c in unscaled and generic conversion routines.
This duplicates the function fillPlane().
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
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]; |