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

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.