From 8b99642e4c04ece9626b4e4d51faa917faf7bdf6 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Tue, 7 May 2024 09:51:42 -0500 Subject: [PATCH] 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. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ddb907a..c7f1c56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)