#[repr(C)]pub struct avif_data_t {
pub primary_data: *const u8,
pub primary_size: usize,
pub alpha_data: *const u8,
pub alpha_size: usize,
pub premultiplied_alpha: u8,
/* private fields */
}
Expand description
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 Freeze for avif_data_t
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§
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