// d3d10umddi.h
typedef struct D3DWDDM2_0DDI_VIDEO_DECODER_BUFFER_DESC1 {
D3D10DDI_HRESOURCE hResource;
D3D11_1DDI_VIDEO_DECODER_BUFFER_TYPE BufferType;
UINT DataOffset;
UINT DataSize;
void *pIV;
UINT IVSize;
D3DWDDM2_0DDI_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK *pSubSampleMappingBlock;
UINT SubSampleMappingCount;
} D3DWDDM2_0DDI_VIDEO_DECODER_BUFFER_DESC1;
View the official Windows Driver Kit DDI referenceNo description available.
D3DWDDM2_0DDI_VIDEO_DECODER_BUFFER_DESC1 is used with VideoDecoderSubmitBuffers1 to submit one or more buffer for decoding.
hResourceA handle to the resource object that was created through a call to CreateResource.
BufferTypeThe type of buffer, specified as a member of the D3D11_1DDI_VIDEO_DECODER_BUFFER_TYPE enumeration.
DataOffsetThe offset of the relevant data from the beginning of the buffer, in bytes.
Important This value must be zero.
DataSizeSize of the relevant data.
pIVA 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.
IVSizeThe size of the buffer specified in the pIV member. If pIV is NULL, set this member to zero.
pSubSampleMappingBlockA pointer to an array of D3DWDDM2_0DDI_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK structures, which indicate exactly which bytes in the decode buffer are encrypted and which are in the clear. If the decode buffer does not contain encrypted data, set this member to NULL.
Values in the sub sample mapping blocks are relative to the start of the decode buffer.
SubSampleMappingCountThe number of D3DWDDM2_0DDI_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK structures specified in the pSubSampleMappingBlocks member. If pSubSampleMappingBLocks is NULL, set this member to zero.
D3DWDDM2_0DDI_VIDEO_DECODER_SUB_SAMPLE_MAPPING_BLOCK