]> git.sesse.net Git - ffmpeg/commit
dxva: support DXGI_FORMAT_420_OPAQUE decoding
authorwm4 <nfxjfg@googlemail.com>
Thu, 22 Jun 2017 12:52:56 +0000 (14:52 +0200)
committerwm4 <nfxjfg@googlemail.com>
Tue, 27 Jun 2017 16:05:02 +0000 (18:05 +0200)
commit8d7fdba7b8670db9dd5023dde6fe3a06674933c4
tree0a5731479f026e851bb1a0ea79f3517c83ae69ca
parent6f5ff3269b12776a32b12887128ba034ad86e08b
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.

Merges Libav commit 5030e3856c2126fb829edb828f5aae011d178eb4.

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