pub struct TimestampGenerator {
pub timebase: u64,
pub frames_per_second: usize,
}
Expand description
Generates timestamps according to a timebase and rate of playback of uncompressed video.
Since the rate is constant, this can also be used to extrapolate timestamps.
Fields§
§timebase: u64
§frames_per_second: usize
Implementations§
Source§impl TimestampGenerator
impl TimestampGenerator
pub fn timestamp_at(&self, input_index: usize) -> u64
Auto Trait Implementations§
impl Freeze for TimestampGenerator
impl RefUnwindSafe for TimestampGenerator
impl Send for TimestampGenerator
impl Sync for TimestampGenerator
impl Unpin for TimestampGenerator
impl UnwindSafe for TimestampGenerator
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