共用方式為


IVPBaseConfig::SetSurfaceParameters

 
Microsoft DirectShow 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
);

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.

Requirements

Header: Include Dvp.h, Vptype.h, Vpconfig.h.

Library: None.

See Also