For sub-byte depths where samples cross byte boundaries (3, 5, 6, 7-bit), byte-wise NOT corrupts samples. Added per-sample inversion that extracts each N-bit sample from the packed stream, computes (max - value), and writes it back. Tests cover: - 3/5/7-bit BlackIsZero (verify basic decoding) - 3-bit and 6-bit WhiteIsZero (verify per-sample inversion)
148 B
148 B