D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS structure (d3d12video.h)

Represents data for a video decode statistics query invoked by calling ID3D12VideoDecodeCommandList::EndQuery.

Syntax

typedef struct D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS {
  UINT64        Status;
  UINT64        NumMacroblocksAffected;
  DXGI_RATIONAL FrameRate;
  UINT          BitRate;
} D3D12_QUERY_DATA_VIDEO_DECODE_STATISTICS;

Members

Status

A member of the D3D12_VIDEO_DECODE_STATUS enumeration indicating the video decoding status.

NumMacroblocksAffected

If Status is not 0, this member contains the accelerator's estimate of the number of super-blocks in the decoded frame that were adversely affected by the reported problem. If the accelerator does not provide an estimate, the value is D3D12_VIDEO_DECODE_MACROBLOCKS_AFFECTED_UNKNOWN (0xFFFFFFFFFFFFFFFF).

FrameRate

The decode frame rate.

BitRate

When the Status returned is D3D12_VIDEO_DECODE_STATUS_RATE_EXCEEDED, this field reports the bitrate that would succeed. This value may be used to recreate the decoder and try again. A value of zero here is valid to indicate that the worst case bit rate should be assumed.

For all other Status values, BitRate is set to zero.

Requirements

   
Header d3d12video.h