fix(raw): match LibRaw on RAF and unpacked NEF layouts; drop frame copies
Cross-checking synthetic files with LibRaw's dcraw_emu showed it reads uncompressed RAF samples as little-endian words and unpacked data under the Nikon compression tag as big-endian words shifted left by four; the readers and test writers now do the same (CR2, lossless NEF, ARW2 and PEF already decoded identically, ~86 dB). The default crop and the final orientation step no longer copy a full frame when they change nothing, lowering the 24 MP peak by two frame copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
6 files changed
+72
-43
No files matched your search
@@ -43,7 +43,7 @@ public sealed class NativeRawTests(TestContext context)
|
||||
[Theory]
|
||||
[Case(NefEncoding.Lossless, 14)]
|
||||
[Case(NefEncoding.Lossless, 12)]
|
||||
[Case(NefEncoding.Unpacked, 14)]
|
||||
[Case(NefEncoding.Unpacked, 12)]
|
||||
[Case(NefEncoding.Packed, 12)]
|
||||
public void NefEncodings(NefEncoding encoding, int bits)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user