Prusa MINI Firmware overview
inffast.h
Go to the documentation of this file.
1 /* inffast.h -- header to use inffast.c
2  * Copyright (C) 1995-2003, 2010 Mark Adler
3  * For conditions of distribution and use, see copyright notice in zlib.h
4  */
5 
6 /* WARNING: this file should *not* be used by applications. It is
7  part of the implementation of the compression library and is
8  subject to change. Applications should only use zlib.h.
9  */
10 
Z_MEM_ERROR
#define Z_MEM_ERROR
Definition: zlib.h:183
Bytef
Byte FAR Bytef
Definition: zconf.h:400
gzgetc_
int ZEXPORT gzgetc_(gzFile file)
Definition: gzread.c:476
zcalloc
voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
Definition: zutil.c:305
GT_OFF
#define GT_OFF(x)
Definition: gzguts.h:218
inflate_state::dmax
unsigned dmax
Definition: inflate.h:90
inflate_state::window
unsigned char FAR * window
Definition: inflate.h:99
gzsetparams
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
Definition: gzwrite.c:585
O_APPEND
const uint8_t O_APPEND
Definition: SdBaseFile.h:59
O_EXCL
const uint8_t O_EXCL
Definition: SdBaseFile.h:64
gzopen64
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
Definition: gzlib.c:278
OF
int gz_init OF((gz_statep))
OF
int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *))
inffast.h
gzdirect
int ZEXPORT gzdirect(gzFile file)
Definition: gzread.c:607
code::val
unsigned short val
Definition: inftrees.h:27
SEEK_END
#define SEEK_END
Definition: zconf.h:500
Z_ERRNO
#define Z_ERRNO
Definition: zlib.h:180
inflate_state::wnext
unsigned wnext
Definition: inflate.h:98
auto_build.error
bool error
Definition: auto_build.py:637
Z_BUF_ERROR
#define Z_BUF_ERROR
Definition: zlib.h:184
inflate_state
Definition: inflate.h:82
gz_write
z_size_t gz_write(gz_statep state, voidpc buf, z_size_t len)
Definition: gzwrite.c:178
deflateEnd
int ZEXPORT deflateEnd(z_streamp strm)
Definition: deflate.c:1076
GZ_READ
#define GZ_READ
Definition: gzguts.h:161
lenfix
static const code lenfix[512]
Definition: inffixed.h:10
gz_zero
int gz_zero(gz_statep state, z_off64_t len)
Definition: gzwrite.c:145
gzoffset64
z_off64_t ZEXPORT gzoffset64(gzFile file)
Definition: gzlib.c:482
z_size_t
unsigned long z_size_t
Definition: zconf.h:250
STORED
Definition: inflate.h:34
LOAD
#define LOAD()
Definition: infback.c:128
GZ_NONE
#define GZ_NONE
Definition: gzguts.h:160
DONE
Definition: inflate.h:49
Z_DATA_ERROR
#define Z_DATA_ERROR
Definition: zlib.h:182
inflate_state::wsize
unsigned wsize
Definition: inflate.h:96
inflate_fast
void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start)
Definition: inffast.c:50
gzdopen
gzFile ZEXPORT gzdopen(int fd, const char *mode)
Definition: gzlib.c:286
g29_auto.start
start
Definition: g29_auto.py:150
inflate_state::whave
unsigned whave
Definition: inflate.h:97
Z_FINISH
#define Z_FINISH
Definition: zlib.h:172
inflate_state::next
code FAR * next
Definition: inflate.h:118
internal_state
Definition: deflate.h:100
SEEK_CUR
#define SEEK_CUR
Definition: zconf.h:499
Z_STREAM_ERROR
#define Z_STREAM_ERROR
Definition: zlib.h:181
CODES
Definition: inftrees.h:55
inflateBackInit_
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
Definition: infback.c:28
BAD
Definition: inflate.h:50
Z_NEED_DICT
#define Z_NEED_DICT
Definition: zlib.h:179
O_RDONLY
const uint8_t O_RDONLY
Definition: SdBaseFile.h:54
gzwrite
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
Definition: gzwrite.c:246
INITBITS
#define INITBITS()
Definition: infback.c:150
max
#define max(a, b)
Definition: wiring_constants.h:40
state
static volatile fsensor_t state
Definition: filament_sensor.c:23
ZEXPORTVA
#define ZEXPORTVA
Definition: zconf.h:383
NEEDBITS
#define NEEDBITS(n)
Definition: infback.c:183
Tracev
#define Tracev(x)
Definition: zutil.h:250
z_off_t
#define z_off_t
Definition: zconf.h:504
gzgetc
int ZEXPORT gzgetc(gzFile file)
Definition: gzread.c:447
gzputc
int ZEXPORT gzputc(gzFile file, int c)
Definition: gzwrite.c:304
gz_state
Definition: gzguts.h:171
inflateBack
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
Definition: infback.c:250
NULL
#define NULL
Definition: usbd_def.h:53
gzFile_s::have
unsigned have
Definition: zlib.h:1818
SEEK_SET
#define SEEK_SET
Definition: zconf.h:498
gz_fetch
int gz_fetch(gz_statep state)
Definition: gzread.c:229
ZLIB_VERSION
#define ZLIB_VERSION
Definition: zlib.h:40
voidpf
Byte FAR * voidpf
Definition: zconf.h:413
gzungetc
int ZEXPORT gzungetc(int c, gzFile file)
Definition: gzread.c:483
OF
void fixedtables OF((struct inflate_state FAR *state))
createSpeedLookupTable.end
end
Definition: createSpeedLookupTable.py:33
gzerror
const char *ZEXPORT gzerror(gzFile file, int *errnum)
Definition: gzlib.c:532
inflate_state::strm
z_streamp strm
Definition: inflate.h:83
PULLBYTE
#define PULLBYTE()
Definition: infback.c:172
gz_avail
int gz_avail(gz_statep state)
Definition: gzread.c:56
zstrerror
#define zstrerror()
Definition: gzguts.h:134
inflate_table
int ZLIB_INTERNAL inflate_table(codetype type, unsigned short FAR *lens, unsigned codes, code FAR *FAR *table, unsigned FAR *bits, unsigned short FAR *work)
Definition: inftrees.c:32
Z_NULL
#define Z_NULL
Definition: zlib.h:212
inflateInit2
#define inflateInit2(strm, windowBits)
Definition: zlib.h:1800
Z_HUFFMAN_ONLY
#define Z_HUFFMAN_ONLY
Definition: zlib.h:197
gzgets
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
Definition: gzread.c:543
Z_BLOCK
#define Z_BLOCK
Definition: zlib.h:173
close
static int close(struct _reent *_r, void *pv)
Definition: gcode_file.cpp:21
code::op
unsigned char op
Definition: inftrees.h:25
z_const
#define z_const
Definition: zconf.h:237
Z_NO_FLUSH
#define Z_NO_FLUSH
Definition: zlib.h:168
gzclose_w
int ZEXPORT gzclose_w(gzFile file)
Definition: gzwrite.c:627
inflate_state::bits
unsigned bits
Definition: inflate.h:102
gzopen
gzFile ZEXPORT gzopen(char *path, const char *mode) const
Definition: gzlib.c:270
gzguts.h
COPY
Definition: inflate.h:36
DEF_MEM_LEVEL
#define DEF_MEM_LEVEL
Definition: gzguts.h:150
GZBUFSIZE
#define GZBUFSIZE
Definition: gzguts.h:157
gz_decomp
int gz_decomp(gz_statep state)
Definition: gzread.c:175
OF
void gz_reset OF((gz_statep))
inffixed.h
O_WRONLY
const uint8_t O_WRONLY
Definition: SdBaseFile.h:56
gz_init
int gz_init(gz_statep state)
Definition: gzwrite.c:17
gzprintf
int ZEXPORTVA gzprintf(gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
Definition: gzwrite.c:465
gz_read
z_size_t gz_read(gz_statep state, voidp buf, z_size_t len)
Definition: gzread.c:294
voidp
Byte * voidp
Definition: zconf.h:414
z_streamp
z_stream FAR * z_streamp
Definition: zlib.h:108
z_off64_t
#define z_off64_t
Definition: zconf.h:513
void
void
Definition: png.h:1083
OF
void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start))
gzputs
int ZEXPORT gzputs(gzFile file, const char *str)
Definition: gzwrite.c:352
FAR
#define FAR
Definition: zconf.h:387
Z_OK
#define Z_OK
Definition: zlib.h:177
gzfwrite
z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
Definition: gzwrite.c:274
inflate_state::have
unsigned have
Definition: inflate.h:117
LEN
Definition: inflate.h:41
gzbuffer
int ZEXPORT gzbuffer(gzFile file, unsigned size)
Definition: gzlib.c:316
if
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
O_TRUNC
const uint8_t O_TRUNC
Definition: SdBaseFile.h:61
Z_FIXED
#define Z_FIXED
Definition: zlib.h:199
TYPE
Definition: inflate.h:32
inflate.h
inflate_state::last
int last
Definition: inflate.h:85
Z_STREAM_END
#define Z_STREAM_END
Definition: zlib.h:178
inftrees.h
z_stream_s
Definition: zlib.h:86
ROOM
#define ROOM()
Definition: infback.c:210
local
#define local
Definition: gzguts.h:115
Z_DEFAULT_STRATEGY
#define Z_DEFAULT_STRATEGY
Definition: zlib.h:200
gzread
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
Definition: gzread.c:375
gz_error
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
Definition: gzlib.c:579
zmemcpy
void ZLIB_INTERNAL zmemcpy(Bytef *dest, const Bytef *source, uInt len)
Definition: zutil.c:149
GZ_WRITE
#define GZ_WRITE
Definition: gzguts.h:162
gzeof
int ZEXPORT gzeof(gzFile file)
Definition: gzlib.c:515
gzoffset
z_off_t ZEXPORT gzoffset(gzFile file)
Definition: gzlib.c:505
deflateInit2
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
Definition: zlib.h:1797
gzseek64
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
Definition: gzlib.c:366
BITS
#define BITS(n)
Definition: infback.c:190
zcfree
void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
Definition: zutil.c:315
DWORD
unsigned long DWORD
Definition: onboard_sd.h:15
code::bits
unsigned char bits
Definition: inftrees.h:26
gzFile_s::next
unsigned char * next
Definition: zlib.h:1819
zutil.h
PULL
#define PULL()
Definition: infback.c:158
inflateBackEnd
int ZEXPORT inflateBackEnd(z_streamp strm)
Definition: infback.c:631
read
static int read(struct _reent *_r, void *pv, char *pc, int n)
Definition: gcode_file.cpp:9
Z_DEFLATED
#define Z_DEFLATED
Definition: zlib.h:209
gz_skip
int gz_skip(gz_statep state, z_off64_t len)
Definition: gzread.c:259
LOOK
#define LOOK
Definition: gzguts.h:166
Z_VERSION_ERROR
#define Z_VERSION_ERROR
Definition: zlib.h:185
ZLIB_INTERNAL
#define ZLIB_INTERNAL
Definition: compress.c:8
Z_RLE
#define Z_RLE
Definition: zlib.h:198
deflate
int ZEXPORT deflate(z_streamp strm, int flush)
Definition: deflate.c:763
RESTORE
#define RESTORE()
Definition: infback.c:139
createSpeedLookupTable.int
int
Definition: createSpeedLookupTable.py:15
gzclearerr
void ZEXPORT gzclearerr(gzFile file)
Definition: gzlib.c:553
MAX_WBITS
#define MAX_WBITS
Definition: zconf.h:270
ZEXPORT
#define ZEXPORT
Definition: zconf.h:380
deflateReset
int ZEXPORT deflateReset(z_streamp strm)
Definition: deflate.c:505
Z_FILTERED
#define Z_FILTERED
Definition: zlib.h:196
inflate_state::hold
unsigned long hold
Definition: inflate.h:101
internal_state::window
Bytef * window
Definition: deflate.h:119
Z_DEFAULT_COMPRESSION
#define Z_DEFAULT_COMPRESSION
Definition: zlib.h:193
gz_intmax
unsigned ZLIB_INTERNAL gz_intmax()
Definition: gzlib.c:625
voidpc
const Byte * voidpc
Definition: zconf.h:412
gzrewind
int ZEXPORT gzrewind(gzFile file)
Definition: gzlib.c:343
uInt
unsigned int uInt
Definition: zconf.h:393
ZALLOC
#define ZALLOC(strm, items, size)
Definition: zutil.h:262
gz_statep
gz_state FAR * gz_statep
Definition: gzguts.h:203
gz_comp
int gz_comp(gz_statep state, int flush)
Definition: gzwrite.c:73
gz_open
gzFile gz_open(void *path, int fd, const char *mode) const
Definition: gzlib.c:91
gzFile_s
Definition: zlib.h:1817
gzclose_r
int ZEXPORT gzclose_r(gzFile file)
Definition: gzread.c:627
gz_load
int gz_load(gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
Definition: gzread.c:21
code
Definition: inftrees.h:24
ZFREE
#define ZFREE(strm, addr)
Definition: zutil.h:264
TABLE
Definition: inflate.h:37
inflateEnd
int ZEXPORT inflateEnd(z_streamp strm)
Definition: inflate.c:1277
mode
png_structrp int mode
Definition: png.h:1139
gzflush
int ZEXPORT gzflush(gzFile file, int flush)
Definition: gzwrite.c:553
inflate
int ZEXPORT inflate(z_streamp strm, int flush)
Definition: inflate.c:622
GZ_APPEND
#define GZ_APPEND
Definition: gzguts.h:163
fixedtables
void fixedtables(struct inflate_state FAR *state)
Definition: infback.c:82
GZIP
#define GZIP
Definition: deflate.h:23
Tracevv
#define Tracevv(x)
Definition: zutil.h:251
gzfread
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
Definition: gzread.c:411
inflateReset
int ZEXPORT inflateReset(z_streamp strm)
Definition: inflate.c:144
DISTS
Definition: inftrees.h:57
gztell64
z_off64_t ZEXPORT gztell64(gzFile file)
Definition: gzlib.c:455
gzseek
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
Definition: gzlib.c:443
write
static int write(struct _reent *_r, void *pv, const char *pc, int n)
Definition: gcode_file.cpp:17
gz_look
int gz_look(gz_statep state)
Definition: gzread.c:91
gz_reset
void gz_reset(gz_statep state)
Definition: gzlib.c:75
DROPBITS
#define DROPBITS(n)
Definition: infback.c:194
gztell
z_off_t ZEXPORT gztell(gzFile file)
Definition: gzlib.c:472
distfix
static const code distfix[32]
Definition: inffixed.h:87
BYTEBITS
#define BYTEBITS()
Definition: infback.c:201
size
static png_bytep size_t size
Definition: pngwrite.c:2170
LENS
Definition: inftrees.h:56
LSEEK
#define LSEEK
Definition: gzlib.c:14
deflateParams
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
Definition: deflate.c:568
O_CREAT
const uint8_t O_CREAT
Definition: SdBaseFile.h:63