IDirectXVideoProcessorService::GetProcAmpRange method (dxva2api.h)

Gets the range of values for a video processor (ProcAmp) setting.

Syntax

HRESULT GetProcAmpRange(
  [in]  REFGUID               VideoProcDeviceGuid,
  [in]  const DXVA2_VideoDesc *pVideoDesc,
  [in]  D3DFORMAT             RenderTargetFormat,
  [in]  UINT                  ProcAmpCap,
  [out] DXVA2_ValueRange      *pRange
);

Parameters

[in] VideoProcDeviceGuid

A GUID that identifies the video processor device. To get the list of video processor GUIDs, call IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids.

[in] pVideoDesc

A pointer to a DXVA2_VideoDesc structure that describes the video content.

[in] RenderTargetFormat

The format of the render target surface, specified as a D3DFORMAT value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the D3DFORMAT enumeration. See Video FOURCCs.

[in] ProcAmpCap

The ProcAmp setting to query. See ProcAmp Settings.

[out] pRange

A pointer to a DXVA2_ValueRange structure that receives the range of values for the setting specified in ProcAmpCaps.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dxva2api.h

See also

DXVA Video Processing

IDirectXVideoProcessorService