jpegli-rs 0.12.0

Pure Rust JPEG encoder/decoder - port of Google's jpegli with perceptual optimizations
Documentation
//! Color space conversions for JPEG encoding and decoding.
//!
//! This module provides conversions between:
//! - RGB and YCbCr (standard JPEG)
//! - RGB and XYB (jpegli perceptual color space)
//! - Grayscale handling
//! - CMYK support

pub mod icc;
pub mod xyb;
pub mod ycbcr;

// Fast SIMD RGB→YCbCr conversion using the `yuv` crate (10-150× faster)
#[cfg(feature = "yuv")]
pub mod fast_yuv;

#[cfg(test)]
mod xyb_tests;

// Re-export commonly used items from ycbcr
pub use ycbcr::{rgb_to_ycbcr_f32, ycbcr_to_rgb_f32};

// Decoder-only YCbCr->RGB conversions
#[cfg(feature = "decoder")]
pub use ycbcr::{
    gray_f32_to_gray_f32, gray_f32_to_gray_u8, gray_f32_to_rgb_f32, gray_f32_to_rgb_u8,
    ycbcr_planes_f32_to_rgb_f32, ycbcr_planes_f32_to_rgb_u8, ycbcr_planes_i16_to_rgb_u8,
    ycbcr_to_rgb,
};

// Re-export commonly used items from xyb