]> git.sesse.net Git - ffmpeg/commit
lavu: add new D3D11 pixfmt and hwcontext
authorwm4 <nfxjfg@googlemail.com>
Tue, 6 Jun 2017 16:51:07 +0000 (18:51 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 8 Jun 2017 18:55:36 +0000 (20:55 +0200)
commitfff90422d181744cd75dbf011687ee7095f02875
treebaf3a67a4a273d268544cd9fdcbc6a38df44cc3f
parented434be106a4615e0419b3ac7664220741afda2d
lavu: add new D3D11 pixfmt and hwcontext

To be used with the new d3d11 hwaccel decode API.

With the new hwaccel API, we don't want surfaces to depend on the
decoder (other than the required dimension and format). The old D3D11VA
pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the
decoder configuration, and thus is incompatible with the new hwaccel
API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D
and an index. It's simpler and compatible with the new hwaccel API.

The introduced hwcontext supports only the new pixfmt.

Frame upload code untested.

Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with
heavy changes/rewrites.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
doc/APIchanges
libavutil/Makefile
libavutil/hwcontext.c
libavutil/hwcontext.h
libavutil/hwcontext_d3d11va.c [new file with mode: 0644]
libavutil/hwcontext_d3d11va.h [new file with mode: 0644]
libavutil/hwcontext_internal.h
libavutil/pixdesc.c
libavutil/pixfmt.h
libavutil/version.h