DVD_TIMECODE structure (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The DVD_TIMECODE structure contains DVD timecode in hours, minutes, seconds, and frames.

Syntax

typedef struct tagDVD_TIMECODE {
  ULONG Hours1 : 4;
  ULONG Hours10 : 4;
  ULONG Minutes1 : 4;
  ULONG Minutes10 : 4;
  ULONG Seconds1 : 4;
  ULONG Seconds10 : 4;
  ULONG Frames1 : 4;
  ULONG Frames10 : 2;
  ULONG FrameRateCode : 2;
} DVD_TIMECODE;

Members

Hours1

Hours.

Hours10

Tens of hours.

Minutes1

Minutes.

Minutes10

Tens of minutes.

Seconds1

Seconds.

Seconds10

Tens of seconds.

Frames1

Frames.

Frames10

Tens of frames.

FrameRateCode

Frames per second dropped and not dropped as indicated by DVD_FRAMERATE.

Remarks

DVD timecode is binary coded decimal (BCD) encoded in the format 0xHhMmSsFf, where:

  • H is tens of hours
  • h is hours
  • M is tens of minutes
  • m is minutes
  • S is tens of seconds
  • s is seconds
  • F is tens of frames
  • f is frames

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures