Defining the ProcAmp Control Device Class
Use the following example code to define the ProcAmp control device class:
// ProcAmp control device class.
struct DXVA_ProcAmpControlDeviceClass : public DXVA_DeviceBaseClass
{
DXVA_VideoDesc m_VideoDesc;
// Uses the base class's constructor.
DXVA_ProcAmpControlDeviceClass(const GUID& guid, DXVA_DeviceType Type) :
DXVA_DeviceBaseClass(guid, Type)
{}
// The following three functions are part of the
// ProcAmp Control DDI.
HRESULT ProcAmpControlOpenStream(LPDXVA_VideoDesc lpVideoDescription);
HRESULT ProcAmpControlCloseStream();
HRESULT ProcAmpControlBlt(
LPVOID lpDDSDstSurface,
LPVOID lpDDSSrcSurface,
DXVA_ProcAmpControlBlt* pCcBlt);
};