D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS structure (d3d12video.h)

Represents the video encoder resolution support limits for a D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT structure.

Syntax

typedef struct D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS {
  UINT MaxSubregionsNumber;
  UINT MaxIntraRefreshFrameDuration;
  UINT SubregionBlockPixelsSize;
  UINT QPMapRegionPixelsSize;
} D3D12_FEATURE_DATA_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS;

Members

MaxSubregionsNumber

The maximum number of subregions per frame supported by the encoder for the associated resolution. For the mode D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_BYTES_PER_SUBREGION this value must be the absolute maximum limit of subregions per frame to be coded.

MaxIntraRefreshFrameDuration

The maximum number that can be used in D3D12_VIDEO_ENCODER_INTRA_REFRESH.IntraRefreshDuration for the associated resolution.

SubregionBlockPixelsSize

The size in pixels of the squared regions that will be used to partition the frame for the subregion layout (e.g. slices) semantics for the associated resolution. The resolution of the frame will be rounded up to be aligned to this value when it's partitioned in blocks. The configuration of the subregion partitioning will use a number of squared subregions, that have their size in pixels according to the returned value in this argument.

Note

For HEVC, this indicates the resolution block alignment for the compressed bitstream. For example: If SubregionBlockPixelsSize = 32, then SPS.pic_width/height_in_luma_samples must be aligned to this value and SPS.conf_win_*_offset/conformance_window_flag indicate the difference between this aligned resolution and the current frame resolution indicated by D3D12_RESOURCE_DESC.Dimension of the input video texture. SubregionBlockPixelsSize must be aligned to D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_SUPPORT_HEVC.MinLumaCodingUnitSize (minCUSize), so SPS.pic_width/height_in_luma_samples ends up aligned to minCUSize as required by the HEVC codec spec.

QPMapRegionPixelsSize

The size in pixels of the squared regions for the associated resolution that will be affected by each of the values in the QP map buffer in absolute or delta QP modes. The resolution of the frame will be rounded up to be aligned to this value when it's partitioned in blocks for QP maps and the number of QP values in those maps will be the number of blocks of these indicated pixel size that comprise a full frame.

Requirements

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