[vlc-commits] d3d11va: fill the formatTexture in the context
Steve Lhomme
git at videolan.org
Tue Aug 22 08:47:58 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Sat Aug 19 08:55:27 2017 +0200| [ed80814ae5f75659b64a1b1edfc5bbd769e2210f] | committer: Jean-Baptiste Kempf
d3d11va: fill the formatTexture in the context
It might be used by the vout to determine if it's I420 or not
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed80814ae5f75659b64a1b1edfc5bbd769e2210f
---
modules/codec/avcodec/d3d11va.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 8987b42220..be9b649ddd 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -209,6 +209,11 @@ static struct va_pic_context *CreatePicContext(
goto done;
pic_ctx->s.destroy = d3d11_pic_context_destroy;
pic_ctx->s.copy = d3d11_pic_context_copy;
+
+ D3D11_TEXTURE2D_DESC txDesc;
+ ID3D11Texture2D_GetDesc((ID3D11Texture2D*)p_resource, &txDesc);
+
+ pic_ctx->picsys.formatTexture = txDesc.Format;
pic_ctx->picsys.context = context;
pic_ctx->picsys.slice_index = slice;
pic_ctx->picsys.decoder = decoderSurface;
More information about the vlc-commits
mailing list