summaryrefslogtreecommitdiffstats
path: root/libavcodec/libvpx.c
diff options
context:
space:
mode:
authorVignesh Venkatasubramanian <vigneshv-at-google.com@ffmpeg.org>2016-06-30 16:16:31 -0700
committerJames Zern <jzern@google.com>2016-07-12 23:19:50 -0700
commitacca56d9629b7fc158ce188190d22314c3d92c39 (patch)
tree1f0a2f59e519273e3b5ca6887c738f09cfef3135 /libavcodec/libvpx.c
parent7af44ce2f7c2f7eac5f0bfbc08872cc6b250ccae (diff)
downloadffmpeg-streaming-acca56d9629b7fc158ce188190d22314c3d92c39.zip
ffmpeg-streaming-acca56d9629b7fc158ce188190d22314c3d92c39.tar.gz
libvpx: Enable vp9 alpha encoding
Chrome canary now supports decoding of VP9 streams with alpha channel [1]. Add support to ffmpeg for creating such files. [1] https://codereview.chromium.org/2096813002/ Reviewed-by: James Zern <jzern@google.com> Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Diffstat (limited to 'libavcodec/libvpx.c')
-rw-r--r--libavcodec/libvpx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libvpx.c b/libavcodec/libvpx.c
index 55edc7e..1eca97a 100644
--- a/libavcodec/libvpx.c
+++ b/libavcodec/libvpx.c
@@ -29,12 +29,14 @@
static const enum AVPixelFormat vp9_pix_fmts_def[] = {
AV_PIX_FMT_YUV420P,
+ AV_PIX_FMT_YUVA420P,
AV_PIX_FMT_NONE
};
#if CONFIG_LIBVPX_VP9_ENCODER
static const enum AVPixelFormat vp9_pix_fmts_highcol[] = {
AV_PIX_FMT_YUV420P,
+ AV_PIX_FMT_YUVA420P,
AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUV444P,
@@ -46,6 +48,7 @@ static const enum AVPixelFormat vp9_pix_fmts_highcol[] = {
static const enum AVPixelFormat vp9_pix_fmts_highbd[] = {
AV_PIX_FMT_YUV420P,
+ AV_PIX_FMT_YUVA420P,
AV_PIX_FMT_YUV422P,
AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUV444P,
OpenPOWER on IntegriCloud