fix: handle WhiteIsZero for non-standard sub-byte depths (3/5/6/7-bit)
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)
This commit is contained in:
1 parent
29e43d2314
commit
fb1afc81e9
7 files changed
+74
-1
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user