lightcraft/crates/codecs/tests
JordyUSA cbc0e2d7db LR-HDR-EXPORT: HDR PNG export as 16-bit Rec. 2020 PQ (cICP, cLLI)
With HDR output on, a photo edited in HDR exports as a 16-bit PNG with the PQ
curve in Rec. 2020 (SDR white at HDR_REFERENCE_WHITE_NITS), described by a
`cICP` chunk (PNG third edition: BT.2020 primaries, PQ, RGB, full range) and
a `cLLI` content light level chunk (the levels the HDR AVIF records). EXIF,
XMP and print resolution are kept; no ICC profile next to cICP. Photos without
an HDR edit, and HDR edits with HDR output off, export as before.

`codecs::encode_png_pq` sits next to `encode_avif_pq` and takes the same
input. Follow-up to #646, ported from #466.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 12:46:27 +07:00
..
bench.rs M1.1: codecs fuzz/corpus/bench tests, thumbnail options, README 2026-09-30 12:26:05 -04:00
corpus.rs M1.1: codecs fuzz/corpus/bench tests, thumbnail options, README 2026-09-30 12:26:05 -04:00
fuzz.rs LR-HDR-EXPORT: ISO 21496-1 gain map JPEG codec 2026-10-09 22:01:35 -05:00
header.rs Batch fix: the header test's RLE PSD fixture uses PackBits runs of at most 128 bytes 2026-10-08 22:23:51 +00:00
heif.rs LR-IMP-FORMATS: HEIC decodes like libheif; release builds include it 2026-10-09 14:38:00 -07:00
roundtrip.rs LR-HDR-EXPORT: HDR PNG export as 16-bit Rec. 2020 PQ (cICP, cLLI) 2026-10-11 12:46:27 +07:00