mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Rename max_incl_workbuf_len constants
This commit is contained in:
1 parent
5f7c807729
commit
de5b64a846
9 files changed
+26
-26
No files matched your search
@@ -53,7 +53,7 @@ uint8_t lgtm_ptr[] = {
|
|||||||
};
|
};
|
||||||
size_t lgtm_len = 20;
|
size_t lgtm_len = 20;
|
||||||
|
|
||||||
#define WORK_BUFFER_SIZE WUFFS_DEFLATE__MAX_INCL_WORKBUF_LEN
|
#define WORK_BUFFER_SIZE WUFFS_DEFLATE__DECODER_WORKBUF_LEN_MAX_INCL
|
||||||
uint8_t work_buffer[WORK_BUFFER_SIZE];
|
uint8_t work_buffer[WORK_BUFFER_SIZE];
|
||||||
|
|
||||||
// ignore_return_value suppresses errors from -Wall -Werror.
|
// ignore_return_value suppresses errors from -Wall -Werror.
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ for a C compiler $CC, such as clang or gcc.
|
|||||||
#define SRC_BUFFER_SIZE (128 * 1024)
|
#define SRC_BUFFER_SIZE (128 * 1024)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define WORK_BUFFER_SIZE WUFFS_GZIP__MAX_INCL_WORKBUF_LEN
|
#define WORK_BUFFER_SIZE WUFFS_GZIP__DECODER_WORKBUF_LEN_MAX_INCL
|
||||||
|
|
||||||
uint8_t dst_buffer[DST_BUFFER_SIZE];
|
uint8_t dst_buffer[DST_BUFFER_SIZE];
|
||||||
uint8_t src_buffer[SRC_BUFFER_SIZE];
|
uint8_t src_buffer[SRC_BUFFER_SIZE];
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ It should print "PASS", amongst other information, and exit(0).
|
|||||||
#include "../../../release/c/wuffs-unsupported-snapshot.c"
|
#include "../../../release/c/wuffs-unsupported-snapshot.c"
|
||||||
#include "../fuzzlib/fuzzlib.c"
|
#include "../fuzzlib/fuzzlib.c"
|
||||||
|
|
||||||
#define WORK_BUFFER_SIZE WUFFS_ZLIB__MAX_INCL_WORKBUF_LEN
|
#define WORK_BUFFER_SIZE WUFFS_ZLIB__DECODER_WORKBUF_LEN_MAX_INCL
|
||||||
uint8_t work_buffer[WORK_BUFFER_SIZE];
|
uint8_t work_buffer[WORK_BUFFER_SIZE];
|
||||||
|
|
||||||
const char* fuzz(wuffs_base__io_reader src_reader, uint32_t hash) {
|
const char* fuzz(wuffs_base__io_reader src_reader, uint32_t hash) {
|
||||||
|
|||||||
@@ -2647,10 +2647,10 @@ extern const char* wuffs_deflate__error__no_huffman_codes;
|
|||||||
|
|
||||||
// ---------------- Public Consts
|
// ---------------- Public Consts
|
||||||
|
|
||||||
#define WUFFS_DEFLATE__MAX_INCL_WORKBUF_LEN 33280
|
#define WUFFS_DEFLATE__DECODER_WORKBUF_LEN_MAX_INCL 33280
|
||||||
|
|
||||||
static const uint64_t //
|
static const uint64_t //
|
||||||
wuffs_deflate__max_incl_workbuf_len //
|
wuffs_deflate__decoder_workbuf_len_max_incl //
|
||||||
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
||||||
|
|
||||||
// ---------------- Struct Declarations
|
// ---------------- Struct Declarations
|
||||||
@@ -2820,10 +2820,10 @@ extern const char* wuffs_lzw__error__bad_code;
|
|||||||
|
|
||||||
// ---------------- Public Consts
|
// ---------------- Public Consts
|
||||||
|
|
||||||
#define WUFFS_LZW__MAX_INCL_WORKBUF_LEN 0
|
#define WUFFS_LZW__DECODER_WORKBUF_LEN_MAX_INCL 0
|
||||||
|
|
||||||
static const uint64_t //
|
static const uint64_t //
|
||||||
wuffs_lzw__max_incl_workbuf_len //
|
wuffs_lzw__decoder_workbuf_len_max_incl //
|
||||||
WUFFS_BASE__POTENTIALLY_UNUSED = 0;
|
WUFFS_BASE__POTENTIALLY_UNUSED = 0;
|
||||||
|
|
||||||
// ---------------- Struct Declarations
|
// ---------------- Struct Declarations
|
||||||
@@ -2986,10 +2986,10 @@ extern const char* wuffs_gif__error__too_much_pixel_data;
|
|||||||
|
|
||||||
// ---------------- Public Consts
|
// ---------------- Public Consts
|
||||||
|
|
||||||
#define WUFFS_GIF__MAX_INCL_WORKBUF_LEN 65535
|
#define WUFFS_GIF__DECODER_WORKBUF_LEN_MAX_INCL 65535
|
||||||
|
|
||||||
static const uint64_t //
|
static const uint64_t //
|
||||||
wuffs_gif__max_incl_workbuf_len //
|
wuffs_gif__decoder_workbuf_len_max_incl //
|
||||||
WUFFS_BASE__POTENTIALLY_UNUSED = 65535;
|
WUFFS_BASE__POTENTIALLY_UNUSED = 65535;
|
||||||
|
|
||||||
// ---------------- Struct Declarations
|
// ---------------- Struct Declarations
|
||||||
@@ -3282,10 +3282,10 @@ extern const char* wuffs_gzip__error__bad_header;
|
|||||||
|
|
||||||
// ---------------- Public Consts
|
// ---------------- Public Consts
|
||||||
|
|
||||||
#define WUFFS_GZIP__MAX_INCL_WORKBUF_LEN 33280
|
#define WUFFS_GZIP__DECODER_WORKBUF_LEN_MAX_INCL 33280
|
||||||
|
|
||||||
static const uint64_t //
|
static const uint64_t //
|
||||||
wuffs_gzip__max_incl_workbuf_len //
|
wuffs_gzip__decoder_workbuf_len_max_incl //
|
||||||
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
||||||
|
|
||||||
// ---------------- Struct Declarations
|
// ---------------- Struct Declarations
|
||||||
@@ -3426,10 +3426,10 @@ extern const char* wuffs_zlib__error__bad_parity_check;
|
|||||||
|
|
||||||
// ---------------- Public Consts
|
// ---------------- Public Consts
|
||||||
|
|
||||||
#define WUFFS_ZLIB__MAX_INCL_WORKBUF_LEN 33280
|
#define WUFFS_ZLIB__DECODER_WORKBUF_LEN_MAX_INCL 33280
|
||||||
|
|
||||||
static const uint64_t //
|
static const uint64_t //
|
||||||
wuffs_zlib__max_incl_workbuf_len //
|
wuffs_zlib__decoder_workbuf_len_max_incl //
|
||||||
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
WUFFS_BASE__POTENTIALLY_UNUSED = 33280;
|
||||||
|
|
||||||
// ---------------- Struct Declarations
|
// ---------------- Struct Declarations
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ pri status "?internal error: inconsistent I/O"
|
|||||||
pri status "?internal error: inconsistent distance"
|
pri status "?internal error: inconsistent distance"
|
||||||
pri status "?internal error: inconsistent n_bits"
|
pri status "?internal error: inconsistent n_bits"
|
||||||
|
|
||||||
pub const max_incl_workbuf_len base.u64 = 32768 + 512
|
pub const decoder_workbuf_len_max_incl base.u64 = 32768 + 512
|
||||||
|
|
||||||
// The next two tables were created by script/print-deflate-magic-numbers.go.
|
// The next two tables were created by script/print-deflate-magic-numbers.go.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ pub status "?too much pixel data"
|
|||||||
|
|
||||||
pri status "?internal error: inconsistent ri/wi"
|
pri status "?internal error: inconsistent ri/wi"
|
||||||
|
|
||||||
// TODO: reference lzw.max_incl_workbuf_len.
|
// TODO: reference lzw.decoder_workbuf_len_max_incl.
|
||||||
pub const max_incl_workbuf_len base.u64 = 0xFFFF
|
pub const decoder_workbuf_len_max_incl base.u64 = 0xFFFF
|
||||||
|
|
||||||
// See the spec appendix E "Interlaced Images" on page 29. The first element
|
// See the spec appendix E "Interlaced Images" on page 29. The first element
|
||||||
// represents either that the frame was non-interlaced, or that all interlace
|
// represents either that the frame was non-interlaced, or that all interlace
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ pub status "?bad compression method"
|
|||||||
pub status "?bad encoding flags"
|
pub status "?bad encoding flags"
|
||||||
pub status "?bad header"
|
pub status "?bad header"
|
||||||
|
|
||||||
// TODO: reference deflate.max_incl_workbuf_len.
|
// TODO: reference deflate.decoder_workbuf_len_max_incl.
|
||||||
pub const max_incl_workbuf_len base.u64 = 32768 + 512
|
pub const decoder_workbuf_len_max_incl base.u64 = 32768 + 512
|
||||||
|
|
||||||
pub struct decoder?(
|
pub struct decoder?(
|
||||||
flate deflate.decoder,
|
flate deflate.decoder,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ pri status "?internal error: inconsistent I/O"
|
|||||||
|
|
||||||
// TODO: move bulk data buffers like decoder.suffixes or decoder.output into
|
// TODO: move bulk data buffers like decoder.suffixes or decoder.output into
|
||||||
// the workbuf?
|
// the workbuf?
|
||||||
pub const max_incl_workbuf_len base.u64 = 0
|
pub const decoder_workbuf_len_max_incl base.u64 = 0
|
||||||
|
|
||||||
pub struct decoder?(
|
pub struct decoder?(
|
||||||
// The value passed to set_literal_width. This lw field is copied to the
|
// The value passed to set_literal_width. This lw field is copied to the
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ pub status "?bad parity check"
|
|||||||
|
|
||||||
pri status "?TODO: unsupported preset dictionary"
|
pri status "?TODO: unsupported preset dictionary"
|
||||||
|
|
||||||
// TODO: reference deflate.max_incl_workbuf_len.
|
// TODO: reference deflate.decoder_workbuf_len_max_incl.
|
||||||
pub const max_incl_workbuf_len base.u64 = 32768 + 512
|
pub const decoder_workbuf_len_max_incl base.u64 = 32768 + 512
|
||||||
|
|
||||||
pub struct decoder?(
|
pub struct decoder?(
|
||||||
flate deflate.decoder,
|
flate deflate.decoder,
|
||||||
|
|||||||
Reference in new issue
Block a user