Struct mp4::Mp4Reader[][src]

pub struct Mp4Reader<R> {
    pub ftyp: FtypBox,
    pub moov: MoovBox,
    pub moofs: Vec<MoofBox>,
    // some fields omitted
}

Fields

ftyp: FtypBoxmoov: MoovBoxmoofs: Vec<MoofBox>

Implementations

impl<R: Read + Seek> Mp4Reader<R>[src]

pub fn read_header(reader: R, size: u64) -> Result<Self>[src]

pub fn size(&self) -> u64[src]

pub fn major_brand(&self) -> &FourCC[src]

pub fn minor_version(&self) -> u32[src]

pub fn compatible_brands(&self) -> &[FourCC]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn duration(&self) -> Duration[src]

pub fn timescale(&self) -> u32[src]

pub fn is_fragmented(&self) -> bool[src]

pub fn tracks(&self) -> &[Mp4Track]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn sample_count(&self, track_id: u32) -> Result<u32>[src]

pub fn read_sample(
    &mut self,
    track_id: u32,
    sample_id: u32
) -> Result<Option<Mp4Sample>>
[src]

Trait Implementations

impl<R: Debug> Debug for Mp4Reader<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Mp4Reader<R> where
    R: RefUnwindSafe

impl<R> Send for Mp4Reader<R> where
    R: Send

impl<R> Sync for Mp4Reader<R> where
    R: Sync

impl<R> Unpin for Mp4Reader<R> where
    R: Unpin

impl<R> UnwindSafe for Mp4Reader<R> where
    R: UnwindSafe

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, 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.