diff options
author | Mathieu Velten <matmaul@gmail.com> | 2016-12-05 21:32:59 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2016-12-05 22:12:34 +0000 |
commit | 49e8e5fc563453f476a26d1f98ba08f423eedb3c (patch) | |
tree | a1070636b801e8c351811418a6378d24829d4198 /libavcodec/vp9.c | |
parent | b1f630f1a6b0b4bae56ae17f98647550e80114f5 (diff) | |
download | ffmpeg-49e8e5fc563453f476a26d1f98ba08f423eedb3c.tar.gz |
avcodec/vaapi-vp9: add support for profile 2 (bpp > 8)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 793e3568fe..09365f833a 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -258,7 +258,8 @@ static int update_size(AVCodecContext *ctx, int w, int h) if ((res = ff_set_dimensions(ctx, w, h)) < 0) return res; - if (s->pix_fmt == AV_PIX_FMT_YUV420P) { + switch (s->pix_fmt) { + case AV_PIX_FMT_YUV420P: #if CONFIG_VP9_DXVA2_HWACCEL *fmtp++ = AV_PIX_FMT_DXVA2_VLD; #endif @@ -268,6 +269,13 @@ static int update_size(AVCodecContext *ctx, int w, int h) #if CONFIG_VP9_VAAPI_HWACCEL *fmtp++ = AV_PIX_FMT_VAAPI; #endif + break; + case AV_PIX_FMT_YUV420P10: + case AV_PIX_FMT_YUV420P12: +#if CONFIG_VP9_VAAPI_HWACCEL + *fmtp++ = AV_PIX_FMT_VAAPI; +#endif + break; } *fmtp++ = s->pix_fmt; |