// d3d10umddi.h
PFND3DWDDM2_4DDI_VIDEODECODERSUBMITBUFFERS Pfnd3dwddm24DdiVideodecodersubmitbuffers;
HRESULT Pfnd3dwddm24DdiVideodecodersubmitbuffers(
[in] D3D10DDI_HDEVICE hDevice,
[in] D3D11_1DDI_HDECODE hDecode,
[in] UINT BufferCount,
[in] const D3DWDDM2_4DDI_VIDEO_DECODER_BUFFER_DESC *pBufferDesc
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Submits one or more video frame buffers for DirectX Video Acceleration (DXVA) decoding.
hDevice [in]A handle to the display device (graphics context).
hDecode [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 D3DWDDM2_4DDI_VIDEO_DECODER_BUFFER_DESC structures. For more information, see the Remarks section.
Returns one of the following HRESULT values:
| Return code | Description |
|---|---|
| S_OK | The session key for the cryptographic session was negotiated successfully. |
| E_OUTOFMEMORY | Memory was not available to complete the operation. |
//Declaration
PFND3DWDDM2_4DDI_VIDEODECODERSUBMITBUFFERS Pfnd3dwddm24DdiVideodecodersubmitbuffers;
// Definition
HRESULT Pfnd3dwddm24DdiVideodecodersubmitbuffers
(
D3D10DDI_HDEVICE hDevice
D3D11_1DDI_HDECODE hDecode
UINT BufferCount
CONST D3DWDDM2_4DDI_VIDEO_DECODER_BUFFER_DESC *pBufferDesc
)
{...}
PFND3DWDDM2_4DDI_VIDEODECODERSUBMITBUFFERS
The pBufferDesc parameter points to an array of one or more D3DWDDM2_4DDI_VIDEO_DECODER_BUFFER_DESC structures. Each element in the array describes a compressed video frame buffer that is submitted for decoding.
Each D3DWDDM2_4DDI_VIDEO_DECODER_BUFFER_DESC structure includes the following data:
[!NOTE] If the decode buffer does not contain any encrypted data, this pointer is set to NULL. This function does not honor a Microsoft Direct3D 11 predicate that may have been set.