From c03edb2f2658c13b5f84ee59e3469e0b0b6eb5d1 Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Thu, 25 Nov 2021 09:43:11 +0100 Subject: [PATCH] Fix naming of chunks in the data format documentation; close #9 --- qoi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qoi.h b/qoi.h index 083d532..ab206f1 100644 --- a/qoi.h +++ b/qoi.h @@ -106,26 +106,26 @@ QOI_RUN_8 { u8 run : 5; // 5-bit run-length repeating the previous pixel: 1..32 } -QOI_RUN16 { +QOI_RUN_16 { u8 tag : 3; // b011 u16 run : 13; // 13-bit run-length repeating the previous pixel: 33..8224 } -QOI_DIFF8 { +QOI_DIFF_8 { u8 tag : 2; // b10 u8 dr : 2; // 2-bit red channel difference: -1..2 u8 dg : 2; // 2-bit green channel difference: -1..2 u8 db : 2; // 2-bit blue channel difference: -1..2 } -QOI_DIFF16 { +QOI_DIFF_16 { u8 tag : 3; // b110 u8 dr : 5; // 5-bit red channel difference: -15..16 u8 dg : 4; // 4-bit green channel difference: -7.. 8 u8 db : 4; // 4-bit blue channel difference: -7.. 8 } -QOI_DIFF24 { +QOI_DIFF_24 { u8 tag : 4; // b1110 u8 dr : 5; // 5-bit red channel difference: -15..16 u8 dg : 5; // 5-bit green channel difference: -15..16