Expand Minimize

VideoDecoderSubmitBuffers function

Submits one or more video frame buffers for DirectX Video Acceleration (DXVA) decoding.

Syntax


HRESULT APIENTRY* VideoDecoderSubmitBuffers(
  _In_  D3D10DDI_HDEVICE hDevice,
  _In_  D3D11_1DDI_HDECODE hDecoder,
  _In_  UINT BufferCount,
  _In_  const D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC *pBufferDesc
);

Parameters

hDevice [in]

A handle to the display device (graphics context).

hDecoder [in]

A handle to the video decoder object that was created through a call to the CreateVideoDecoder function.

BufferCount [in]

The number of buffers in the array that is referenced by the pBufferDesc parameter.

pBufferDesc [in]

A pointer to an array of one or more D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC structures. For more information, see the Remarks section.

Return value

VideoDecoderSubmitBuffers returns one of the following values:

Return codeDescription
S_OK

The video buffers were submitted successfully.

E_OUTOFMEMORY

Memory was not available to complete the operation.

 

Remarks

The pBufferDesc parameter points to an array of one or more D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC structures. Each element in the array describes a compressed video frame buffer that is submitted for decoding.

Each D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC structure includes the following data:

  • The resource that will receive the decrypted and decode frame buffers.

  • A D3D11_1DDI_ENCRYPTED_BLOCK_INFO structure that specifies which bytes of the frame buffer are encrypted.

  • 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.

    Note  If the decode buffer does not contain any encrypted data, this pointer is set to NULL.

Note  This function does not honor a Microsoft Direct3D 11 predicate that may have been set.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateVideoDecoder
D3D11_1DDI_AES_CTR_IV
D3D11_1DDI_ENCRYPTED_BLOCK_INFO
D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft