Browse Source

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.
pull/95/head
Steve Lhomme 7 years ago
parent
commit
716f3ca06e
  1. 2
      include/vlc_codec.h
  2. 6
      modules/video_chroma/d3d9_fmt.h

2
include/vlc_codec.h

@ -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*

6
modules/video_chroma/d3d9_fmt.h

@ -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)

Loading…
Cancel
Save