Prusa MINI Firmware overview
|
Go to the documentation of this file.
30 #if HEATSHRINK_DYNAMIC_ALLOC
31 #define HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(BUF) \
32 ((BUF)->input_buffer_size)
33 #define HEATSHRINK_DECODER_WINDOW_BITS(BUF) \
35 #define HEATSHRINK_DECODER_LOOKAHEAD_BITS(BUF) \
36 ((BUF)->lookahead_sz2)
38 #define HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(_) \
39 HEATSHRINK_STATIC_INPUT_BUFFER_SIZE
40 #define HEATSHRINK_DECODER_WINDOW_BITS(_) \
41 (HEATSHRINK_STATIC_WINDOW_BITS)
42 #define HEATSHRINK_DECODER_LOOKAHEAD_BITS(BUF) \
43 (HEATSHRINK_STATIC_LOOKAHEAD_BITS)
56 #if HEATSHRINK_DYNAMIC_ALLOC
60 uint16_t input_buffer_size;
70 #if HEATSHRINK_DYNAMIC_ALLOC
#define HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(_)
Definition: heatshrink_decoder.h:38
void heatshrink_decoder_reset(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:83
size_t buf_size
Definition: heatshrink_decoder.cpp:43
Definition: heatshrink_decoder.h:26
Definition: heatshrink_decoder.h:21
Definition: heatshrink_decoder.h:12
#define BACKREF_COUNT_BITS(HSD)
Definition: heatshrink_decoder.cpp:122
uint16_t output_index
Definition: heatshrink_decoder.h:50
HSD_finish_res heatshrink_decoder_finish(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:325
Definition: heatshrink_decoder.h:18
HSD_finish_res heatshrink_decoder_finish(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:325
static HSD_state st_backref_index_msb(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:213
#define LOG(...)
Definition: heatshrink_decoder.cpp:37
Definition: heatshrink_decoder.h:13
uint8_t i
Definition: screen_test_graph.c:72
uint8_t buffers[(1<< HEATSHRINK_DECODER_WINDOW_BITS(_))+HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(_)]
Definition: heatshrink_decoder.h:66
#define BACKREF_INDEX_BITS(HSD)
Definition: heatshrink_decoder.cpp:123
uint8_t state
Definition: heatshrink_decoder.h:52
Definition: heatshrink_decoder.h:19
Definition: heatshrink_decoder.h:27
static uint16_t get_bits(heatshrink_decoder *hsd, uint8_t count)
Definition: heatshrink_decoder.cpp:282
static HSD_state st_tag_bit(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:181
HSD_state
Definition: heatshrink_decoder.cpp:11
HSD_poll_res
Definition: heatshrink_decoder.h:17
HSD_poll_res heatshrink_decoder_poll(heatshrink_decoder *hsd, uint8_t *out_buf, size_t out_buf_size, size_t *output_size)
Definition: heatshrink_decoder.cpp:134
static HSD_state st_yield_literal(heatshrink_decoder *hsd, output_info *oi)
Definition: heatshrink_decoder.cpp:195
HSD_sink_res heatshrink_decoder_sink(heatshrink_decoder *hsd, uint8_t *in_buf, size_t size, size_t *input_size)
Definition: heatshrink_decoder.cpp:98
Definition: heatshrink_decoder.h:25
static HSD_state st_backref_index_lsb(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:223
HSD_sink_res heatshrink_decoder_sink(heatshrink_decoder *hsd, uint8_t *in_buf, size_t size, size_t *input_size)
Definition: heatshrink_decoder.cpp:98
static void push_byte(heatshrink_decoder *hsd, output_info *oi, uint8_t byte)
Definition: heatshrink_decoder.cpp:350
Definition: heatshrink_decoder.h:46
uint8_t bit_index
Definition: heatshrink_decoder.h:54
#define HEATSHRINK_MIN_LOOKAHEAD_BITS
Definition: heatshrink_common.h:17
Definition: heatshrink_decoder.cpp:16
Definition: heatshrink_decoder.cpp:18
void
Definition: png.h:1083
size_t * output_size
Definition: heatshrink_decoder.cpp:44
Definition: heatshrink_decoder.cpp:15
#define HEATSHRINK_MIN_WINDOW_BITS
Definition: heatshrink_common.h:14
HSD_sink_res
Definition: heatshrink_decoder.h:11
static HSD_state st_yield_backref(heatshrink_decoder *hsd, output_info *oi)
Definition: heatshrink_decoder.cpp:255
uint16_t head_index
Definition: heatshrink_decoder.h:51
uint16_t input_size
Definition: heatshrink_decoder.h:47
uint16_t output_count
Definition: heatshrink_decoder.h:49
const uint8_t[]
Definition: 404_html.c:3
void heatshrink_decoder_reset(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:83
Definition: heatshrink_decoder.cpp:14
uint8_t current_byte
Definition: heatshrink_decoder.h:53
#define HEATSHRINK_MAX_WINDOW_BITS
Definition: heatshrink_common.h:15
#define HEATSHRINK_DECODER_WINDOW_BITS(_)
Definition: heatshrink_decoder.h:40
Definition: heatshrink_decoder.cpp:41
static heatshrink_decoder hsd
Definition: binary_protocol.h:53
#define ASSERT(X)
Definition: heatshrink_decoder.cpp:38
uint16_t input_index
Definition: heatshrink_decoder.h:48
static HSD_state st_backref_count_msb(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:235
Definition: heatshrink_decoder.cpp:12
uint8_t * buf
Definition: heatshrink_decoder.cpp:42
static HSD_state st_backref_count_lsb(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:245
Definition: heatshrink_decoder.cpp:17
HSD_finish_res
Definition: heatshrink_decoder.h:24
#define NO_BITS
Definition: heatshrink_decoder.cpp:47
Definition: heatshrink_decoder.h:20
Definition: heatshrink_decoder.cpp:13
HSD_poll_res heatshrink_decoder_poll(heatshrink_decoder *hsd, uint8_t *out_buf, size_t out_buf_size, size_t *output_size)
Definition: heatshrink_decoder.cpp:134
Definition: heatshrink_decoder.h:14
static png_bytep size_t size
Definition: pngwrite.c:2170