diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-02-14 03:46:17 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2016-02-17 09:07:12 -0800 |
commit | 2d1f42089c31cd3238129303b13e1aa5ddfcfce2 (patch) | |
tree | 44ce8f27aafea244cbfd576c385cbc026d79184d /video/out/opengl/context_dxinterop.c | |
parent | 084162d6fe9033cb3499a7013a2489a70e1aed93 (diff) | |
download | mpv-2d1f42089c31cd3238129303b13e1aa5ddfcfce2.tar.bz2 mpv-2d1f42089c31cd3238129303b13e1aa5ddfcfce2.tar.xz |
vo_opengl: dxinterop: add dxva2 passthrough
Use dxva2 surface to fill RGB IDirect3DSurface9 shared with opengl via
DXRegisterObjectNV.
Diffstat (limited to 'video/out/opengl/context_dxinterop.c')
-rw-r--r-- | video/out/opengl/context_dxinterop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/context_dxinterop.c b/video/out/opengl/context_dxinterop.c index ff7eed6654..b4d999165e 100644 --- a/video/out/opengl/context_dxinterop.c +++ b/video/out/opengl/context_dxinterop.c @@ -580,6 +580,9 @@ static int dxinterop_init(struct MPGLContext *ctx, int flags) DwmEnableMMCSS(TRUE); + ctx->native_display_type = "IDirect3DDevice9Ex"; + ctx->native_display = p->device; + return 0; fail: dxinterop_uninit(ctx); |