pub struct Mp4Reader<R> {
pub ftyp: FtypBox,
pub moov: MoovBox,
pub moofs: Vec<MoofBox>,
pub emsgs: Vec<EmsgBox>,
/* private fields */
}
Fields§
§ftyp: FtypBox
§moov: MoovBox
§moofs: Vec<MoofBox>
§emsgs: Vec<EmsgBox>
Implementations§
source§impl<R: Read + Seek> Mp4Reader<R>
impl<R: Read + Seek> Mp4Reader<R>
pub fn read_header(reader: R, size: u64) -> Result<Self>
pub fn read_fragment_header<FR: Read + Seek>( &self, reader: FR, size: u64 ) -> Result<Mp4Reader<FR>>
pub fn size(&self) -> u64
pub fn major_brand(&self) -> &FourCC
pub fn minor_version(&self) -> u32
pub fn compatible_brands(&self) -> &[FourCC]
pub fn duration(&self) -> Duration
pub fn timescale(&self) -> u32
pub fn is_fragmented(&self) -> bool
pub fn tracks(&self) -> &HashMap<u32, Mp4Track>
pub fn sample_count(&self, track_id: u32) -> Result<u32>
pub fn read_sample( &mut self, track_id: u32, sample_id: u32 ) -> Result<Option<Mp4Sample>>
pub fn sample_offset(&mut self, track_id: u32, sample_id: u32) -> Result<u64>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Mp4Reader<R>where
R: Freeze,
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§
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