mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-28 12:08:10 -06:00
The Coolpix P330, P7700 and P7800 NRWs carry compression 34713 with no maker note 0x0096 table, 12 bits, one sample per pixel and a single strip of exactly width * height * 2 bytes. The strip is one big-endian 16-bit word per pixel, row-major with no header or padding; the sample is the word >> 4. The layout was found by black-box analysis of the CC0 raw.pixls.us files (strip byte-count identity, same-colour smoothness, correlation with the embedded JPEG), not from any other converter's code. The group is tried after the other packed layouts, so it cannot take a strip they handle. Black level: these files have no 0x003d and no NRW block and no masked pixels, so it is 200 (the floor of the P7800 frame is 201; the other Coolpix NRWs state 200), never above the darkest sample. White comes from the data. Other Nikon NEF/NRW files decode identically (278 checked). Bumps RENDER_CACHE_VERSION to 52.