Skip to main content

webp_rust/encoder/
mod.rs

1//! Pure Rust WebP encoder helpers.
2//!
3//! Current scope is still-image WebP encode.
4//! The lossless path targets `VP8L` with transforms, adaptive Huffman
5//! coding, simple backward references, and an optional color cache.
6//! The lossy path targets opaque still images and emits a minimal
7//! intra-only `VP8` bitstream.
8
9mod bit_writer;
10mod container;
11mod error;
12mod huffman;
13mod lossless;
14mod lossy;
15mod vp8_bool_writer;
16mod writer;
17
18pub use error::EncoderError;
19pub use lossless::{
20    encode_lossless_image_to_webp, encode_lossless_image_to_webp_with_options,
21    encode_lossless_image_to_webp_with_options_and_exif, encode_lossless_rgba_to_vp8l,
22    encode_lossless_rgba_to_vp8l_with_options, encode_lossless_rgba_to_webp,
23    encode_lossless_rgba_to_webp_with_options, encode_lossless_rgba_to_webp_with_options_and_exif,
24    LosslessEncodingOptions,
25};
26pub use lossy::{
27    encode_lossy_image_to_webp, encode_lossy_image_to_webp_with_options,
28    encode_lossy_image_to_webp_with_options_and_exif, encode_lossy_rgba_to_vp8,
29    encode_lossy_rgba_to_vp8_with_options, encode_lossy_rgba_to_webp,
30    encode_lossy_rgba_to_webp_with_options, encode_lossy_rgba_to_webp_with_options_and_exif,
31    LossyEncodingOptions,
32};