pub enum MtcFrameRate {
Fps24,
Fps25,
Fps2997,
Fps30,
}Expand description
MTC frame rate codes and values.
Variants§
Fps24
24 fps (film)
Fps25
25 fps (PAL)
Fps2997
29.97 fps drop frame (NTSC)
Fps30
30 fps (non-drop frame)
Implementations§
Source§impl MtcFrameRate
impl MtcFrameRate
Sourcepub fn code(&self) -> u8
pub fn code(&self) -> u8
Get the MTC frame rate code (0-3) as encoded in the SysEx message.
- 0 = 24 fps
- 1 = 25 fps
- 2 = 29.97 fps (drop frame)
- 3 = 30 fps
Sourcepub fn frames_per_sec(&self) -> f32
pub fn frames_per_sec(&self) -> f32
Get the frame rate as a floating point value.
Sourcepub fn frames_per_sec_int(&self) -> u8
pub fn frames_per_sec_int(&self) -> u8
Get the integer frame count per second (ceiling).
Trait Implementations§
Source§impl Clone for MtcFrameRate
impl Clone for MtcFrameRate
Source§fn clone(&self) -> MtcFrameRate
fn clone(&self) -> MtcFrameRate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MtcFrameRate
impl Debug for MtcFrameRate
Source§impl PartialEq for MtcFrameRate
impl PartialEq for MtcFrameRate
impl Copy for MtcFrameRate
impl Eq for MtcFrameRate
impl StructuralPartialEq for MtcFrameRate
Auto Trait Implementations§
impl Freeze for MtcFrameRate
impl RefUnwindSafe for MtcFrameRate
impl Send for MtcFrameRate
impl Sync for MtcFrameRate
impl Unpin for MtcFrameRate
impl UnsafeUnpin for MtcFrameRate
impl UnwindSafe for MtcFrameRate
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