pub struct WebPDecBuffer<'a> {
pub colorspace: WEBP_CSP_MODE,
pub width: i32,
pub height: i32,
pub slow_memory: bool,
pub u: WebPDecBufferPlanes,
pub pad: [u32; 4],
pub storage: PlaneStorage<'a, u8>,
}Expand description
Generic structure describing the output sample buffer (C: WebPDecBuffer).
storage is C’s private_memory when the object allocated the samples, and
the caller’s slices when C would set is_external_memory. The C field
is_external_memory is therefore the variant of storage, and its values 2
and more, which mark slow external memory, are slow_memory (ADR 0003,
amended 2026-11-07, WP12).
Fields§
§colorspace: WEBP_CSP_MODEColorspace of the samples (C: colorspace).
width: i32Width in pixels (C: width).
height: i32Height in pixels (C: height).
slow_memory: boolSlow external memory (C: is_external_memory >= 2): the decoder avoids
multiple reads and writes of it. Meaningful only with External
storage, and false for the other storages.
u: WebPDecBufferPlanesThe planes of the buffer, selected by colorspace (C: u).
pad: [u32; 4]Padding for later use.
storage: PlaneStorage<'a, u8>The memory that holds the samples (C: private_memory, or the caller’s memory).