summaryrefslogtreecommitdiff
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2013-04-26 14:47:08 +0200
committerJanne Grunau <janne-libav@jannau.net>2013-05-06 18:55:58 +0200
commitc1eb3e7fecdc270e03a700d61ef941600a6af491 (patch)
tree2a280b28311debfd7f8dc9812280473cd3eb0706 /libswscale/swscale.h
parent74652af821d7e526a6541876a637fbf81261fa8e (diff)
swscale: add support for endianness only conversion
Use bitfields in FormatEntry array to avoid wasting an int for each flag.
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 8ba09e6960..e69a69461b 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -141,6 +141,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
* sws_setColorspaceDetails().