Fix: Luma unpack test
The compressed sample had the wrong value and was unpacking to a non- zero delta-green value. This threw off the following iterations.
This commit is contained in:
@@ -386,7 +386,7 @@ mod test {
|
||||
let compressed = [
|
||||
(QOI_OP_LUMA | 0b0011_1111),
|
||||
(0b1111_1111), // Diff( 31, 7, 7) -> Pix (38, 31, 38)
|
||||
(QOI_OP_LUMA | 0b0011_0000),
|
||||
(QOI_OP_LUMA | 0b0010_0000),
|
||||
(0b1000_1000), // Diff( 0, 0, 0) -> Pix (0, 0, 0)
|
||||
(QOI_OP_LUMA | 0b0010_0001),
|
||||
(0b1111_1111), // Diff( 1, 7, 7) -> Pix (8, 1, 8)
|
||||
|
||||
Reference in New Issue
Block a user