Struct av_format::common::GlobalInfo
source · [−]pub struct GlobalInfo {
pub duration: Option<u64>,
pub timebase: Option<Rational64>,
pub streams: Vec<Stream>,
}Expand description
Global media file information.
Fields
duration: Option<u64>Duration of a media file.
If None, the duration of a media file is not considered.
timebase: Option<Rational64>Timebase associated to a media file.
If None, the timebase of a media file is not considered.
streams: Vec<Stream>List of streams present in a media file.
Implementations
sourceimpl GlobalInfo
impl GlobalInfo
sourcepub fn add_stream(&mut self, st: Stream) -> usize
pub fn add_stream(&mut self, st: Stream) -> usize
Adds a stream to the list of streams present in a media file.
Trait Implementations
sourceimpl Clone for GlobalInfo
impl Clone for GlobalInfo
sourcefn clone(&self) -> GlobalInfo
fn clone(&self) -> GlobalInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GlobalInfo
impl Send for GlobalInfo
impl Sync for GlobalInfo
impl Unpin for GlobalInfo
impl !UnwindSafe for GlobalInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more