Skip to main content

WebPIDecoder

Struct WebPIDecoder 

Source
pub struct WebPIDecoder<'a, 'b> { /* private fields */ }
Expand description

The incremental decoder.

'a is the lifetime of what the caller lends to the decoder for its whole life: the decoding options and output buffer of a WebPDecoderConfig, or the output buffer of WebPINewDecoder, and the hooks of WebPISetIOHooks. 'b is the lifetime of the caller’s memory that an output buffer borrows. C’s params.output is user_output when the caller supplied a buffer and output otherwise. C keeps the alpha chunk in the VP8 decoder (dec->alpha_data); here it is a position in the input, kept by its owner.

Trait Implementations§

Source§

impl Drop for WebPIDecoder<'_, '_>

Source§

fn drop(&mut self)

Synchronizes the thread and tears the io down for a lossy decoding in progress, then releases the decoder, the memory buffer and the decoder’s own output buffer. No row is pending at this point, because every call ends with the worker synchronized; in map mode the caller’s buffer is gone, so the alpha chunk is not passed.

Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'a, 'b> !RefUnwindSafe for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> !Send for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> !Sync for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> Forget for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> Freeze for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> Move for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> Unpin for WebPIDecoder<'a, 'b>

§

impl<'a, 'b> UnsafeUnpin for WebPIDecoder<'a, 'b>

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.