Skip to content

Latest commit

 

History

History
93 lines (69 loc) · 2.48 KB

nc-d3d12umddi-pfnd3d12ddi_createvideomotionestimator_0053.md

File metadata and controls

93 lines (69 loc) · 2.48 KB
UID title description ms.date keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos tech.root ms.custom f1_keywords topic_type api_type api_location api_name dev_langs
NC:d3d12umddi.PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053
PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053 (d3d12umddi.h)
The PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053 callback function creates a video motion estimator.
10/19/2018
PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053 callback function
d3d12umddi.h
Windows 10, version 1809
Windows
display
RS5
PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053
d3d12umddi/PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053
apiref
UserDefined
d3d12umddi.h
PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053
c++

PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053 callback function

-description

Creates the video motion estimator.

-parameters

-param hDrvDevice

A handle to the display device (graphics context) that the Direct3D runtime uses.

-param pArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_MOTION_ESTIMATOR_0053 structure.

-param hDrvMotionEstimator

A handle to the user mode driver motion estimator type.

-returns

Returns HRESULT.

-prototype

//Declaration

PFND3D12DDI_CREATEVIDEOMOTIONESTIMATOR_0053 Pfnd3d12ddiCreatevideomotionestimator0053; 

// Definition

HRESULT Pfnd3d12ddiCreatevideomotionestimator0053 
(
	D3D12DDI_HDEVICE hDrvDevice
	CONST D3D12DDIARG_CREATE_VIDEO_MOTION_ESTIMATOR_0053 *pArgs
	D3D12DDI_HVIDEOMOTIONESTIMATOR_0053 hDrvMotionEstimator
)
{...}

-remarks

The motion estimation operation must support reading from and writing to hardware DRM protected resources when the driver supports Direct3D protected resource support. If the inputs are hardware DRM protected, the runtime will require that the output is a hardware DRM protected resource.

The motion estimation operation is assumed to write to both the D3D12DDI_HVIDEOMOTIONESTIMATOR_0053 context object and to the D3D12DDI_HVIDEOMOTIONVECTORHEAP_0053, so these must be created with a protected resource session when the input textures are protected.

-see-also