vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul 3 09:50:35 2019 +0200| [7dd6bc329dc8072d2b03f5bea7210adcca23cf7e] | committer: Steve Lhomme
decoder device: use a structure to read the opaque of VLC_DECODER_DEVICE_D3D11VA For now it's just a ID3D11DeviceContext but it might evolve into a ID3D11Device combined with an adapter LUID, or just the adapter LUID. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7dd6bc329dc8072d2b03f5bea7210adcca23cf7e --- include/vlc_codec.h | 2 +- modules/video_chroma/d3d11_fmt.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/vlc_codec.h b/include/vlc_codec.h index 06ba7a6910..28a65846d9 100644 --- a/include/vlc_codec.h +++ b/include/vlc_codec.h @@ -524,7 +524,7 @@ typedef struct vlc_decoder_device * VAAPI: VADisplay * VDPAU: vdp_t * * DXVA2: d3d9_decoder_device_t* - * D3D11VA: ID3D11DeviceContext* + * D3D11VA: d3d11_decoder_device_t* * AWindow: android AWindowHandler* * NVDEC: decoder_device_nvdec_t* * MMAL: MMAL_PORT_T* diff --git a/modules/video_chroma/d3d11_fmt.h b/modules/video_chroma/d3d11_fmt.h index 717609c425..0f2051c2e7 100644 --- a/modules/video_chroma/d3d11_fmt.h +++ b/modules/video_chroma/d3d11_fmt.h @@ -79,6 +79,11 @@ typedef struct DXGI_FORMAT formatTexture; } picture_sys_d3d11_t; +typedef struct +{ + ID3D11DeviceContext *device; +} d3d11_decoder_device_t; + /* index to use for texture/resource that use a known DXGI format * (ie not DXGI_FORMAT_UNKNWON) */ #define KNOWN_DXGI_INDEX 0 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
