#[non_exhaustive]pub enum FrameRate {
Fps30,
Fps25,
Fps24,
}Expand description
Which of ST 12-1 Table 3’s three flag-bit-position columns applies.
The drop-frame flag (bit 10) and color-frame flag (bit 11) sit at fixed
bit positions regardless of frame rate, but the polarity-correction/BGF0/
BGF1/BGF2 bits move: 30-frame and 24-frame share one mapping, while
25-frame swaps bit 27 and bit 59’s meaning (see docs/st12-1.md’s
“Judgment call” note on Table 3). The 80-bit codeword itself carries no
self-describing frame-rate field, so the caller supplies it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fps30
30-frame counting (NTSC-related, drop or non-drop, §5.2).
Fps25
25-frame counting (PAL-related, §6.2).
Fps24
24-frame counting (film-related, §7.2).
Implementations§
Trait Implementations§
impl Copy for FrameRate
Source§impl<'de> Deserialize<'de> for FrameRate
Available on crate feature serde only.
impl<'de> Deserialize<'de> for FrameRate
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq 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