ID3D12VideoDevice::CreateVideoProcessor method (d3d12video.h)

Creates a video processor instance.

Syntax

HRESULT CreateVideoProcessor(
  UINT                                         NodeMask,
  const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC *pOutputStreamDesc,
  UINT                                         NumInputStreamDescs,
  const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC  *pInputStreamDescs,
  REFIID                                       riid,
  void                                         **ppVideoProcessor
);

Parameters

NodeMask

The node mask specifying the physical adapter on which the video processor will be used. For single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node, i.e. the device's physical adapter, to which the command queue applies. Each bit in the mask corresponds to a single node. Only 1 bit may be set.

pOutputStreamDesc

A pointer to a D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC(ns-d3d12video-d3d12_video_process_output_stream_desc) structure describing the output stream.

NumInputStreamDescs

The number of input streams provided in the pInputStreamDescs parameter.

pInputStreamDescs

A pointer to a list of D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC(ns-d3d12video-d3d12_video_process_input_stream_desc) structures the input streams. The number of structures provided should match the value specified in the NumInputStreamDescs parameter.

riid

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

ppVideoProcessor

A pointer to a memory block that receives a pointer to the ID3D12VideoProcessor interface

Return value

This method returns HRESULT.

Remarks

To change the parameters set during creation, you must recreate the video processor object.

Requirements

   
Header d3d12video.h
DLL d3d12.dll