pub struct OffsetTable { /* private fields */ }Expand description
Timecode offset table for fast lookup.
Implementations§
Source§impl OffsetTable
impl OffsetTable
Sourcepub fn add_entry(&mut self, src_frame: u64, dst_frame: u64, edit_type: EditType)
pub fn add_entry(&mut self, src_frame: u64, dst_frame: u64, edit_type: EditType)
Add an offset entry.
Sourcepub fn lookup(&self, src_frame: u64) -> Option<&OffsetEntry>
pub fn lookup(&self, src_frame: u64) -> Option<&OffsetEntry>
Look up the destination frame for a source frame (nearest-lower match).
Sourcepub fn frame_rate(&self) -> FrameRate
pub fn frame_rate(&self) -> FrameRate
Get the frame rate.
Trait Implementations§
Source§impl Clone for OffsetTable
impl Clone for OffsetTable
Source§fn clone(&self) -> OffsetTable
fn clone(&self) -> OffsetTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OffsetTable
impl RefUnwindSafe for OffsetTable
impl Send for OffsetTable
impl Sync for OffsetTable
impl Unpin for OffsetTable
impl UnsafeUnpin for OffsetTable
impl UnwindSafe for OffsetTable
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