ID3D12VideoDevice::CreateVideoDecoder method (d3d12video.h)

Creates a video decoder instance that contains the resolution-independent driver resources and state.

Syntax

HRESULT CreateVideoDecoder(
  const D3D12_VIDEO_DECODER_DESC *pDesc,
  REFIID                         riid,
  void                           **ppVideoDecoder
);

Parameters

pDesc

A pointer to a D3D12_VIDEO_DECODER_DESC structure describing the decode profile and bitstream encryption for the decoder.

riid

The globally unique identifier (GUID) for the decode video state interface.

ppVideoDecoder

A pointer to a memory block that receives a pointer to the ID3D12VideoDecoder interface.

Return value

This method returns HRESULT.

Remarks

Decoding a new stream requires instantiating a new decoder object.

Requirements

Requirement Value
Header d3d12video.h
DLL d3d12.dll