D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 structure (d3d12umddi.h)

The D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 structure represents the metadata of the output of an encoding operation.

Syntax

typedef struct D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 {
  UINT64                                            EncodeErrorFlags;
  D3D12DDI_VIDEO_ENCODER_METADATA_STATISTICS_0083_0 EncodeStats;
  UINT64                                            EncodedBitstreamWrittenBytesCount;
  UINT64                                            WrittenSubregionsCount;
} D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_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.

EncodeStats

A D3D12DDI_VIDEO_ENCODER_METADATA_STATISTICS_0083_0 structure that provides statistics about the encode execution.

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

D3D12DDI_VIDEO_ENCODER_OUTPUT_METADATA_0083_0 and its child structures are aligned to a 64-bit access boundary for use with PFND3D12DDI_SET_PREDICATION.

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_RESOLVE_METADATA_OUTPUT_ARGUMENTS_0082_0

PFND3D12DDI_VIDEO_ENCODE_FRAME_0082_0

PFND3D12DDI_VIDEO_ENCODE_RESOLVE_OUTPUT_METADATA_0082_0

PFND3D12DDI_SET_PREDICATION