Skip to main content

ALPHDecoder

Struct ALPHDecoder 

Source
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: i32

Width of the alpha plane.

§height: i32

Height of the alpha plane.

§method: i32

Compression method (ALPHA_NO_COMPRESSION or ALPHA_LOSSLESS_COMPRESSION).

§filter: WEBP_FILTER_TYPE

Prediction filter of the alpha plane.

§pre_processing: i32

Pre-processing level.

§vp8l_dec: Option<Box<VP8LDecoder>>

The lossless decoder of the alpha data; None where C has NULL.

§io: VP8Io

Dimensions and crop window of the decoding.

§use_8b_decode: bool

Although 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.

Trait Implementations§

Source§

impl Default for ALPHDecoder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.