27#define LZW_CODE_MAX 12
78 fl::size input_length,
93 const fl::u8 **
const output_data,
116 fl::u32 transparency_idx,
117 const fl::u32 *colour_table,
119 fl::size input_length,
139 fl::u32 *output_data,
140 fl::u32 output_length,
lzw_result lzw_decode_init(struct lzw_ctx *ctx, fl::u8 minimum_code_size, const fl::u8 *input_data, fl::size input_length, fl::size input_pos) FL_NOEXCEPT
Initialise an LZW decompression context for decoding.
lzw_result lzw_context_create(struct lzw_ctx **ctx) FL_NOEXCEPT
Create an LZW decompression context.
void lzw_context_destroy(struct lzw_ctx *ctx) FL_NOEXCEPT
Destroy an LZW decompression context.
lzw_result
LZW decoding response codes.
@ LZW_NO_DATA
Error: Out of data.
@ LZW_EOI_CODE
Error: End of Information code.
@ LZW_NO_COLOUR
Error: No colour map provided.
@ LZW_BAD_CODE
Error: Bad LZW code.
@ LZW_NO_MEM
Error: Out of memory.
@ LZW_BAD_PARAM
Error: Bad function parameter.
@ LZW_OK_EOD
Success; reached zero-length sub-block.
@ LZW_BAD_ICODE
Error: Bad initial LZW code.
lzw_result lzw_decode_init_map(struct lzw_ctx *ctx, fl::u8 minimum_code_size, fl::u32 transparency_idx, const fl::u32 *colour_table, const fl::u8 *input_data, fl::size input_length, fl::size input_pos) FL_NOEXCEPT
Initialise an LZW decompression context for decoding to colour map values.
lzw_result lzw_decode(struct lzw_ctx *ctx, const fl::u8 **const output_data, fl::u32 *output_written) FL_NOEXCEPT
Read input codes until end of LZW context owned output buffer.
lzw_result lzw_decode_map(struct lzw_ctx *ctx, fl::u32 *output_data, fl::u32 output_length, fl::u32 *output_written) FL_NOEXCEPT
Read LZW codes into client buffer, mapping output to colours.
Base definition for an LED controller.