ID3D12VideoDevice2::CreateVideoDecoder1 method (d3d12video.h)

Creates a video decoder instance that contains the resolution-independent driver resources and state, with support for protected resources.

Syntax

HRESULT CreateVideoDecoder1(
  const D3D12_VIDEO_DECODER_DESC *pDesc,
  ID3D12ProtectedResourceSession *pProtectedResourceSession,
  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.

pProtectedResourceSession

A ID3D12ProtectedResourceSession for managing access to protected resources.

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 ID3D12VideoDecoder1 interface.

Return value

This method returns HRESULT.

Remarks

Decoding a new stream requires instantiating a new decoder object.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header d3d12video.h