pub struct AvifData {
pub primary_item: TryVec<u8>,
pub alpha_item: Option<TryVec<u8>>,
pub premultiplied_alpha: bool,
}
Fields§
§primary_item: TryVec<u8>
AV1 data for the color channels.
The collected data indicated by the pitm
box, See ISO 14496-12:2015 § 8.11.4
alpha_item: Option<TryVec<u8>>
AV1 data for alpha channel.
Associated alpha channel for the primary item, if any
premultiplied_alpha: bool
If true, divide RGB values by the alpha value.
See prem
in MIAF § 7.3.5.2
Implementations§
source§impl AvifData
impl AvifData
pub fn from_reader<R: Read>(reader: &mut R) -> Result<Self>
sourcepub fn primary_item_metadata(&self) -> Result<AV1Metadata>
pub fn primary_item_metadata(&self) -> Result<AV1Metadata>
Parses AV1 data to get basic properties of the opaque channel
sourcepub fn alpha_item_metadata(&self) -> Result<Option<AV1Metadata>>
pub fn alpha_item_metadata(&self) -> Result<Option<AV1Metadata>>
Parses AV1 data to get basic properties about the alpha channel, if any
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AvifData
impl RefUnwindSafe for AvifData
impl Send for AvifData
impl Sync for AvifData
impl Unpin for AvifData
impl UnwindSafe for AvifData
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