mln-rs-engine 0.0.22

Part of mln-rs, a MapLibre map renderer written in Rust. Depend on mln-rs instead.
Documentation
//! Images: the codecs (`decode_image` for PNG, JPEG and WebP, and
//! `encode_png`), which fail with an error that carries a message.
//!
//! `decoder::decode` is how the map's code decodes images: with
//! `decode_image` natively, and with the browser's decoders on wasm.
//!
//! The style's images, as the renderer's layouts request them, are in
//! `image_store`, and the sprite parser in [`sprite`].

#[cfg(target_family = "wasm")]
mod browser_decoder;
pub(crate) mod decoder;
#[expect(clippy::module_inception, reason = "`image::image` holds `decode_image`")]
mod image;
pub(crate) mod image_store;
#[cfg(not(target_family = "wasm"))]
mod jpeg_reader;
mod png_reader;
pub(crate) mod png_writer;
pub(crate) mod premultiply;
pub mod sprite;
mod webp_reader;

pub use image::decode_image;
pub use image_store::{ImageStore, ImageType};
pub use png_reader::decode_png;
pub use png_writer::encode_png;