Skip to main content

Module formats

Module formats 

Source
Expand description

RAW format decoders.

This module provides format-specific decoders for various RAW image formats. Use RawFile::open() as the common entry point for automatic format detection.

Re-exports§

pub use registry::available_decoders;
pub use registry::available_encoders;

Modules§

export
Encoder selection and per-implementation configuration.
registry
Enumeration of the codec implementations compiled into this build.

Structs§

DngExportConfig
DNG export configuration.
GifDecodeConfig
Per-implementation configuration for the gif decoder.
HeicAuxImage
Descriptor of one auxiliary image inside a HeicFile.
HeicFile
A parsed HEIC/HEIF file.
ImageAvifDecodeConfig
Per-implementation configuration for the image (avif-native) decoder.
ImageProbe
A cheap, header-only summary of a standard image.
JxlOxideDecodeConfig
Per-implementation configuration for the jxl-oxide decoder.
LibheifDecodeConfig
Per-implementation configuration for the libheif decoder.
LibwebpDecodeConfig
Per-implementation configuration for the libwebp decoder.
ResvgDecodeConfig
Per-implementation configuration for the resvg SVG renderer.
TiffDecodeConfig
Per-implementation configuration for the tiff decoder.
ZuneJpegDecodeConfig
Per-implementation configuration for the zune-jpeg JPEG decoder.
ZunePngDecodeConfig
Per-implementation configuration for the zune-png PNG decoder.
ZunePpmDecodeConfig
Per-implementation configuration for the zune-ppm decoder.

Enums§

DecodeOptions
Selects which decoder implementation handles a standard image, and carries that implementation’s configuration.
HeicAuxKind
Classification of an auxiliary/derived image inside a HEIC file.
RawFile
Common entry point for parsing RAW files.
RawFormat
Supported RAW file formats.
StandardFormat
Supported standard (non-RAW) image formats.

Functions§

decode_jxl_partial
Decode a JPEG XL stream that may be truncated, returning the best available render.
decode_standard_image
Decode a standard (non-RAW) image to an RgbImage using each format’s default decoder implementation.
decode_standard_image_with
Decode a standard (non-RAW) image with an explicitly selected decoder implementation.
detect_standard_format
Detect a standard image format from the first bytes of image data.
encode_rgb_image
Encode a linear RGB image to a file.
encode_rgb_image_to_vec
Encode a linear RGB image to an in-memory byte buffer.
encode_rgb_image_to_writer
Encode a linear RGB image to any writer.
export_dng
Export an RGB image as a demosaiced linear DNG file.
probe_standard_image
Read an image’s format and dimensions from its header, without decoding.
read_standard_image_metadata
Extract EXIF metadata from a standard image without decoding pixel data.