D3D12_VIDEO_ENCODER_DESC structure (d3d12video.h)

Describes an ID3D12VideoEncoder. Pass this structure into ID3D12VideoDevice3::CreateVideoEncoder to create an instance of ID3D12VideoEncoder.

Syntax

typedef struct D3D12_VIDEO_ENCODER_DESC {
  UINT                                                 NodeMask;
  D3D12_VIDEO_ENCODER_FLAGS                            Flags;
  D3D12_VIDEO_ENCODER_CODEC                            EncodeCodec;
  D3D12_VIDEO_ENCODER_PROFILE_DESC                     EncodeProfile;
  DXGI_FORMAT                                          InputFormat;
  D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION              CodecConfiguration;
  D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE MaxMotionEstimationPrecision;
} D3D12_VIDEO_ENCODER_DESC;

Members

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.

Flags

A bitwise OR combination of values from the D3D12_VIDEO_ENCODER_FLAGS specifying the flags for encoder creation.

EncodeCodec

A D3D12_VIDEO_ENCODER_CODEC specifying the desired codec.

EncodeProfile

A D3D12_VIDEO_ENCODER_PROFILE_DESC structure specifying the desired encoding profile.

InputFormat

A DXGI_FORMAT specifying the format of the source stream.

CodecConfiguration

A D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION structure specifying codec configuration parameters.

MaxMotionEstimationPrecision

A value from the D3D12_VIDEO_ENCODER_MOTION_ESTIMATION_PRECISION_MODE enumeration the maximum number of motion vectors allowed.

Requirements

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