mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
lang/parse: struct private data now needs a "+"
This commit is contained in:
1 parent
f5eb38d76e
commit
49fa501f0d
13 files changed
+18
-12
No files matched your search
@@ -72,7 +72,7 @@ pub struct decoder? implements base.image_decoder(
|
||||
|
||||
swizzler : base.pixel_swizzler,
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
// scratch is one of:
|
||||
// - 2048 bytes = 256 * (8 bytes per BGRA_NONPREMUL_4X16LE).
|
||||
// - 1024 bytes = 1024 * (1 byte per INDEXED__BGRA_BINARY), plus
|
||||
|
||||
@@ -57,7 +57,7 @@ pub struct decoder? implements base.io_transformer(
|
||||
code_lengths_bitmask : base.u32,
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
scratch : base.u32,
|
||||
|
||||
letter_counts : array[256] base.u32,
|
||||
|
||||
@@ -94,7 +94,7 @@ pub struct decoder? implements base.token_decoder(
|
||||
end_of_data : base.bool,
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
// stack is conceptually an array of 2-bit integers, implemented as an
|
||||
// array of u32. The N'th 2-bit pair is whether we're in an array or
|
||||
// object, where N is the recursion depth:
|
||||
|
||||
@@ -91,7 +91,7 @@ pub struct decoder? implements base.io_transformer(
|
||||
end_of_block : base.bool,
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
// huffs and n_huffs_bits are the lookup tables for Huffman decodings.
|
||||
//
|
||||
// There are up to 2 Huffman decoders active at any one time. As per this
|
||||
|
||||
@@ -77,7 +77,7 @@ pub struct decoder? implements base.image_decoder(
|
||||
swizzler : base.pixel_swizzler,
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
compressed : array[4096] base.u8,
|
||||
|
||||
// palettes[0] and palettes[1] are the Global and Local Color Table.
|
||||
|
||||
@@ -29,7 +29,7 @@ pub struct decoder? implements base.token_decoder(
|
||||
comment_type : base.u8,
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
// stack is conceptually an array of bits, implemented as an array of u32.
|
||||
// The N'th bit being 0 or 1 means that we're in an array or object, where
|
||||
// N is the recursion depth.
|
||||
|
||||
@@ -58,7 +58,7 @@ pub struct decoder? implements base.io_transformer(
|
||||
prefixes : array[4096] base.u16[..= 4095],
|
||||
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
// read_from per-code state.
|
||||
suffixes : array[4096] array[8] base.u8,
|
||||
// lm1s is the "length minus 1"s of the values for the implicit key-value
|
||||
|
||||
@@ -143,7 +143,7 @@ pub struct decoder? implements base.image_decoder(
|
||||
|
||||
swizzler : base.pixel_swizzler,
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
crc32 : crc32.ieee_hasher,
|
||||
zlib : zlib.decoder,
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ pub struct decoder? implements base.image_decoder(
|
||||
|
||||
swizzler : base.pixel_swizzler,
|
||||
util : base.utility,
|
||||
)(
|
||||
) + (
|
||||
dst_palette : array[4 * 256] base.u8,
|
||||
src_palette : array[4 * 256] base.u8,
|
||||
scratch : array[4] base.u8,
|
||||
|
||||
Reference in new issue
Block a user