Share via


IAMTimecodeGenerator::SetTCGMode

 
Microsoft DirectShow 9.0

IAMTimecodeGenerator::SetTCGMode

The SetTCGMode method sets the SMPTE timecode generator properties.

Syntax

  HRESULT SetTCGMode(
  long Param,
  long Value
);

Parameters

Param

[in] Timecode generator mode. Specify one of the following modes.

Value Description
ED_TCG_FRAMERATE Frame rate
ED_TCG_REFERENCE_SOURCE Source of the count value
ED_TCG_SYNC_SOURCE Source of the hardware clock reference
ED_TCG_TIMECODE_TYPE SMPTE timecode format of the generator

Value

[in] Setting of the mode specified in Param.

If ED_TCG_FRAMERATE is specified in Param, this parameter is set to one of the following.

Value Description
ED_FORMAT_SMPTE_24 24 frames per second.
ED_FORMAT_SMPTE_25 25 frames per second.
ED_FORMAT_SMPTE_30 30 frames per second. Nondrop frame.
ED_FORMAT_SMPTE_30DROP 30 frames per second. Drop frame (actually 29.97 frames per second).

If ED_TCG_REFERENCE_SOURCE is specified in Param, set one of the following.

Value Description
ED_TCG_FREE No count reference source.
ED_TCG_READER Sync to reader value (jamsync).

If ED_TCG_SYNC_SOURCE is specified in Param, set one of the following.

Value Description
ED_TCG_FREE Lock to nothing (freerun).
ED_TCG_READER Lock to timecode reader.
ED_TCG_VIDEO Lock to incoming video.

If ED_TCG_TIMECODE_TYPE is specified in Param, set one of the following.

Value Description
ED_TCG_MIDI_FULL MIDI Full Frame timecode
ED_TCG_MIDI_QF MIDI quarter frame timecode
ED_TCG_SMPTE_LTC Linear timecode
ED_TCG_SMPTE_VITC Vertical interval timecode

Return Values

Returns an HRESULT value that depends on the implementation of the interface.

Remarks

For more information on ED_TCG_TIMECODE_TYPE, see the IAMTimecodeReader::SetTCRMode method.

Requirements

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

Library: Use Strmiids.lib.

See Also