[−][src]Struct avif_parse::c_api::avif_data_t
Result of parsing an AVIF file. Contains AV1-compressed data.
Fields
primary_data: *const u8AV1 data for color channels
primary_size: usizealpha_data: *const u8AV1 data for alpha channel (may be NULL if the image is fully opaque)
alpha_size: usizepremultiplied_alpha: u80 = 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[src]
impl !Send for avif_data_t[src]
impl !Sync for avif_data_t[src]
impl Unpin for avif_data_t[src]
impl UnwindSafe for avif_data_t[src]
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,
pub 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.
pub 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>,