Microsoft DirectX 9.0

IVPBaseConfig::SetSurfaceParameters

The SetSurfaceParameters method informs the device of the layout of the overlay surface. The downstream filter (the Overlay Mixer, VBI Surface Allocator, or Video Port Manager) calls this method after it creates the overlay surface.

Syntax

HRESULT SetSurfaceParameters(
  DWORD dwPitch,
  DWORD dwXOrigin,
  DWORD dwYOrigin
) PURE;

Parameters

dwPitch

[in] Specifies the stride of the surface (also called the pitch), in pixels.

dwXOrigin

[in] Specifies the X-coordinate of the pixel at which valid data starts.

dwYOrigin

[in] Specifies the Y-coordinate of the pixel at which valid data starts.

Return Values

Returns S_OK if successful, or E_NOTIMPL.

See Also