Bewerken

Delen via


D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC structure (d3d10umddi.h)

Describes a compressed buffer for Microsoft DirectX Video Acceleration (DXVA) decoding.

Syntax

typedef struct D3D11_1DDI_VIDEO_DECODERR_BUFFER_DESC {
  D3D10DDI_HRESOURCE                   hResource;
  D3D11_1DDI_VIDEO_DECODER_BUFFER_TYPE BufferType;
  UINT                                 BufferIndex;
  UINT                                 DataOffset;
  UINT                                 DataSize;
  UINT                                 FirstMBaddress;
  UINT                                 NumMBsInBuffer;
  UINT                                 Width;
  UINT                                 Height;
  UINT                                 Stride;
  UINT                                 ReservedBits;
  void                                 *pIV;
  UINT                                 IVSize;
  BOOL                                 PartialEncryption;
  D3D11_1DDI_ENCRYPTED_BLOCK_INFO      EncryptedBlockInfo;
} D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC;

Members

hResource

A handle to the resource that will receive the decrypted and decode frame buffers.

BufferType

The type of buffer, specified as a constant value of the D3D11_DDI_VIDEO_DECODER_BUFFER_TYPE enumeration.

In D3d10umddi.h, D3D11_DDI_VIDEO_DECODER_BUFFER_TYPE and D3D11_1DDI_VIDEO_DECODER_BUFFER_TYPE are defined as the same type.

BufferIndex

Reserved for system use.

DataOffset

The offset of the relevant data from the beginning of the buffer, in bytes. This value must be zero.

DataSize

The offset of the relevant data from the beginning of the buffer, in bytes. This value must be zero.

FirstMBaddress

The macroblock address of the first macroblock in the buffer. The macroblock address is given in raster scan order.

NumMBsInBuffer

The number of macroblocks of data in the buffer. This count includes skipped macroblocks.

Width

Reserved for system use. Set to zero.

Height

Reserved for system use. Set to zero.

Stride

Reserved for system use. Set to zero.

ReservedBits

Reserved for system use. Set to zero.

pIV

A pointer to a D3D11_1DDI_AES_CTR_IV structure that contains an initialization vector (IV) for the frame buffer data that was encrypted by using the 128-bit Advanced Encryption Standard CTR mode (AES-CTR) block cipher encryption algorithm.

If the decode buffer does not contain any encrypted data, set pIV to NULL.

IVSize

The size of the buffer specified in the pIV member. If pIV is NULL, set this member to zero.

PartialEncryption

If TRUE, the video surfaces are partially encrypted.

EncryptedBlockInfo

A D3D11_1DDI_ENCRYPTED_BLOCK_INFO structure that specifies which bytes of the surface are encrypted.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Header d3d10umddi.h (include D3d10umddi.h)

See also

D3D11_DDI_VIDEO_DECODER_BUFFER_TYPE

D3D11_1DDI_AES_CTR_IV

D3D11_1DDI_ENCRYPTED_BLOCK_INFO