pub struct GenericFrame(/* private fields */);
Expand description
A frame. Thin wrapper around AVFrame
.
Implementations§
Source§impl GenericFrame
impl GenericFrame
Sourcepub const fn pts(&self) -> Option<i64>
pub const fn pts(&self) -> Option<i64>
Returns the presentation timestamp of the frame, in time_base
units.
Sourcepub const fn set_pts(&mut self, pts: Option<i64>)
pub const fn set_pts(&mut self, pts: Option<i64>)
Sets the presentation timestamp of the frame, in time_base
units.
Sourcepub const fn duration(&self) -> Option<i64>
pub const fn duration(&self) -> Option<i64>
Returns the duration of the frame, in time_base
units.
Sourcepub const fn set_duration(&mut self, duration: Option<i64>)
pub const fn set_duration(&mut self, duration: Option<i64>)
Sets the duration of the frame, in time_base
units.
Sourcepub const fn best_effort_timestamp(&self) -> Option<i64>
pub const fn best_effort_timestamp(&self) -> Option<i64>
Returns the best effort timestamp of the frame, in time_base
units.
Sourcepub const fn dts(&self) -> Option<i64>
pub const fn dts(&self) -> Option<i64>
Returns the decoding timestamp of the frame, in time_base
units.
Sourcepub fn set_time_base(&mut self, time_base: impl Into<Rational>)
pub fn set_time_base(&mut self, time_base: impl Into<Rational>)
Sets the time base of the frame.
Trait Implementations§
Source§impl Clone for GenericFrame
impl Clone for GenericFrame
Source§impl Debug for GenericFrame
impl Debug for GenericFrame
impl Send for GenericFrame
Safety: GenericFrame
is safe to send between threads.
impl Sync for GenericFrame
Safety: GenericFrame
is safe to share between threads.
Auto Trait Implementations§
impl Freeze for GenericFrame
impl RefUnwindSafe for GenericFrame
impl Unpin for GenericFrame
impl UnwindSafe for GenericFrame
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