From c1eb3e7fecdc270e03a700d61ef941600a6af491 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Fri, 26 Apr 2013 14:47:08 +0200 Subject: swscale: add support for endianness only conversion Use bitfields in FormatEntry array to avoid wasting an int for each flag. --- libswscale/swscale.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libswscale/swscale.h') diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 8ba09e6960..e69a69461b 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -140,6 +140,13 @@ int sws_isSupportedInput(enum AVPixelFormat pix_fmt); */ int sws_isSupportedOutput(enum AVPixelFormat pix_fmt); +/** + * @param[in] pix_fmt the pixel format + * @return a positive value if an endianness conversion for pix_fmt is + * supported, 0 otherwise. + */ +int sws_isSupportedEndiannessConversion(enum AVPixelFormat pix_fmt); + /** * Allocate an empty SwsContext. This must be filled and passed to * sws_init_context(). For filling see AVOptions, options.c and -- cgit v1.2.3