pub enum FrameRate {
Fps23976,
Fps24,
Fps25,
Fps2997DF,
Fps2997NDF,
Fps30,
Fps50,
Fps5994,
Fps60,
}Expand description
SMPTE timecode frame rates
Variants§
Fps23976
23.976 fps (film transferred to NTSC)
Fps24
24 fps (film)
Fps25
25 fps (PAL)
Fps2997DF
29.97 fps (NTSC drop frame)
Fps2997NDF
29.97 fps (NTSC non-drop frame)
Fps30
30 fps
Fps50
50 fps (PAL progressive)
Fps5994
59.94 fps (NTSC progressive)
Fps60
60 fps
Implementations§
Source§impl FrameRate
impl FrameRate
Sourcepub fn as_rational(&self) -> (u32, u32)
pub fn as_rational(&self) -> (u32, u32)
Get the exact frame rate as a rational (numerator, denominator)
Sourcepub fn is_drop_frame(&self) -> bool
pub fn is_drop_frame(&self) -> bool
Check if this is a drop frame rate
Sourcepub fn frames_per_second(&self) -> u32
pub fn frames_per_second(&self) -> u32
Get the number of frames per second (rounded)
Trait Implementations§
impl Copy for FrameRate
impl StructuralPartialEq for FrameRate
Auto Trait Implementations§
impl Freeze for FrameRate
impl RefUnwindSafe for FrameRate
impl Send for FrameRate
impl Sync for FrameRate
impl Unpin for FrameRate
impl UnsafeUnpin for FrameRate
impl UnwindSafe for FrameRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more