pub enum FrameRate {
F23_976,
F24,
F25,
F29_97,
F30,
F50,
F59_94,
F60,
Unknown,
}Expand description
Video frame rate.
Variants§
F23_976
23.976 fps — film-based BD/UHD (NTSC pulldown)
F24
24.000 fps — true film rate
F25
25.000 fps — PAL standard
F29_97
29.970 fps — NTSC standard
F30
30.000 fps
F50
50.000 fps — PAL high frame rate
F59_94
59.940 fps — NTSC high frame rate
F60
60.000 fps
Unknown
Unknown frame rate
Implementations§
Source§impl FrameRate
impl FrameRate
Sourcepub fn from_video_rate(vr: u8) -> Self
pub fn from_video_rate(vr: u8) -> Self
Parse from MPLS video_rate byte.
Sourcepub fn as_fraction(&self) -> (u32, u32)
pub fn as_fraction(&self) -> (u32, u32)
Frame rate as (numerator, denominator) for precise representation.
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