#[non_exhaustive]pub struct AvifData {
pub primary_item: TryVec<u8>,
pub alpha_item: Option<TryVec<u8>>,
pub premultiplied_alpha: bool,
pub content_light_level: Option<ContentLightLevel>,
pub mastering_display: Option<MasteringDisplayColourVolume>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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: boolIf true, divide RGB values by the alpha value.
See prem in MIAF § 7.3.5.2
content_light_level: Option<ContentLightLevel>Content light level from the container’s clli property, if present.
mastering_display: Option<MasteringDisplayColourVolume>Mastering display colour volume from the container’s mdcv property, if present.
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