IAMExtDevice::Calibrate

 
Microsoft DirectShow 9.0

IAMExtDevice::Calibrate

The Calibrate method calibrates an external device's transport mechanism.

This method is not implemented.

Syntax

  HRESULT Calibrate(
  HEVENT hEvent,
  long Mode,
  long *pStatus
);

Parameters

hEvent

[in]  Handle to an event. The event is signaled when the action is complete.

Mode

[in]  Specifies a value that activates or deactivates the calibration process:

Value Description
ED_ACTIVE Activates the calibration process.
ED_INACTIVE Deactivates the calibration process.
NULL No action; return the calibration status in pStatus.

pStatus

[out]  Pointer to a long integer that receives one of the following values:

Value Description
OATRUE Calibration is active.
OAFALSE Calibration is inactive.

Return Values

When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.

Remarks

Use this method on certain external devices that require calibration; for example, rewinding a tape and resetting the counter, or computing the frame offset for a timecode reader.

Filters for various external devices can implement this method differently, depending on the calibration that the device needs. This method assumes the IMediaEventSink interface has already established an event sink, or that another event signaling method has been established.

DV Implementation

The MSDV and UVC drivers do not support this method. The method returns E_NOTIMPL.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also