Skip to main content

Module timecode_event

Module timecode_event 

Source
Expand description

Event-triggered timecode capture for marking in/out points and cue triggers.

The TimecodeEventCapture struct accumulates TimecodeEvent records as they are triggered during a session. Events carry a captured timecode, a label, and an optional payload so they can be used for:

  • Marking edit in/out points during a live or offline session.
  • Recording cue triggers (e.g. lighting, effects, playback).
  • Logging any user-defined production note alongside a precise timecode.

§Example

use oximedia_timecode::{FrameRate, Timecode, timecode_event::TimecodeEventCapture};

let mut capture = TimecodeEventCapture::new();
let tc = Timecode::new(1, 0, 0, 0, FrameRate::Fps25).expect("valid");
capture.mark_in(tc);
let out_tc = Timecode::new(1, 0, 30, 0, FrameRate::Fps25).expect("valid");
capture.mark_out(out_tc);

Structs§

EditRange
An in/out range captured from mark-in and mark-out events.
TimecodeEvent
A single timecode event record.
TimecodeEventCapture
Accumulates timecode events recorded during a production session.

Enums§

EventKind
The kind of a captured timecode event.