dxva: support DXGI_FORMAT_420_OPAQUE decoding
authorwm4 <nfxjfg@googlemail.com>
Thu, 22 Jun 2017 12:52:56 +0000 (14:52 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 26 Jun 2017 22:23:12 +0000 (00:23 +0200)
commit5030e3856c2126fb829edb828f5aae011d178eb4
tree42468d567d3fe69893e9d452cc7313e7ca21b79d
parent98d73e4174333b37d961b79e1182be5a02156c02
dxva: support DXGI_FORMAT_420_OPAQUE decoding

Some devices (some phones, apparently) will support only this opaque
format. Of course this won't work with CLI, because copying data
directly is not supported.

Automatic frame allocation (setting AVCodecContext.hw_device_ctx) does
not support this mode, even if it's the only supported mode. But since
opaque surfaces are generally less useful, that's probably ok.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/dxva2.c
libavutil/hwcontext_d3d11va.c
libavutil/hwcontext_d3d11va.h