Struct mp4::Mp4Reader [−][src]
Fields
ftyp: FtypBox
moov: MoovBox
moofs: 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]ⓘ
[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]ⓘ
[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]
&mut self,
track_id: u32,
sample_id: u32
) -> Result<Option<Mp4Sample>>
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Mp4Reader<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for Mp4Reader<R> where
R: Send,
R: Send,
impl<R> Sync for Mp4Reader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Mp4Reader<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Mp4Reader<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,