Clarify pixel ordering; close #120
This commit is contained in:
parent
be12bf0b50
commit
56c2272dbe
6
qoi.h
6
qoi.h
@ -91,9 +91,9 @@ struct qoi_header_t {
|
|||||||
uint8_t colorspace; // 0 = sRGB with linear alpha, 1 = all channels linear
|
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
|
Images are encoded row by row, left to right, top to bottom. The decoder and
|
||||||
start with {r: 0, g: 0, b: 0, a: 255} as the previous pixel value. An image is
|
encoder start with {r: 0, g: 0, b: 0, a: 255} as the previous pixel value. An
|
||||||
complete when all pixels specified by width * height have been covered.
|
image is complete when all pixels specified by width * height have been covered.
|
||||||
|
|
||||||
Pixels are encoded as
|
Pixels are encoded as
|
||||||
- a run of the previous pixel
|
- a run of the previous pixel
|
||||||
|
Loading…
Reference in New Issue
Block a user