Lilith River
29e43d2314
fix: handle WhiteIsZero for extended bit depths, add comprehensive tests
Fix invert_colors to support extended bit depths (9-15 promoted to u16,
17-31 promoted to u32). Byte-wise NOT doesn't work for promoted samples
because it flips unused upper bits; use (max - value) instead.
Add regression tests covering the extended depth matrix:
- Gray 10/14/24-bit (contiguous, BlackIsZero)
- RGB 10/14/24-bit (contiguous)
- RGB 10/12/14/24-bit (planar)
- Gray 12-bit with WhiteIsZero (synthetic 4x2 image)
- Gray 12-bit with horizontal predictor (synthetic 4x2 image)
2026-03-10 06:02:19 -06:00
..
2020-09-05 21:57:51 +02:00
2025-10-31 06:17:35 +00:00
2026-01-29 10:53:00 -08:00
2026-03-10 06:02:19 -06:00
2026-02-14 06:55:29 +01:00
2026-02-14 06:55:29 +01:00
2026-03-06 09:31:23 +01:00
2026-03-06 09:31:23 +01:00
2026-03-06 09:31:23 +01:00
2026-03-10 06:02:19 -06:00
2026-03-08 03:00:15 +01:00
2026-03-06 09:31:23 +01:00
2019-02-01 11:08:13 +01:00
2026-03-06 08:34:19 +00:00
2026-03-06 09:31:23 +01:00
2026-03-06 09:31:23 +01:00
2026-03-06 09:31:23 +01:00
2026-03-06 09:31:23 +01:00
2025-07-10 23:48:20 +02:00