Bewerken

Delen via


D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072 structure (d3d12umddi.h)

Retrieves the memory allocation size of a video decoder heap created with the given properties.

Syntax

typedef struct D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072 {
  UINT                                     NodeMask;
  D3D12DDI_VIDEO_DECODE_CONFIGURATION_0020 Configuration;
  UINT                                     DecodeWidth;
  UINT                                     DecodeHeight;
  DXGI_FORMAT                              Format;
  DXGI_RATIONAL                            FrameRate;
  UINT                                     BitRate;
  UINT                                     MaxDecodePictureBufferCount;
  BOOL                                     Protected;
  UINT64                                   MemoryPoolL0Size;
  UINT64                                   MemoryPoolL1Size;
} D3D12DDI_VIDEO_DECODER_HEAP_SIZE_DATA_0072;

Members

NodeMask

For a single GPU operation, set this to zero. If there are multiple GPU nodes, set a bit to identify the node (the device's physical adapter) to which the command queue applies. Each bit in the mask corresponds to a single node. Only 1 bit may be set.

Configuration

A D3D12DDI_VIDEO_DECODE_CONFIGURATION structure with the decode profile and bitstream encryption.

DecodeWidth

The decode width of the bitstream to be decoded.

DecodeHeight

The decode height of the bitstream to be decoded.

Format

The resource data format.

FrameRate

The frame rate of the input video stream.

BitRate

The bits per second data compression rate for the compressed video stream.

MaxDecodePictureBufferCount

The maximum number of decode picture buffers that this stream can have.

Protected

If TRUE, the decoder is created with a protected resource session and used with protected resources.

MemoryPoolL0Size

The L0 size of the heap object. Memory Pool L0 is the memory pool “closest” to the GPU. In the case of UMA adapters, this is the amount of system memory used. For discrete adapters, this is the amount of discrete memory used.

MemoryPoolL1Size

The L1 size of the heap object. Memory Pool L1 is the memory pool “second closest” to the GPU. In the case of UMA adapters, this value is zero. In the case of discrete adapters, this is the amount of system memory used.

Remarks

This structure is for the D3D12DDICAPS_TYPE_VIDEO_0032_DECODER_HEAP_SIZE capability check in D3D12DDICAPS_TYPE_VIDEO_0020.

See the D3D Video Protected Resource Support Specification for more information.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Header d3d12umddi.h

See also

D3D12DDI_VIDEO_DECODE_CONFIGURATION

D3D12DDICAPS_TYPE_VIDEO_0020