Prusa MINI Firmware overview
|
#include <stdint.h>
#include <stddef.h>
#include "heatshrink_common.h"
#include "heatshrink_config.h"
Go to the source code of this file.
◆ HEATSHRINK_DECODER_INPUT_BUFFER_SIZE
◆ HEATSHRINK_DECODER_WINDOW_BITS
◆ HEATSHRINK_DECODER_LOOKAHEAD_BITS
◆ HSD_sink_res
◆ HSD_poll_res
Enumerator |
---|
HSDR_POLL_EMPTY | |
HSDR_POLL_MORE | |
HSDR_POLL_ERROR_NULL | |
HSDR_POLL_ERROR_UNKNOWN | |
◆ HSD_finish_res
Enumerator |
---|
HSDR_FINISH_DONE | |
HSDR_FINISH_MORE | |
HSDR_FINISH_ERROR_NULL | |
◆ heatshrink_decoder_reset()
◆ heatshrink_decoder_sink()
100 if (
hsd ==
nullptr || in_buf ==
nullptr || input_size ==
nullptr)
110 LOG(
"-- sinking %zd bytes\n",
size);
◆ heatshrink_decoder_poll()
136 if (
hsd ==
nullptr || out_buf ==
nullptr || output_size ==
nullptr)
◆ heatshrink_decoder_finish()
#define HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(_)
Definition: heatshrink_decoder.h:38
size_t buf_size
Definition: heatshrink_decoder.cpp:43
Definition: heatshrink_decoder.h:26
Definition: heatshrink_decoder.h:21
Definition: heatshrink_decoder.h:12
uint16_t output_index
Definition: heatshrink_decoder.h:50
Definition: heatshrink_decoder.h:18
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 buffers[(1<< HEATSHRINK_DECODER_WINDOW_BITS(_))+HEATSHRINK_DECODER_INPUT_BUFFER_SIZE(_)]
Definition: heatshrink_decoder.h:66
uint8_t state
Definition: heatshrink_decoder.h:52
Definition: heatshrink_decoder.h:19
Definition: heatshrink_decoder.h:27
static HSD_state st_tag_bit(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:181
HSD_poll_res
Definition: heatshrink_decoder.h:17
static HSD_state st_yield_literal(heatshrink_decoder *hsd, output_info *oi)
Definition: heatshrink_decoder.cpp:195
Definition: heatshrink_decoder.h:25
static HSD_state st_backref_index_lsb(heatshrink_decoder *hsd)
Definition: heatshrink_decoder.cpp:223
uint8_t bit_index
Definition: heatshrink_decoder.h:54
Definition: heatshrink_decoder.cpp:16
Definition: heatshrink_decoder.cpp:18
size_t * output_size
Definition: heatshrink_decoder.cpp:44
Definition: heatshrink_decoder.cpp:15
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
Definition: heatshrink_decoder.cpp:14
uint8_t current_byte
Definition: heatshrink_decoder.h:53
#define HEATSHRINK_DECODER_WINDOW_BITS(_)
Definition: heatshrink_decoder.h:40
Definition: heatshrink_decoder.cpp:41
static heatshrink_decoder hsd
Definition: binary_protocol.h:53
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
Definition: heatshrink_decoder.h:20
Definition: heatshrink_decoder.cpp:13
Definition: heatshrink_decoder.h:14
static png_bytep size_t size
Definition: pngwrite.c:2170