Struct mp4parse::AvifContext
source · pub struct AvifContext {
pub premultiplied_alpha: bool,
pub major_brand: FourCC,
pub sequence: Option<MediaContext>,
pub unsupported_features: UnsupportedFeatures,
/* private fields */
}
Fields§
§premultiplied_alpha: bool
If true, divide RGB values by the alpha value.
See prem
in MIAF (ISO 23000-22:2019) § 7.3.5.2
major_brand: FourCC
Should probably only ever be AVIF_BRAND
or AVIS_BRAND
, but other values
are legal as long as one of the two is the compatible_brand
list.
sequence: Option<MediaContext>
Information on the sequence contained in the image, or None if not present
unsupported_features: UnsupportedFeatures
A collection of unsupported features encountered during the parse
Implementations§
source§impl AvifContext
impl AvifContext
pub fn primary_item_is_present(&self) -> bool
pub fn primary_item_coded_data(&self) -> Option<&[u8]>
pub fn primary_item_bits_per_channel(&self) -> Option<Result<&[u8]>>
pub fn alpha_item_is_present(&self) -> bool
pub fn alpha_item_coded_data(&self) -> Option<&[u8]>
pub fn alpha_item_bits_per_channel(&self) -> Option<Result<&[u8]>>
pub fn spatial_extents_ptr(&self) -> Result<*const ImageSpatialExtentsProperty>
sourcepub fn nclx_colour_information_ptr(
&self
) -> Option<Result<*const NclxColourInformation>>
pub fn nclx_colour_information_ptr( &self ) -> Option<Result<*const NclxColourInformation>>
Returns None if there is no primary item or it has no associated NCLX colour boxes.
sourcepub fn icc_colour_information(&self) -> Option<Result<&[u8]>>
pub fn icc_colour_information(&self) -> Option<Result<&[u8]>>
Returns None if there is no primary item or it has no associated ICC colour boxes.
pub fn image_rotation(&self) -> Result<ImageRotation>
pub fn image_mirror_ptr(&self) -> Result<*const ImageMirror>
pub fn pixel_aspect_ratio_ptr(&self) -> Result<*const PixelAspectRatio>
Trait Implementations§
source§impl Debug for AvifContext
impl Debug for AvifContext
source§impl Default for AvifContext
impl Default for AvifContext
source§fn default() -> AvifContext
fn default() -> AvifContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AvifContext
impl Send for AvifContext
impl Sync for AvifContext
impl Unpin for AvifContext
impl !UnwindSafe for AvifContext
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