feat(imaging): managed decoder provider, decoder chains and format tiers

ManagedDecoderProvider decodes JPEG/PNG/TIFF natively, DNG and the
supported RAWs through RawDecoder, and falls back to the largest
suitable embedded JPEG (oriented like the main image) for other RAWs,
CR3, HEIF and unsupported bodies. Requests use JPEG DCT scaling, CFA
binning when MaxLongEdge allows, bilinear demosaic for thumbnails and
analysis, and ForcePreview. DecoderFactory builds the client (WIC then
managed) and server chains and the per-format tier table; Probe gives
the per-file tier without decoding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 11:17:15 +00:00
1 parent 7e157cbf72
commit 4a817340b8
9 files changed
+493 -8

No files matched your search

@@ -31,7 +31,7 @@ public sealed class HighlightTests(TestContext context)
{
using var scene = Patches();
var dng = SyntheticDng.Write(scene, new DngSpec());
using var result = RawDecoder.Decode(new MemoryStream(dng), "h.dng", new RawDecodeOptions { Quality = quality, Binning = binning });
using var result = RawDecoder.Decode(new MemoryStream(dng), "h.dng", new RawDecodeOptions { Quality = quality, MaxLongEdge = binning ? 1 : 0 });
var s = binning ? 2 : 1;
var (r0, g0, b0) = Pixel(result.Image, 16 / s, 32 / s);
var (r1, g1, b1) = Pixel(result.Image, 48 / s, 32 / s);