summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-07 19:07:47 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-07 19:07:47 +0000
commit3f1a03feb15344188a8213854246d42db38314ac (patch)
tree663b1fd7836238e57b065e89e298dc803441ad81 /libswscale/swscale.h
parent0d3adaac4b00282b2bad126d4be07d093d22ceb3 (diff)
downloadmpv-3f1a03feb15344188a8213854246d42db38314ac.tar.bz2
mpv-3f1a03feb15344188a8213854246d42db38314ac.tar.xz
Implement sws_isSupportedInput() and sws_isSupportedOutput().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30236 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index d4761d0692..958d0244ae 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -30,8 +30,8 @@
#include "libavutil/avutil.h"
#define LIBSWSCALE_VERSION_MAJOR 0
-#define LIBSWSCALE_VERSION_MINOR 7
-#define LIBSWSCALE_VERSION_MICRO 2
+#define LIBSWSCALE_VERSION_MINOR 8
+#define LIBSWSCALE_VERSION_MICRO 0
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \
@@ -123,6 +123,18 @@ typedef struct {
struct SwsContext;
/**
+ * Returns a positive value if pix_fmt is a supported input format, 0
+ * otherwise.
+ */
+int sws_isSupportedInput(enum PixelFormat pix_fmt);
+
+/**
+ * Returns a positive value if pix_fmt is a supported output format, 0
+ * otherwise.
+ */
+int sws_isSupportedOutput(enum PixelFormat pix_fmt);
+
+/**
* Frees the swscaler context swsContext.
* If swsContext is NULL, then does nothing.
*/