共用方式為


IVideoProcAmp::put_PowerlineFrequency

 
Microsoft DirectShow 9.0

IVideoProcAmp::put_PowerlineFrequency

This topic applies only to Windows XP Service Pack 2 and later.

The put_PowerlineFrequency method sets the camera's power line frequency setting. This setting enables the camera to perform anti-flicker processing.

Syntax

  HRESULT put_PowerlineFrequency(
  long  Value,
  long  Flags
);

Parameters

Value

[in]  Specifies one of the following values.

Value Description
0 Disabled.
1 50 Hz.
2 60 Hz.

Flags

[in]  Zero or more flags. See VideoProcAmpFlags. If the VideoProcAmp_Flags_Auto flag is used, the Value parameter is ignored and the camera sets the default value.

Return Values

Returns an HRESULT value.

Requirements

Header: Include Vidcap.h.

Library: None.

See Also