aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-09-24 15:11:49 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-09-24 15:11:49 +0000
commit79973335d3eaf7c969b553f1ec4b889f011887d7 (patch)
tree27968cf6dce55c0fd2c0bcc396746dd9c13a3f91 /libswscale/swscale.c
parentb70335a28d88068cf0dea8789308d6670cb0162e (diff)
downloadffmpeg-79973335d3eaf7c969b553f1ec4b889f011887d7.tar.gz
add support for yuva420p colorspace (yuv420p + alpha)
Originally committed as revision 24601 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 196a34756e..8e061daea5 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -102,6 +102,7 @@ untested special converters
#define isSupportedIn(x) ( \
(x)==PIX_FMT_YUV420P \
+ || (x)==PIX_FMT_YUVA420P \
|| (x)==PIX_FMT_YUYV422 \
|| (x)==PIX_FMT_UYVY422 \
|| (x)==PIX_FMT_RGB32 \
@@ -280,6 +281,8 @@ char *sws_format_name(enum PixelFormat format)
switch (format) {
case PIX_FMT_YUV420P:
return "yuv420p";
+ case PIX_FMT_YUVA420P:
+ return "yuva420p";
case PIX_FMT_YUYV422:
return "yuyv422";
case PIX_FMT_RGB24:
@@ -1877,6 +1880,7 @@ static void getSubSampleFactors(int *h, int *v, int format){
*v=0;
break;
case PIX_FMT_YUV420P:
+ case PIX_FMT_YUVA420P:
case PIX_FMT_GRAY16BE:
case PIX_FMT_GRAY16LE:
case PIX_FMT_GRAY8: //FIXME remove after different subsamplings are fully implemented