WMTIMECODE

Windows Media Encoder SDK banner art

The WMTIMECODE structure is used with device control to get the current tape position and frame count information.

Syntax

typedef struct WMTIMECODE{
  WORD  wFrameRate;
  WORD  wFrameFract;
  DWORD  dwFrames;
};

Remarks

wFrameRate is a WORD containing the number of frames per second. Specify with one of the following values.

Value Description
ED_FORMAT_SMPTE_30 30 frames per second.
ED_FORMAT_SMPTE_30DROP 30 frames per second drop frame (actual rate 29.97 fps).
ED_FORMAT_SMPTE_25 25 frames per second.
ED_FORMAT_SMPTE_24 24 frames per second.

wFrameFract is a WORD containing the fractional frame. Full scale is 0x1000. Fractional frame can be used to indicate temporal offset into frame when time code was actually read from an external device; for example, wFrameFract=0x7ff means the time code value was read from the device at the end of the first video field.

dwFrames is a DOUBLE WORD containing the time code value as a binary framecount in the format 0xhhmmssff.

Requirements

Header: wmdevctl.h

Library: wmdevctl.dll

See Also