mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-22 03:33:22 -05:00
Decode Nikon Huffman-compressed NEF (compression 34713): lossless and lossy (type 1 and 2) at 12 and 14 bits, with the maker-note 0x96 linearization curve, predictor seeds and either byte order. Clean-room: 0x96 layout and encoding-table sizes from prose write-ups (Clevy, Claff); the fixed Huffman tables were recovered by black-box analysis of CC0 raw.pixls.us samples (compressed vs uncompressed shots of the same scene) and verified on ~45 files from ~35 bodies. Lossy-after-split files stay preview only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>