Skip to main content

Module encoder

Module encoder 

Source
Expand description

Pure Rust WebP encoder helpers.

Current scope is still-image WebP encode. The lossless path targets VP8L with transforms, adaptive Huffman coding, simple backward references, and an optional color cache. The lossy path targets opaque still images and emits a minimal intra-only VP8 bitstream.

Structs§

LosslessEncodingOptions
Lossless encoder tuning knobs.
LossyEncodingOptions
Lossy encoder tuning knobs.

Enums§

EncoderError
Error type used by encoding entry points.

Functions§

encode_lossless_image_to_webp
Encodes an ImageBuffer to a still lossless WebP container.
encode_lossless_image_to_webp_with_options
Encodes an ImageBuffer to a still lossless WebP container with explicit options.
encode_lossless_image_to_webp_with_options_and_exif
Encodes an ImageBuffer to a still lossless WebP container with explicit options and EXIF.
encode_lossless_rgba_to_vp8l
Encodes RGBA pixels to a raw lossless VP8L frame payload.
encode_lossless_rgba_to_vp8l_with_options
Encodes RGBA pixels to a raw lossless VP8L frame payload with explicit options.
encode_lossless_rgba_to_webp
Encodes RGBA pixels to a still lossless WebP container.
encode_lossless_rgba_to_webp_with_options
Encodes RGBA pixels to a still lossless WebP container with explicit options.
encode_lossless_rgba_to_webp_with_options_and_exif
Encodes RGBA pixels to a still lossless WebP container with explicit options and EXIF.
encode_lossy_image_to_webp
Encodes an ImageBuffer to a still lossy WebP container.
encode_lossy_image_to_webp_with_options
Encodes an ImageBuffer to a still lossy WebP container with explicit options.
encode_lossy_image_to_webp_with_options_and_exif
Encodes an ImageBuffer to a still lossy WebP container with explicit options and EXIF.
encode_lossy_rgba_to_vp8
Encodes RGBA pixels to a raw lossy VP8 frame payload.
encode_lossy_rgba_to_vp8_with_options
Encodes RGBA pixels to a raw lossy VP8 frame payload with explicit options.
encode_lossy_rgba_to_webp
Encodes RGBA pixels to a still lossy WebP container.
encode_lossy_rgba_to_webp_with_options
Encodes RGBA pixels to a still lossy WebP container with explicit options.
encode_lossy_rgba_to_webp_with_options_and_exif
Encodes RGBA pixels to a still lossy WebP container with explicit options and EXIF.