diff options
Diffstat (limited to 'src/lzw.h')
-rw-r--r-- | src/lzw.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -4,6 +4,7 @@ * http://www.opensource.org/licenses/mit-license.php * * Copyright 2017 Michael Drake <michael.drake@codethink.co.uk> + * Copyright 2021 Michael Drake <tlsa@netsurf-browser.org> */ #ifndef LZW_H_ @@ -19,11 +20,9 @@ /** Maximum LZW code size in bits */ #define LZW_CODE_MAX 12 - /* Declare lzw internal context structure */ struct lzw_ctx; - /** LZW decoding response codes */ typedef enum lzw_result { LZW_OK, /**< Success */ @@ -37,7 +36,6 @@ typedef enum lzw_result { LZW_BAD_CODE, /**< Error: Bad LZW code */ } lzw_result; - /** * Create an LZW decompression context. * @@ -71,8 +69,8 @@ lzw_result lzw_decode_init( struct lzw_ctx *ctx, uint8_t minimum_code_size, const uint8_t *input_data, - uint32_t input_length, - uint32_t input_pos); + size_t input_length, + size_t input_pos); /** * Read input codes until end of LZW context owned output buffer. @@ -112,8 +110,8 @@ lzw_result lzw_decode_init_map( uint32_t transparency_idx, const uint32_t *colour_table, const uint8_t *input_data, - uint32_t input_length, - uint32_t input_pos); + size_t input_length, + size_t input_pos); /** * Read LZW codes into client buffer, mapping output to colours. |