Trait video_timecode::FrameRate [] [src]

pub trait FrameRate {
    const FPS: u32;
    const DROP_FRAME: bool;
    const FPS_FLOAT: f32;
    const MAX_FRAMES: u32;
    fn calculate_frame_number(
        hour: u8,
        minute: u8,
        second: u8,
        frame: u8
    ) -> Result<u32, &'static str> { ... }
fn calculate_time_code(frame_number: u32) -> (u8, u8, u8, u8) { ... } }

Trait describing frame rates.

Associated Constants

Provided Methods

Given the elements of a timecode, calculate the frame offset from zero.

Given a frame number, calculate the fields for a time code.

Implementors