Nigel Tao
0904751e2d
example: add toy-aux-image
2023-06-04 10:47:22 +10:00
Nigel Tao
27a3197727
script: add truncate-progressive-jpeg.go
...
"script/confirm-matches-djpeg.sh test/data/*.jpeg" shows differences on
"test/data/peacock.progressive.scan00[0-8].jpeg".
2023-06-01 22:32:37 +10:00
Nigel Tao
50d765839c
cgen: generate 123u (instead of 123) more often
2023-06-01 19:58:50 +10:00
Nigel Tao
805e37915f
root: add BUILD.md
2023-06-01 13:20:47 +10:00
Nigel Tao
da95945d65
example: remove #include <linux/prctl.h>
...
These don't work with musl-libc. They're also unnecessary with gnu-libc.
Updates #124
2023-06-01 12:18:30 +10:00
Nigel Tao
d7ddc153ba
std/jpeg: decode progressive JPEGs
...
"script/confirm-matches-djpeg.sh test/data/*.jpeg" is now all matches.
2023-06-01 12:16:14 +10:00
Nigel Tao
1cd3604351
std/jpeg: prepare to decode progressive JPEGs
2023-05-30 15:36:50 +10:00
Nigel Tao
0aad753137
test/data: add peacock.*
...
"script/confirm-matches-djpeg.sh test/data/*.jpeg" shows a difference on
"test/data/peacock.progressive.jpeg".
2023-05-22 16:11:12 +10:00
Nigel Tao
02a6a13236
cgen: drop redundant "& mask" in "(x & mask) as T"
2023-05-22 16:03:24 +10:00
Nigel Tao
145ff0ce64
std/jpeg: have fill_bitstream call copy_from_slice
2023-05-22 14:23:16 +10:00
Nigel Tao
ac3bd9cdba
std/jpeg: reject 2 (not 1, 3 or 4) components
2023-05-22 14:11:46 +10:00
Nigel Tao
7d73f3cfa4
pixconv: fix ycck implicit promotion to signed int
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59182
2023-05-22 14:00:17 +10:00
Nigel Tao
06ffee27a2
std/jpeg: allow DQT markers after SOF marker
...
Fixes #120
2023-05-21 22:28:59 +10:00
Nigel Tao
a41149e73c
std/jpeg: implement triangle-filter upsampling
...
"script/confirm-matches-djpeg.sh test/data/*.jpeg" is now all matches.
2023-05-21 22:05:38 +10:00
Nigel Tao
94df43c530
std/jpeg: prepare for triangle-filter upsampling
2023-05-21 22:04:45 +10:00
Nigel Tao
56fae16567
script: add confirm-matches-djpeg.sh
2023-05-18 10:17:08 +10:00
Nigel Tao
9ffc41d16d
std/jpeg: tighten decoder workbuf_len worst case
2023-05-17 22:45:23 +10:00
Nigel Tao
de5dc68b40
std/jpeg: remove components_{w,h}_in_blocks fields
2023-05-17 22:10:42 +10:00
Nigel Tao
917aeb1748
gitignore: add /usr/bin/perf output files
2023-05-17 17:12:18 +10:00
Nigel Tao
5ab65d0923
cgen: generate 123u instead of 123 (for std/jpeg)
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59018
2023-05-16 22:19:43 +10:00
Nigel Tao
85b244aa49
std/netpbm: add new package
2023-05-16 16:29:58 +10:00
Nigel Tao
382303a99d
fuzz: add jpeg_fuzzer.c
...
Updates #42
2023-05-15 12:22:26 +10:00
Nigel Tao
7514dede23
std/jpeg: decode color images, not just gray
...
Updates #42
2023-05-14 23:03:33 +10:00
Nigel Tao
3bd83e3ebb
std/jpeg: apply Inverse DCT
...
Updates #42
2023-05-11 21:29:07 +10:00
Nigel Tao
8cfe304f3c
std/jpeg: implement Inverse DCT
...
Updates #42
2023-05-08 21:51:47 +10:00
Nigel Tao
cac4df3bde
std/tga: re-type a field from slice to roslice
2023-05-06 10:03:15 +10:00
Nigel Tao
65924cd44d
std/lzw: have flush return a roslice
2023-05-06 10:00:02 +10:00
Nigel Tao
c914f66a6c
std/jpeg: decode Huffman entropy coded data
...
Updates #42
2023-05-06 09:47:10 +10:00
Nigel Tao
6fd9767b5d
std/jpeg: calculate number of MCUs and blocks
...
Updates #42
2023-04-30 14:17:27 +10:00
Nigel Tao
e9b537b516
std/jpeg: decode SOS (up to entropy coded data)
...
Updates #42
2023-04-29 14:30:34 +10:00
Nigel Tao
a95f39e2d1
std/png: delete old comment re APNG is unsupported
2023-04-29 12:00:24 +10:00
Nigel Tao
57b80f8c2e
example: avoid gcc -Wstringop-overread for strnlen
2023-04-29 11:59:07 +10:00
Nigel Tao
d36277f0c0
std/jpeg: decode DHT (Huffman tables)
...
Updates #42
2023-04-29 11:14:59 +10:00
Nigel Tao
0ccceece0b
std/jpeg: decode SOF, producing the image config
...
Updates #42
2023-04-24 11:14:54 +10:00
Nigel Tao
0bbc4c0083
std/jpeg: add new package
...
This is just a placeholder decoder implementation (and all of the
required plumbing) that produces a 1x1 reddish-purple image. Follow-up
commits will add flesh to the metaphorical bones.
Updates #42
2023-04-21 18:33:00 +10:00
Nigel Tao
bc86394bef
base: rename min/max arg to no_more/less_than
2023-04-16 12:12:27 +10:00
Nigel Tao
95630b6677
lang/check: tighten checkConstElement constraint
2023-04-16 11:50:30 +10:00
Nigel Tao
4834cb97c8
base: deprecate ETC__PIXEL_FORMAT__NUM_PLANES_MAX
2023-04-16 11:12:06 +10:00
Nigel Tao
e126c998e0
std: limit supported image dimensions to 0xFF_FFFF
2023-04-16 08:57:55 +10:00
Nigel Tao
d8c23a3a66
std/lzw: change set_literal_width to set_quirk
2023-04-15 09:59:40 +10:00
Nigel Tao
6e84987d33
std: change set_quirk_enabled to set_quirk
2023-04-14 21:42:15 +10:00
Nigel Tao
176cdf7527
test: fix gcc -Wmaybe-uninitialized false positive
...
When running "gcc -O3 -Wall test/c/std/adler32.c", gcc 12.2.0 (but not
gcc 10.2.1) would warn that adler32's "checksum.private_impl.f_started"
may be used uninitialized. There is no warning without the "-O3".
That warning is a false positive. f_started is always zero-initialized
by wuffs_adler32__hasher__initialize (unless opted in to
WUFFS_INITIALIZE__ALREADY_ZEROED, which the benchmarks do not).
Also update test/c/std/crc32.c so that all of the base.hasher_u32
wuffs_bench_etc functions are consistent, even though gcc on crc32.c
does not produce that same false positive warning.
2023-04-12 13:31:01 +10:00
Nigel Tao
35fd84bea0
lang: allow copy_from_slice arg to be read-only
2023-04-12 13:18:43 +10:00
Nigel Tao
29c4122360
lang: have hasher_u32.update_u32 take a roslice
2023-04-10 21:16:53 +10:00
Nigel Tao
ea3fbc37f5
lang: change const array to const roarray
2023-04-10 16:06:10 +10:00
Nigel Tao
f3caf09d77
lang: add read-only type decorators
2023-04-10 15:29:12 +10:00
Nigel Tao
6e8349129c
base: remove deprecated names
2023-04-09 16:12:49 +10:00
Nigel Tao
6ede29ab3a
cmd/wuffs: tweak genWuffs output to be wuffsfmt'ed
2023-04-09 15:58:04 +10:00
Nigel Tao
49fa501f0d
lang/parse: struct private data now needs a "+"
2023-04-09 15:45:06 +10:00
Nigel Tao
f5eb38d76e
wuffsfmt: indent with 4 spaces (not a tab)
2023-04-09 15:28:07 +10:00