Expand description
Image codecs: PNG (encode + decode) and JPEG (decode only).
Pure-Rust, permissive-licensed backends: the png crate and
jpeg-decoder. All entry points return packed RGB8 and fail closed to a
crate::specialized_libs::computer_vision::cv::error::CvError on malformed
input — no panics, no unwrap on the decode/encode paths.
Modules§
- jpeg_
decode - JPEG decode → packed RGB8. Cold path (
Vecallowed). - png_
decode - PNG decode → packed RGB8. Cold path (
Vecallowed). - png_
encode - RGB8 view → PNG byte stream. Cold path (
Vecallowed).
Functions§
- decode_
jpeg - Decode a JPEG byte stream into packed RGB8 plus dimensions.
- decode_
png - Decode a PNG byte stream into packed RGB8 plus dimensions.
- encode_
png - Encode a packed RGB8
RgbViewas a PNG, returning the encoded bytes.