Commit 79973335 authored by Aurelien Jacobs's avatar Aurelien Jacobs
Browse files

add support for yuva420p colorspace (yuv420p + alpha)

Originally committed as revision 24601 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent b70335a2
...@@ -102,6 +102,7 @@ untested special converters ...@@ -102,6 +102,7 @@ untested special converters
#define isSupportedIn(x) ( \ #define isSupportedIn(x) ( \
(x)==PIX_FMT_YUV420P \ (x)==PIX_FMT_YUV420P \
|| (x)==PIX_FMT_YUVA420P \
|| (x)==PIX_FMT_YUYV422 \ || (x)==PIX_FMT_YUYV422 \
|| (x)==PIX_FMT_UYVY422 \ || (x)==PIX_FMT_UYVY422 \
|| (x)==PIX_FMT_RGB32 \ || (x)==PIX_FMT_RGB32 \
...@@ -280,6 +281,8 @@ char *sws_format_name(enum PixelFormat format) ...@@ -280,6 +281,8 @@ char *sws_format_name(enum PixelFormat format)
switch (format) { switch (format) {
case PIX_FMT_YUV420P: case PIX_FMT_YUV420P:
return "yuv420p"; return "yuv420p";
case PIX_FMT_YUVA420P:
return "yuva420p";
case PIX_FMT_YUYV422: case PIX_FMT_YUYV422:
return "yuyv422"; return "yuyv422";
case PIX_FMT_RGB24: case PIX_FMT_RGB24:
...@@ -1877,6 +1880,7 @@ static void getSubSampleFactors(int *h, int *v, int format){ ...@@ -1877,6 +1880,7 @@ static void getSubSampleFactors(int *h, int *v, int format){
*v=0; *v=0;
break; break;
case PIX_FMT_YUV420P: case PIX_FMT_YUV420P:
case PIX_FMT_YUVA420P:
case PIX_FMT_GRAY16BE: case PIX_FMT_GRAY16BE:
case PIX_FMT_GRAY16LE: case PIX_FMT_GRAY16LE:
case PIX_FMT_GRAY8: //FIXME remove after different subsamplings are fully implemented case PIX_FMT_GRAY8: //FIXME remove after different subsamplings are fully implemented
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment