pub struct ALPHDecoder {
pub width: i32,
pub height: i32,
pub method: i32,
pub filter: WEBP_FILTER_TYPE,
pub pre_processing: i32,
pub vp8l_dec: Option<Box<VP8LDecoder>>,
pub io: VP8Io,
pub use_8b_decode: bool,
pub prev_line: Option<usize>,
}Expand description
The alpha decoder. Default is the zeroed structure of ALPHNew.
The C field output is not stored: the alpha plane belongs to the VP8
decoder, which passes it to each call, and prev_line is a position in it
(ADR 0003, “Decoding context per call”). io keeps no opaque that points
back here; the VP8L alpha functions take this decoder instead.
Fields§
§width: i32Width of the alpha plane.
height: i32Height of the alpha plane.
method: i32Compression method (ALPHA_NO_COMPRESSION or ALPHA_LOSSLESS_COMPRESSION).
filter: WEBP_FILTER_TYPEPrediction filter of the alpha plane.
pre_processing: i32Pre-processing level.
vp8l_dec: Option<Box<VP8LDecoder>>The lossless decoder of the alpha data; None where C has NULL.
io: VP8IoDimensions and crop window of the decoding.
use_8b_decode: boolAlthough the alpha channel requires only one byte per pixel, the VP8L decoder sometimes needs four bytes per pixel internally during decoding.
prev_line: Option<usize>Last output row, as a position in the alpha plane; None where C has
NULL.