Bewerken

Delen via


PFND3D11_1DDI_VIDEODECODERSUBMITBUFFERS callback function (d3d10umddi.h)

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

Syntax

PFND3D11_1DDI_VIDEODECODERSUBMITBUFFERS Pfnd3d111DdiVideodecodersubmitbuffers;

HRESULT Pfnd3d111DdiVideodecodersubmitbuffers(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11_1DDI_HDECODE unnamedParam2,
  UINT unnamedParam3,
  const D3D11_1DDI_VIDEO_DECODER_BUFFER_DESC *unnamedParam4
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hDecoder [in]

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

unnamedParam3

BufferCount [in]

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

unnamedParam4

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 code Description
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

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
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