[−][src]Struct avif_parse::c_api::avif_data_t
Result of parsing an AVIF file. Contains AV1-compressed data.
Fields
primary_data: *const u8
AV1 data for color channels
primary_size: usize
alpha_data: *const u8
AV1 data for alpha channel (may be NULL if the image is fully opaque)
alpha_size: usize
premultiplied_alpha: u8
0 = normal, uncorrelated alpha channel 1 = premultiplied alpha. You must divide RGB values by alpha.
if (a != 0) {r = r * 255 / a}
Auto Trait Implementations
impl RefUnwindSafe for avif_data_t
impl !Send for avif_data_t
impl !Sync for avif_data_t
impl Unpin for avif_data_t
impl UnwindSafe for avif_data_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,