pub struct Timebase {
pub num: NonZero<u32>,
pub den: NonZero<u32>,
}Expand description
Stream timebase units.
Indicates the smallest interval of time, in seconds, used by the stream. For fixed frame rate material, or variable frame rate material where frames are timed at a multiple of a given clock (ex: video capture), the RECOMMENDED method is to set the timebase to the reciprocal of the frame rate (ex: 1001/30000 for 29.970 Hz NTSC). This allows the pts to correspond to the frame number, which can be handy. For re-encoding video from containers with absolute time timestamps, the RECOMMENDED method is to set the timebase to that of the parent container or multimedia framework (ex: 1/1000 for ms, as in FLV).
Fields§
§num: NonZero<u32>The numerator of the timebase.
den: NonZero<u32>The denominator of the timebase.
Trait Implementations§
Source§impl Ord for Timebase
impl Ord for Timebase
Source§impl PartialOrd for Timebase
impl PartialOrd for Timebase
impl Copy for Timebase
impl Eq for Timebase
impl StructuralPartialEq for Timebase
Auto Trait Implementations§
impl Freeze for Timebase
impl RefUnwindSafe for Timebase
impl Send for Timebase
impl Sync for Timebase
impl Unpin for Timebase
impl UnwindSafe for Timebase
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