D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT structure (d3d12video.h)

Provides data for calls to ID3D12VideoDevice::CheckFeatureSupport when the feature specified is D3D12_FEATURE_VIDEO_ENCODER_INPUT_FORMAT. Retrieves a value indicating if the specified codec, profile, and format are supported for video encoding.

Syntax

typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT {
  UINT                             NodeIndex;
  D3D12_VIDEO_ENCODER_CODEC        Codec;
  D3D12_VIDEO_ENCODER_PROFILE_DESC Profile;
  DXGI_FORMAT                      Format;
  BOOL                             IsSupported;
} D3D12_FEATURE_DATA_VIDEO_ENCODER_INPUT_FORMAT;

Members

NodeIndex

In multi-adapter operation, this indicates which physical adapter of the device this operation applies to.

Codec

A member of the D3D12_VIDEO_ENCODER_CODEC enumeration specifying the codec for which support is being queried.

Profile

A member of the D3D12_VIDEO_ENCODER_CODEC enumeration specifying the profile for which support is being queried.

Format

A member of the DXGI_FORMAT enumeration specifying the pixel format for which support is being queried. This format definition includes the subsampling and bit-depth modes settings for the video encoding session.

To query encoder support for 4:2:0 with 8 and 10 bitdepth samples using following values for the Format field:

  • DXGI_FORMAT_P010
  • DXGI_FORMAT_NV12

Note

The host is expected to handle the input subsampling and color conversion stages of video encoding.

IsSupported

Receives a boolean value indicating if the specified codec, profile, and format are supported.

Requirements

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