From 56c2272dbe5ee712117a468b362123e62f0f5243 Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Thu, 23 Dec 2021 11:45:19 +0100 Subject: [PATCH] Clarify pixel ordering; close #120 --- qoi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qoi.h b/qoi.h index ab9d4582..b733bb21 100644 --- a/qoi.h +++ b/qoi.h @@ -91,9 +91,9 @@ struct qoi_header_t { uint8_t colorspace; // 0 = sRGB with linear alpha, 1 = all channels linear }; -Images are encoded from top to bottom, left to right. The decoder and encoder -start with {r: 0, g: 0, b: 0, a: 255} as the previous pixel value. An image is -complete when all pixels specified by width * height have been covered. +Images are encoded row by row, left to right, top to bottom. The decoder and +encoder start with {r: 0, g: 0, b: 0, a: 255} as the previous pixel value. An +image is complete when all pixels specified by width * height have been covered. Pixels are encoded as - a run of the previous pixel