feat(raw): native CR2, NEF, ARW, PEF and RAF decoders
Each container reader builds a RawFrame for the shared pipeline: CR2 sliced lossless JPEG with SensorInfo crop, masked-column black and ColorData WB; NEF uncompressed and Nikon Huffman (lossy type 1, lossless, lossy type 2 incl. split); ARW uncompressed and ARW2 cRAW with tone curve; PEF uncompressed and Pentax Huffman; RAF uncompressed Bayer and X-Trans with FujiIFD. Colour comes from a dcraw adobe_coeff matrix table; bodies without an entry are reported unsupported so the caller uses the embedded preview. Native RAWs detect the sensor's saturation level for clipping only, never rescaling per frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
14 files changed
+1974
-24
No files matched your search
@@ -112,9 +112,9 @@ internal sealed class RawFrame
|
||||
/// <summary>White level per sample plane, in linearised units.</summary>
|
||||
public required double[] White { get; init; }
|
||||
|
||||
/// <summary>Lower the white level to the data maximum when that exceeds 75 % of it (LibRaw adjust_maximum_thr): native
|
||||
/// RAWs state a nominal bit-depth maximum while sensors saturate earlier.</summary>
|
||||
public bool AdjustWhiteToData { get; init; }
|
||||
/// <summary>Find the clip threshold in the data: native RAWs state a nominal bit-depth maximum while sensors saturate
|
||||
/// earlier. Only clip detection uses it; the white level keeps scaling every frame the same (no flicker).</summary>
|
||||
public bool DetectSaturation { get; init; }
|
||||
|
||||
public required DngColorProfile Color { get; init; }
|
||||
public byte[]? OpcodeList1 { get; init; }
|
||||
|
||||
Reference in new issue
Block a user