From 948b23ca1fabfe65ab36d866031422e92840282f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 1 Mar 2026 03:56:16 +0100 Subject: Fix mistakes, and finish ppmtolss16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- lss16.5 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lss16.5') diff --git a/lss16.5 b/lss16.5 index fad1dd8..0740e4f 100644 --- a/lss16.5 +++ b/lss16.5 @@ -16,7 +16,7 @@ Header format: Image width (number of pixels horizontally): unsigned 16-bit integer, little endian. -Image height (number of pixels horizontally): unsigned 16-bit integer, little endian, +Image height (number of pixels vertically): unsigned 16-bit integer, little endian, however the most significant bit must be cleared. Colour palette: 16 RGB-tuples, each tuple is 3 bytes: red, green, blue. @@ -32,7 +32,7 @@ first nibble, and the higher part of the byte makes up the second nibble. At the beginning of each row, the previous pixel is assumed to use the 0-indexed colour. -If a nibble as the value of the the previous pixel colour index, a run-length is encoded, +If a nibble has the value of the the previous pixel colour index, a run-length is encoded, otherwise the next pixel has the colour with the index encoded in the nibble. If the nibble encodes a run-length, it can either be 0 or the number of times the -- cgit v1.2.3-70-g09d2