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 --- liblss16.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'liblss16.h') 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 -- cgit v1.2.3-70-g09d2