diff options
| author | Mattias Andrée <m@maandree.se> | 2026-03-01 03:56:16 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-03-01 03:56:16 +0100 |
| commit | 948b23ca1fabfe65ab36d866031422e92840282f (patch) | |
| tree | 07ff00b4959f734f65761896d39920e27396feb7 /lss16.5 | |
| parent | fix typos (diff) | |
| download | liblss16-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 '')
| -rw-r--r-- | lss16.5 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
