Expand description
Utility functions for decoding images with ICC profile extraction.
This module provides helpers for decoding JPEG images while preserving ICC profile information, which is critical for accurate quality metrics.
§Example
ⓘ
use codec_eval::{decode::decode_jpeg_with_icc, ImageData};
let jpeg_data = std::fs::read("test.jpg")?;
let image = decode_jpeg_with_icc(&jpeg_data)?;
// If the JPEG has an ICC profile, it will be automatically applied
// when computing metrics via EvalSession::evaluate_image()Functions§
- decode_
jpeg_ with_ icc - Decode a JPEG image with ICC profile extraction.
- jpeg_
decode_ callback - Create an ICC-aware decode callback for use with
EvalSession::add_codec_with_decode.
Type Aliases§
- Jpeg
Decode Callback - Type alias for JPEG decode callbacks.