Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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);
};