D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES_0080 structure (d3d12umddi.h)

The D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES_0080 structure defines subregions as slices for codecs that support this partitioning mode.

Syntax

typedef struct D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES_0080 {
  union {
    UINT MaxBytesPerSlice;
    UINT NumberOfCodingUnitsPerSlice;
    UINT NumberOfRowsPerSlice;
    UINT NumberOfSlicesPerFrame;
  };
} D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES_0080;

Members

MaxBytesPerSlice

This member is used exclusively with VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_0080_BYTES_PER_SUBREGION. MaxBytesPerSlice specifies the maximum number of bytes per slice to be used.

NumberOfCodingUnitsPerSlice

This member is used exclusively with D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_0080_SQUARE_UNITS_PER_SUBREGION_ROW_UNALIGNED. NumberOfCodingUnitsPerSlice specifies the number of squared blocks to be used per slice. The size in pixels of the squared regions can be calculated using the current resolution and SubregionBlockPixelsSize for the current frame resolution.

NumberOfRowsPerSlice

This member is used exclusively with D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_0080_UNIFORM_PARTITIONING_ROWS_PER_SUBREGION. NumberofRowsPerSlice specifies the number of squared blocks rows per slice for the frame to be divided into. The size in pixels of the squared regions can be calculated using the current resolution and SubregionBlockPixelsSize for the current frame resolution.

NumberOfSlicesPerFrame

This member is used exclusively with D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_0080_UNIFORM_PARTITIONING_SUBREGIONS_PER_FRAME. NumberOfSlicesPerFrame specifies the number of slices to divide the frame into.

Remarks

For modes that imply a fixed number of slices, the number of slices selected must be less than MaxSubregionsNumber and the selected resolution.

See D3D12 video encoding for general information.

Requirements

Requirement Value
Minimum supported client Windows 11 (WDDM 3.0)
Header d3d12umddi.h

See also

*D3D12DDI_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE_0080

D3D12DDI_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_0080_2

D3D12DDI_VIDEO_ENCODER_RESOLUTION_SUPPORT_LIMITS_0080_2