pub struct AvifContext {
pub premultiplied_alpha: bool,
pub major_brand: FourCC,
pub sequence: Option<MediaContext>,
pub unsupported_features: UnsupportedFeatures,
/* private fields */
}Fields§
§premultiplied_alpha: boolIf true, divide RGB values by the alpha value.
See prem in MIAF (ISO 23000-22:2019) § 7.3.5.2
major_brand: FourCCShould 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: UnsupportedFeaturesA 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 Freeze for AvifContext
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