aboutsummaryrefslogtreecommitdiffstats
path: root/liblss16.h
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 /liblss16.h
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 '')
-rw-r--r--liblss16.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/liblss16.h b/liblss16.h
index b02b338..3747c2f 100644
--- a/liblss16.h
+++ b/liblss16.h
@@ -224,7 +224,7 @@ struct liblss16_encoder {
uint8_t header_position;
uint8_t previous;
uint8_t nbuffered;
- uint8_t buffered[6];
+ uint8_t buffered[7];
};
@@ -305,8 +305,8 @@ int liblss16_encoder_init(struct liblss16_encoder *encoder, const struct liblss1
* @param encoder Encoder state, must have been initialised with
* `liblss16_encoder_init` before the first call
* @param buffer Output buffer for the image data
- * @param size Size of `buffer`
- * @param written_out The number of bytes written to `size`, must be at least 1
+ * @param size Size of `buffer`, must be at least 1
+ * @param written_out The number of bytes written to `size`
* @param pixels Buffer with pixels to encode; the pixels are to preencoded
* (before the function is called) with the colour index of
* each pixel. Pixels are input primarily from to the top