aboutsummaryrefslogtreecommitdiffstats
path: root/lss16.5
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-03-01 03:56:16 +0100
committerMattias Andrée <m@maandree.se>2026-03-01 03:56:16 +0100
commit948b23ca1fabfe65ab36d866031422e92840282f (patch)
tree07ff00b4959f734f65761896d39920e27396feb7 /lss16.5
parentfix typos (diff)
downloadliblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.gz
liblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.bz2
liblss16-948b23ca1fabfe65ab36d866031422e92840282f.tar.xz
Fix mistakes, and finish ppmtolss16
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'lss16.5')
-rw-r--r--lss16.54
1 files changed, 2 insertions, 2 deletions
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