D3D11_VIDEO_DECODER_BUFFER_DESC structure (d3d11.h)

Describes a compressed buffer for decoding.

Syntax

typedef struct D3D11_VIDEO_DECODER_BUFFER_DESC {
  D3D11_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_ENCRYPTED_BLOCK_INFO      EncryptedBlockInfo;
} D3D11_VIDEO_DECODER_BUFFER_DESC;

Members

BufferType

The type of buffer, specified as a member of the D3D11_VIDEO_DECODER_BUFFER_TYPE enumeration.

BufferIndex

Reserved.

DataOffset

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

DataSize

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. Set to zero.

Height

Reserved. Set to zero.

Stride

Reserved. Set to zero.

ReservedBits

Reserved. Set to zero.

pIV

A pointer to a buffer that contains an initialization vector (IV) for encrypted data. If the decode buffer does not contain encrypted data, set this member to NULL.

IVSize

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

PartialEncryption

If TRUE, the video surfaces are partially encrypted.

EncryptedBlockInfo

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

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Header d3d11.h

See also

Direct3D 11 Video Structures

ID3D11VideoContext::SubmitDecoderBuffers