D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0082_0 structure (d3d12umddi.h)

The D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0082_0 structure represents the metadata of the output of an encoding operation. Use D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 for full video encoding feature support for Windows 11 (WDDM 3.0).

Syntax

typedef struct D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0082_0 {
  D3D12DDI_VIDEO_ENCODER_ENCODE_ERROR_FLAGS_0082_0 EncodeErrorFlags;
  UINT64                                           EncodedBitstreamWrittenBytesCount;
  UINT                                             WrittenSubregionsCount;
} D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0082_0;

Members

EncodeErrorFlags

A UINT64 value that represents flag(s) from the D3D12DDI_VIDEO_ENCODER_ENCODE_ERROR_FLAGS_0082_0 enumeration that specify information about the encode execution status.

EncodedBitstreamWrittenBytesCount

The number of bytes that were written into D3D12DDI_VIDEO_ENCODER_COMPRESSED_BITSTREAM_0080.hDrvBuffer plus D3D12DDI_VIDEO_ENCODER_COMPRESSED_BITSTREAM_0080.Offset.

WrittenSubregionsCount

The number of sub-regions used to encode the current frame. This value must be coherent with the settings specified in D3D12DDI_VIDEO_ENCODER_SEQUENCE_CONTROL_DESC_0082_0.FrameSubregionsLayoutData; that is, if a number of sub-regions was previously specified, WrittenSubregionsCount should match that value. If another mode was used, the driver uses this field to report the final number of sub-regions. If the output is one full frame, then there is only one sub-region.

Remarks

Use D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 for full video encoding feature support for Windows 11 (WDDM 3.0).

Requirements

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