Sample Functions for ProcAmp Control
The sample ProcAmp functions in this section show how to implement ProcAmp control functionality. These sample functions map to the motion compensation callback functions defined in the DD_MOTIONCOMPCALLBACKS structure. You can implement each sample function, and then use a motion-compensation code template to complete the implementation. For more information, see Example Code for DirectX VA Devices.
Deinterlace Container Device Class Sample Functions
The sample ProcAmp control functions in the following table are member functions of DXVA_DeinterlaceContainerDeviceClass (that is, they are called using the deinterlace container device). For more information, see Defining the Deinterlace Container Device Class and Performing ProcAmp Control and Deinterlacing Operations.
Member Function | Description |
---|---|
Queries the driver to determine input requirements of the ProcAmp control device. |
|
Queries the driver to determine the minimum, maximum, step size, and default value for each ProcAmp property. |
ProcAmp Control Device Class Sample Functions
The sample ProcAmp control functions in the following table are member functions of DXVA_ProcAmpControlDeviceClass (that is, they are called using the ProcAmp control device). For more information, see Defining the ProcAmp Control Device Class.
Member Function | Description |
---|---|
Creates a ProcAmp stream object. |
|
Performs the ProcAmp adjustment operation by writing the output to the destination surface. |
|
Closes the ProcAmp stream object and instructs the device driver to release hardware resources associated with the stream. |
Mapping Sample Functions to DD_MOTIONCOMPCALLBACKS
The sample functions in this section map to the motion compensation callback functions as follows. That is, each sample function is called within its respective motion-compensation callback.
Function | DD_MOTIONCOMPCALLBACKS member |
---|---|
RenderMoComp |
|
RenderMoComp |
|
CreateMoComp |
|
RenderMoComp |
|
DestroyMoComp |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for