pub struct Fps {
pub num: u32,
pub den: u32,
}Expand description
Frame rate as an exact rational { num, den }.
Carrying { num, den } end-to-end (rather than collapsing to a float)
lets us pass NTSC / drop-frame rates straight through to FFmpeg via
-r 30000/1001 without decimal precision loss.
Fields§
§num: u32§den: u32Implementations§
Trait Implementations§
impl Copy for Fps
Source§impl<'de> Deserialize<'de> for Fps
impl<'de> Deserialize<'de> for Fps
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 Fps
impl StructuralPartialEq for Fps
Auto Trait Implementations§
impl Freeze for Fps
impl RefUnwindSafe for Fps
impl Send for Fps
impl Sync for Fps
impl Unpin for Fps
impl UnsafeUnpin for Fps
impl UnwindSafe for Fps
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