From 8e9767f6fd43a74bb52cd67893c4dd4528477a19 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 7 Jan 2010 19:07:47 +0000 Subject: Implement sws_isSupportedInput() and sws_isSupportedOutput(). Originally committed as revision 30236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'libswscale/swscale.h') 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, \ @@ -122,6 +122,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. -- cgit v1.2.3