Struct webp::Encoder[][src]

pub struct Encoder<'a> { /* fields omitted */ }
Expand description

An encoder for WebP images. It uses the default configuration of libwebp.

Implementations

Creates a new encoder from the given image data. The image data must be in the pixel layout of the color parameter.

Creates a new encoder from the given image.

Creates a new encoder from the given image data in the RGB pixel layout.

Creates a new encoder from the given image data in the RGBA pixel layout.

Emcode the image with the given quality. The image quality must be between 0.0 and 100.0 inclusive for minimal and maximal quality respectively.

Emcode the image losslessly.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.