Struct video_timecode::FrameRate24
[−]
[src]
pub struct FrameRate24;
Trait Implementations
impl Debug for FrameRate24
[src]
impl PartialEq for FrameRate24
[src]
fn eq(&self, __arg_0: &FrameRate24) -> 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 FrameRate24
[src]
const FPS: u32
FPS: u32 = 24
const DROP_FRAME: bool
DROP_FRAME: bool = false
const FPS_FLOAT: f32
FPS_FLOAT: f32 = <Self>::FPS as f32
const MAX_FRAMES: u32
MAX_FRAMES: u32 = 86400 * <Self>::FPS
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.