pub struct MdatParser<R, C: ReadCapability> { /* private fields */ }Implementations§
Source§impl<R, C: ReadCapability> MdatParser<R, C>
impl<R, C: ReadCapability> MdatParser<R, C>
Sourcepub fn into_metadata(self) -> Metadata
pub fn into_metadata(self) -> Metadata
Discards the reader and returns just the metadata
pub fn mdat_header(&self) -> Option<&AtomHeader>
Sourcepub fn chunks(&mut self) -> Result<ChunkParser<'_, R, C>, ParseError>
pub fn chunks(&mut self) -> Result<ChunkParser<'_, R, C>, ParseError>
Parse chunks along with related metadata
Methods from Deref<Target = Metadata>§
Sourcepub fn atoms_iter(&self) -> impl Iterator<Item = &Atom>
pub fn atoms_iter(&self) -> impl Iterator<Item = &Atom>
Iterates over the metadata atoms
Sourcepub fn atoms_iter_mut(&mut self) -> impl Iterator<Item = &mut Atom>
pub fn atoms_iter_mut(&mut self) -> impl Iterator<Item = &mut Atom>
Mutably iterates over the metadata atoms
Sourcepub fn atoms_flat_retain_mut<P>(&mut self, pred: P)
pub fn atoms_flat_retain_mut<P>(&mut self, pred: P)
Retains only the metadata atoms that satisfy the predicate (applies to top level and nested atoms)
pub fn ftyp(&mut self) -> FtypAtomRef<'_>
pub fn ftyp_mut(&mut self) -> FtypAtomRefMut<'_>
pub fn moov(&self) -> MoovAtomRef<'_>
pub fn moov_mut(&mut self) -> MoovAtomRefMut<'_>
Sourcepub fn metadata_size(&self) -> usize
pub fn metadata_size(&self) -> usize
Returns the sum of all metadata atom sizes in bytes
Sourcepub fn update_chunk_offsets(
&mut self,
) -> Result<BuildMetadata, UpdateChunkOffsetError>
pub fn update_chunk_offsets( &mut self, ) -> Result<BuildMetadata, UpdateChunkOffsetError>
Updates chunk offsets for each track
Call this before writing metadata to disk to avoid corruption
Trait Implementations§
Source§impl<R, C: ReadCapability> Clone for MdatParser<R, C>
impl<R, C: ReadCapability> Clone for MdatParser<R, C>
Source§impl<R, C: ReadCapability> Deref for MdatParser<R, C>
impl<R, C: ReadCapability> Deref for MdatParser<R, C>
Source§impl<R, C: ReadCapability> DerefMut for MdatParser<R, C>
impl<R, C: ReadCapability> DerefMut for MdatParser<R, C>
Auto Trait Implementations§
impl<R, C> Freeze for MdatParser<R, C>where
R: Freeze,
impl<R, C> RefUnwindSafe for MdatParser<R, C>where
R: RefUnwindSafe,
C: RefUnwindSafe,
impl<R, C> Send for MdatParser<R, C>
impl<R, C> Sync for MdatParser<R, C>
impl<R, C> Unpin for MdatParser<R, C>
impl<R, C> UnsafeUnpin for MdatParser<R, C>where
R: UnsafeUnpin,
impl<R, C> UnwindSafe for MdatParser<R, C>where
R: UnwindSafe,
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more