Skip to main content

Module jpeg

Module jpeg 

Source
Expand description

JPEG detection and passthrough decoder for .ithmb files.

T-prefix .ithmb files contain an embedded JPEG stream rather than raw pixel data. This module detects JPEG streams by their SOI marker, decodes them via the jpeg_decoder crate, applies EXIF orientation if present, and outputs BGRA8 pixel data.

Functions§

decode
Decodes a JPEG stream to BGRA8 output.
is_jpeg
Returns true if src starts with a JPEG SOI marker (0xFF, 0xD8).