#[non_exhaustive]#[repr(u32)]pub enum AVDurationEstimationMethod {
AVFMT_DURATION_FROM_PTS = 0,
AVFMT_DURATION_FROM_STREAM = 1,
AVFMT_DURATION_FROM_BITRATE = 2,
}
Expand description
The duration of a video can be estimated through various ways, and this enum can be used to know how the duration was estimated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AVFMT_DURATION_FROM_PTS = 0
< Duration accurately estimated from PTSes
AVFMT_DURATION_FROM_STREAM = 1
< Duration estimated from a stream with a known duration
AVFMT_DURATION_FROM_BITRATE = 2
< Duration estimated from bitrate (less accurate)
Trait Implementations§
source§impl Clone for AVDurationEstimationMethod
impl Clone for AVDurationEstimationMethod
source§fn clone(&self) -> AVDurationEstimationMethod
fn clone(&self) -> AVDurationEstimationMethod
Returns a copy 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 moresource§impl Debug for AVDurationEstimationMethod
impl Debug for AVDurationEstimationMethod
source§impl Hash for AVDurationEstimationMethod
impl Hash for AVDurationEstimationMethod
source§impl PartialEq for AVDurationEstimationMethod
impl PartialEq for AVDurationEstimationMethod
source§fn eq(&self, other: &AVDurationEstimationMethod) -> bool
fn eq(&self, other: &AVDurationEstimationMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AVDurationEstimationMethod
impl Eq for AVDurationEstimationMethod
impl StructuralPartialEq for AVDurationEstimationMethod
Auto Trait Implementations§
impl Freeze for AVDurationEstimationMethod
impl RefUnwindSafe for AVDurationEstimationMethod
impl Send for AVDurationEstimationMethod
impl Sync for AVDurationEstimationMethod
impl Unpin for AVDurationEstimationMethod
impl UnwindSafe for AVDurationEstimationMethod
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