Skip to main content

Crate flashraw_codecs

Crate flashraw_codecs 

Source
Expand description

§flashraw-codecs

Reusable RAW compression codecs. Each codec decodes into caller-provided buffers (or row sinks) and never allocates full-image intermediates.

Codecs are independent of container formats so they can be fuzzed, benchmarked and tested in isolation (see fuzz/ and benches/).

Re-exports§

pub use packed::PackedLayout;
pub use packed::unpack;
pub use packed::unpack_row;
pub use packed::unpack_row_scalar;

Modules§

canon_cr2
Canon CR2 lossless-JPEG payload with vertical slicing.
canon_crw
Canon CRW (“CIFF”) compressed raw codec, used by the PowerShot G1..G6, Pro1, S30..S70 and EOS D30/D60/10D/300D generation of cameras.
canon_crx
Canon CRX: the raw codec of CR3 files (EOS R/M/D series since 2018, PowerShots).
canon_sraw
Canon sRAW / mRAW (CR2 “small raw”) decoding.
dct12
12-bit DCT tiles used by early Blackmagic cinema DNGs (compression 7 with an SOF1 frame instead of SOF3).
deflate
Deflate (zlib) payloads and TIFF/DNG predictors.
dng_opcodes
DNG opcode lists (OpcodeList1/2/3, DNG spec 1.3+ chapter 7).
fuji_compressed
Fujifilm compressed RAF codec (lossless and lossy, X-Trans and Bayer).
hasselblad
Hasselblad lossless JPEG variant (3FR/FFF, Imacon/Flexcolor, H/X/CFV backs).
jpeg
Baseline (lossy) JPEG decoding for lossy DNG tiles and preview conversion.
kodak
Kodak entropy coders and pixel transforms.
leaf
Restart-interval parallel lossless JPEG, as written by Leaf (and Phase One-era Leaf/Mamiya backs) for MOS files.
ljpeg
Lossless JPEG (ITU T.81 process 14, SOF3) decoder.
misc_packed
Packings used by headerless sensor dumps (CHDK, phone/action-camera dumps, Raspberry Pi, old compacts).
nikon_huffman
Nikon NEF Huffman compression, plus the predictive Huffman engine it shares with Pentax PEF and Samsung SRW (compression 32772).
nikon_packed
The “load flags” family of bit-packed layouts.
olympus
Olympus / OM System ORF lossless compression.
packed
Unpacking of uncompressed, bit-packed sensor data.
panasonic
Panasonic / Leica RW2 payload codecs (RawFormat 4–8).
pentax_huffman
Pentax PEF Huffman compression (TIFF compression 65535).
phaseone
Phase One IIQ entropy coders.
samsung
Samsung SRW compressions.
sony_arw1
Sony ARW1 (DSLR-A100 .. A390 era) Huffman-coded column stream.
sony_arw2
Sony ARW2 “cooked” lossy compression.
sony_arw6
Sony ARW “compressed” format 6 (ILCE-7M5 “Compressed”/“Compressed HQ”).
sony_arw6_curve
Output tone curve of the Sony ARW6 (“LLVC3”) codec: 12-bit decoded codes to 16-bit linear sensor values (identity up to 47, then increasingly coarse steps, saturating at 39002). Sony-defined data table.
sony_ycc
Sony “lossless compressed” S/M sizes: YCbCr lossless JPEG tiles.
vc5
SMPTE ST 2073 (VC-5) wavelet codec as used by GoPro .GPR files (DNG compression 9).
x3f
Sigma / Foveon X3F entropy coders.