Commit 7e20c8f5 authored by Hendrik Leppkes's avatar Hendrik Leppkes

avcodec/vp9: add profile 2 10-bit DXVA2/D3D11 decoding support

Fixes trac ticket #7099.
parent b4159d95
...@@ -188,6 +188,7 @@ static int update_size(AVCodecContext *avctx, int w, int h) ...@@ -188,6 +188,7 @@ static int update_size(AVCodecContext *avctx, int w, int h)
switch (s->pix_fmt) { switch (s->pix_fmt) {
case AV_PIX_FMT_YUV420P: case AV_PIX_FMT_YUV420P:
case AV_PIX_FMT_YUV420P10:
#if CONFIG_VP9_DXVA2_HWACCEL #if CONFIG_VP9_DXVA2_HWACCEL
*fmtp++ = AV_PIX_FMT_DXVA2_VLD; *fmtp++ = AV_PIX_FMT_DXVA2_VLD;
#endif #endif
...@@ -202,7 +203,6 @@ static int update_size(AVCodecContext *avctx, int w, int h) ...@@ -202,7 +203,6 @@ static int update_size(AVCodecContext *avctx, int w, int h)
*fmtp++ = AV_PIX_FMT_VAAPI; *fmtp++ = AV_PIX_FMT_VAAPI;
#endif #endif
break; break;
case AV_PIX_FMT_YUV420P10:
case AV_PIX_FMT_YUV420P12: case AV_PIX_FMT_YUV420P12:
#if CONFIG_VP9_NVDEC_HWACCEL #if CONFIG_VP9_NVDEC_HWACCEL
*fmtp++ = AV_PIX_FMT_CUDA; *fmtp++ = AV_PIX_FMT_CUDA;
......
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