summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-07 19:07:47 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-07 19:07:47 +0000
commit8e9767f6fd43a74bb52cd67893c4dd4528477a19 (patch)
tree4732eaed3bb71843e94c29017867ffb11ede170c /libswscale/swscale.c
parent31c194e7f9483cb067c31bb64bc0d719e2823e25 (diff)
downloadffmpeg-streaming-8e9767f6fd43a74bb52cd67893c4dd4528477a19.zip
ffmpeg-streaming-8e9767f6fd43a74bb52cd67893c4dd4528477a19.tar.gz
Implement sws_isSupportedInput() and sws_isSupportedOutput().
Originally committed as revision 30236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index c19b0b7..f4a65b2 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -157,6 +157,12 @@ const char *swscale_license(void)
|| (x)==PIX_FMT_YUV422P16BE \
|| (x)==PIX_FMT_YUV444P16BE \
)
+
+int sws_isSupportedInput(enum PixelFormat pix_fmt)
+{
+ return isSupportedIn(pix_fmt);
+}
+
#define isSupportedOut(x) ( \
(x)==PIX_FMT_YUV420P \
|| (x)==PIX_FMT_YUVA420P \
@@ -181,6 +187,12 @@ const char *swscale_license(void)
|| (x)==PIX_FMT_YUV422P16BE \
|| (x)==PIX_FMT_YUV444P16BE \
)
+
+int sws_isSupportedOutput(enum PixelFormat pix_fmt)
+{
+ return isSupportedOut(pix_fmt);
+}
+
#define isPacked(x) ( \
(x)==PIX_FMT_PAL8 \
|| (x)==PIX_FMT_YUYV422 \
OpenPOWER on IntegriCloud