pub struct AvifFile<'data> {
pub ftyp: FtypBox,
pub meta: MetaBox<'data>,
pub mdat: MdatBox,
}
Fields§
§ftyp: FtypBox
§meta: MetaBox<'data>
§mdat: MdatBox
Implementations§
Source§impl AvifFile<'_>
impl AvifFile<'_>
Sourcefn mdat_payload_start_offset(&self) -> u32
fn mdat_payload_start_offset(&self) -> u32
Where the primary data starts inside the mdat
box, for iloc
’s offset
Sourcefn fix_iloc_positions(&mut self)
fn fix_iloc_positions(&mut self)
iloc
is mostly unnecssary, high risk of out-of-buffer accesses in parsers that don’t pay attention,
and also awkward to serialize, because its content depends on its own serialized byte size.
fn write_header(&mut self, out: &mut Vec<u8>) -> Result<()>
pub fn file_size(&self) -> usize
pub fn write_to_vec(&mut self, out: &mut Vec<u8>) -> Result<()>
pub fn write<W: Write>(&mut self, out: W) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for AvifFile<'data>
impl<'data> RefUnwindSafe for AvifFile<'data>
impl<'data> Send for AvifFile<'data>
impl<'data> Sync for AvifFile<'data>
impl<'data> Unpin for AvifFile<'data>
impl<'data> UnwindSafe for AvifFile<'data>
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