[][src]Struct av_format::stream::Stream

pub struct Stream {
    pub id: isize,
    pub index: usize,
    pub params: CodecParams,
    pub start: Option<u64>,
    pub duration: Option<u64>,
    pub timebase: Rational64,
    pub user_private: Option<Arc<dyn Any + Send + Sync>>,
}

Fields

id: isize

Format-specific track identifier.

Negative if not supported by the underlying format or if the default progression should be used.

Must be unique

index: usizeparams: CodecParamsstart: Option<u64>duration: Option<u64>timebase: Rational64user_private: Option<Arc<dyn Any + Send + Sync>>

User Private field, will not be cloned

Methods

impl Stream[src]

pub fn from_params(params: &CodecParams, timebase: Rational64) -> Self[src]

pub fn get_extradata(&self) -> Option<&[u8]>[src]

Trait Implementations

impl Clone for Stream[src]

impl Debug for Stream[src]

Auto Trait Implementations

impl !RefUnwindSafe for Stream

impl Send for Stream

impl Sync for Stream

impl Unpin for Stream

impl !UnwindSafe for Stream

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.