#[non_exhaustive]pub enum FrameRateCode {
Forbidden,
Frame23_976,
Frame24_0,
Frame25_0,
Frame29_97,
Frame30_0,
Frame50_0,
Frame59_94,
Frame60_0,
Reserved(u8),
}Expand description
Frame rate code — ISO/IEC 13818-1 Table 2-47.
4-bit code in the video_stream_descriptor. The “also includes” column
(multiple_frame_rate_flag = 1) is handled by the descriptor-level
multiple_frame_rate_flag field.
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.
Forbidden
0x0 — Forbidden.
Frame23_976
0x1 — 23.976 Hz.
Frame24_0
0x2 — 24.0 Hz (includes 23.976).
Frame25_0
0x3 — 25.0 Hz.
Frame29_97
0x4 — 29.97 Hz (includes 23.976).
Frame30_0
0x5 — 30.0 Hz (includes 23.976, 24.0, 29.97).
Frame50_0
0x6 — 50.0 Hz (includes 25.0).
Frame59_94
0x7 — 59.94 Hz (includes 23.976, 29.97).
Frame60_0
0x8 — 60.0 Hz (includes 23.976, 24.0, 29.97, 30.0, 59.94).
Reserved(u8)
0x9–0xF — Reserved / unrecognised value, preserved verbatim for byte-identical round-trip.
Implementations§
Source§impl FrameRateCode
impl FrameRateCode
Trait Implementations§
Source§impl Clone for FrameRateCode
impl Clone for FrameRateCode
Source§fn clone(&self) -> FrameRateCode
fn clone(&self) -> FrameRateCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameRateCode
Source§impl Debug for FrameRateCode
impl Debug for FrameRateCode
Source§impl Display for FrameRateCode
impl Display for FrameRateCode
impl Eq for FrameRateCode
Source§impl PartialEq for FrameRateCode
impl PartialEq for FrameRateCode
Source§fn eq(&self, other: &FrameRateCode) -> bool
fn eq(&self, other: &FrameRateCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FrameRateCode
impl Serialize for FrameRateCode
impl StructuralPartialEq for FrameRateCode
Auto Trait Implementations§
impl Freeze for FrameRateCode
impl RefUnwindSafe for FrameRateCode
impl Send for FrameRateCode
impl Sync for FrameRateCode
impl Unpin for FrameRateCode
impl UnsafeUnpin for FrameRateCode
impl UnwindSafe for FrameRateCode
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