Commit 716f3ca0 authored by Steve Lhomme's avatar Steve Lhomme

decoder device: the D3D9 device needs to store a IDirect3D9 and an adapter

So we use a structure for that.

Unlike D3D11, the IDirect3D9 isn't tied to an adapter, but to communicate with
external rendering it can only be done on the same adapter they use. So we need
both information.
parent 29d98e78
......@@ -523,7 +523,7 @@ typedef struct vlc_decoder_device
* The type of pointer will depend of the type:
* VAAPI: VADisplay
* VDPAU: vdp_t *
* DXVA2: IDirect3DDevice9*
* DXVA2: d3d9_decoder_device_t*
* D3D11VA: ID3D11DeviceContext*
* AWindow: android AWindowHandler*
* NVDEC: decoder_device_nvdec_t*
......@@ -66,6 +66,12 @@ typedef struct
D3DCAPS9 caps;
} d3d9_device_t;
typedef struct
IDirect3D9 *device;
int adapter;
} d3d9_decoder_device_t;
static inline bool is_d3d9_opaque(vlc_fourcc_t chroma)
switch (chroma)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment