// d3d10umddi.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
Describes a compressed buffer for Microsoft DirectX Video Acceleration (DXVA) decoding.
hResourceA handle to the resource that will receive the decrypted and decode frame buffers.
BufferTypeThe 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.
BufferIndexReserved for system use.
DataOffsetThe offset of the relevant data from the beginning of the buffer, in bytes. This value must be zero.
DataSizeThe offset of the relevant data from the beginning of the buffer, in bytes. This value must be zero.
FirstMBaddressThe macroblock address of the first macroblock in the buffer. The macroblock address is given in raster scan order.
NumMBsInBufferThe number of macroblocks of data in the buffer. This count includes skipped macroblocks.
WidthReserved for system use. Set to zero.
HeightReserved for system use. Set to zero.
StrideReserved for system use. Set to zero.
ReservedBitsReserved for system use. Set to zero.
pIVA 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.
IVSizeThe size of the buffer specified in the pIV member. If pIV is NULL, set this member to zero.
PartialEncryptionIf TRUE, the video surfaces are partially encrypted.
EncryptedBlockInfoA D3D11_1DDI_ENCRYPTED_BLOCK_INFO structure that specifies which bytes of the surface are encrypted.
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;
D3D11_DDI_VIDEO_DECODER_BUFFER_TYPE
D3D11_1DDI_ENCRYPTED_BLOCK_INFO