Struct video_timecode::FrameRate2997
[−]
[src]
pub struct FrameRate2997;
Trait Implementations
impl Debug for FrameRate2997
[src]
impl PartialEq for FrameRate2997
[src]
fn eq(&self, __arg_0: &FrameRate2997) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl FrameRate for FrameRate2997
[src]
const FPS: u32
FPS: u32 = 30
const DROP_FRAME: bool
DROP_FRAME: bool = true
const FPS_FLOAT: f32
FPS_FLOAT: f32 = <Self>::FPS as f32 * 1000.0 / 1001.0
const MAX_FRAMES: u32
MAX_FRAMES: u32 = 86400 * <Self>::FPS - 144 * (18 * (<Self>::FPS / 30))
fn calculate_frame_number(
hour: u8,
minute: u8,
second: u8,
frame: u8
) -> Result<u32, &'static str>
[src]
hour: u8,
minute: u8,
second: u8,
frame: u8
) -> Result<u32, &'static str>
Given the elements of a timecode, calculate the frame offset from zero.
fn calculate_time_code(frame_number: u32) -> (u8, u8, u8, u8)
[src]
Given a frame number, calculate the fields for a time code.