changeset 24581:a7fe1ee84511

add support for yuva420p colorspace (yuv420p + alpha)
author aurel
date Mon, 24 Sep 2007 15:11:49 +0000
parents 12da4c8bcb53
children 6d5999a6b4e2
files libswscale/swscale.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Mon Sep 24 09:13:02 2007 +0000
+++ b/libswscale/swscale.c	Mon Sep 24 15:11:49 2007 +0000
@@ -102,6 +102,7 @@
 
 #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 @@
     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 @@
         *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