diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-09 17:48:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-09 18:04:46 +0200 |
commit | 0f9d46b70d2ac6ca7fd883f19f8aa540a55ae9b8 (patch) | |
tree | 01bf9b6eb4b6c578a2da895cb7071650008471fb /libswscale/utils.c | |
parent | c5ebeaa3085bef608a1ec76e8e6b24e6e98c428a (diff) | |
download | ffmpeg-0f9d46b70d2ac6ca7fd883f19f8aa540a55ae9b8.tar.gz |
swscale/alphablend: Support chroma subsampling
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 653440e047..1f4dc7d692 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -987,9 +987,9 @@ static enum AVPixelFormat alphaless_fmt(enum AVPixelFormat fmt) case AV_PIX_FMT_ABGR: return AV_PIX_FMT_BGR24; case AV_PIX_FMT_BGRA: return AV_PIX_FMT_BGR24; case AV_PIX_FMT_YA8: return AV_PIX_FMT_GRAY8; -// -// case AV_PIX_FMT_YUVA420P: return AV_PIX_FMT_YUV420P; -// case AV_PIX_FMT_YUVA422P: return AV_PIX_FMT_YUV422P; + + case AV_PIX_FMT_YUVA420P: return AV_PIX_FMT_YUV420P; + case AV_PIX_FMT_YUVA422P: return AV_PIX_FMT_YUV422P; case AV_PIX_FMT_YUVA444P: return AV_PIX_FMT_YUV444P; case AV_PIX_FMT_GBRAP: return AV_PIX_FMT_GBRP; @@ -1005,23 +1005,23 @@ static enum AVPixelFormat alphaless_fmt(enum AVPixelFormat fmt) case AV_PIX_FMT_YA16BE: return AV_PIX_FMT_GRAY16; case AV_PIX_FMT_YA16LE: return AV_PIX_FMT_GRAY16; -// case AV_PIX_FMT_YUVA420P9BE: return AV_PIX_FMT_YUV420P9; -// case AV_PIX_FMT_YUVA422P9BE: return AV_PIX_FMT_YUV422P9; + case AV_PIX_FMT_YUVA420P9BE: return AV_PIX_FMT_YUV420P9; + case AV_PIX_FMT_YUVA422P9BE: return AV_PIX_FMT_YUV422P9; case AV_PIX_FMT_YUVA444P9BE: return AV_PIX_FMT_YUV444P9; -// case AV_PIX_FMT_YUVA420P9LE: return AV_PIX_FMT_YUV420P9; -// case AV_PIX_FMT_YUVA422P9LE: return AV_PIX_FMT_YUV422P9; + case AV_PIX_FMT_YUVA420P9LE: return AV_PIX_FMT_YUV420P9; + case AV_PIX_FMT_YUVA422P9LE: return AV_PIX_FMT_YUV422P9; case AV_PIX_FMT_YUVA444P9LE: return AV_PIX_FMT_YUV444P9; -// case AV_PIX_FMT_YUVA420P10BE: return AV_PIX_FMT_YUV420P10; -// case AV_PIX_FMT_YUVA422P10BE: return AV_PIX_FMT_YUV422P10; + case AV_PIX_FMT_YUVA420P10BE: return AV_PIX_FMT_YUV420P10; + case AV_PIX_FMT_YUVA422P10BE: return AV_PIX_FMT_YUV422P10; case AV_PIX_FMT_YUVA444P10BE: return AV_PIX_FMT_YUV444P10; -// case AV_PIX_FMT_YUVA420P10LE: return AV_PIX_FMT_YUV420P10; -// case AV_PIX_FMT_YUVA422P10LE: return AV_PIX_FMT_YUV422P10; + case AV_PIX_FMT_YUVA420P10LE: return AV_PIX_FMT_YUV420P10; + case AV_PIX_FMT_YUVA422P10LE: return AV_PIX_FMT_YUV422P10; case AV_PIX_FMT_YUVA444P10LE: return AV_PIX_FMT_YUV444P10; -// case AV_PIX_FMT_YUVA420P16BE: return AV_PIX_FMT_YUV420P16; -// case AV_PIX_FMT_YUVA422P16BE: return AV_PIX_FMT_YUV422P16; + case AV_PIX_FMT_YUVA420P16BE: return AV_PIX_FMT_YUV420P16; + case AV_PIX_FMT_YUVA422P16BE: return AV_PIX_FMT_YUV422P16; case AV_PIX_FMT_YUVA444P16BE: return AV_PIX_FMT_YUV444P16; -// case AV_PIX_FMT_YUVA420P16LE: return AV_PIX_FMT_YUV420P16; -// case AV_PIX_FMT_YUVA422P16LE: return AV_PIX_FMT_YUV422P16; + case AV_PIX_FMT_YUVA420P16LE: return AV_PIX_FMT_YUV420P16; + case AV_PIX_FMT_YUVA422P16LE: return AV_PIX_FMT_YUV422P16; case AV_PIX_FMT_YUVA444P16LE: return AV_PIX_FMT_YUV444P16; // case AV_PIX_FMT_AYUV64LE: |