Commit Graph
2 Commits
Author SHA1 Message Date
Claude 6aacaff882 fix(codecs): size JPEG bit-writer buffers in 64-bit arithmetic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 10:14:41 +00:00
Claude 990c515b3b feat(codecs): add baseline and lossless JPEG encoders
Baseline encoder: IJG quality scaling, 4:4:4/4:2:2/4:2:0, optional
optimised Huffman tables, restart intervals, caller APP1 segments,
ImageBuffer input with optional ordered dither; parallel colour
conversion and float FDCT per MCU row, sequential entropy coding.
Lossless (SOF3) encoder with predictors 1-7 and point transform for DNG.

Tests: round-trip PSNR gates, monotonic quality, lossless round trips
for every predictor and precision, seeded fuzzing, restart resync,
DCT scaling and a 24 MP single-core decode benchmark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 09:44:20 +00:00