Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains basic timecode frame count information.

Syntax

typedef struct tagTIMECODE {
  WORD 
wFrameRate;
  WORD 
wFrameFract;
  WORD 
dwFrames;
}TIMECODE;

Members

wFrameRate

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

Fractional frame. Full scale is 0x1000.

dwFrames

Timecode value as a binary framecount.

Remarks

Fractional frame can be used to indicate temporal offset into frame when timecode was actually read from an external device; for example, wFrameFract=0x7ff means the timecode value was read from the device at the end of the first video field.

Note:
Because timecode commonly enters or leaves computer systems as ASCII values, conversion helper methods that convert the ASCII values to and from binary framecounts are supplied in the sample filter.

Requirements

Header dshow.h
Windows Embedded CE Windows CE 2.12 and later
Windows Mobile Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment,
Version 2.12 requires DXPAK 1.0 or later

See Also