Nigel Tao
2865c5bfbd
std/jpeg: call slice.bulk_{load,save}_host_endian
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59540
name old speed new speed delta
wuffs_jpeg_decode_30k_24bpp_progressive/clang11 131MB/s ± 0% 168MB/s ± 0% +28.44% (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10 167MB/s ± 0% 175MB/s ± 0% +4.80% (p=0.008 n=5+5)
2023-06-05 12:51:50 +10:00
Nigel Tao
4a164cda64
std/jpeg: tweak apply_progressive_idct
2023-06-05 09:29:30 +10:00
Nigel Tao
9c3ca6257d
cgen: generate 123u (instead of 123) even more
2023-06-04 22:09:19 +10:00
Nigel Tao
677a1c5b8e
cgen: builtin generates unsigned values more often
2023-06-04 22:01:54 +10:00
Nigel Tao
238aadd8eb
std/jpeg: factor out calculate_multiple_competc
2023-06-04 21:27:23 +10:00
Nigel Tao
2f18dc61d0
std/jpeg: call slice.bulk_memset
2023-06-04 21:22:14 +10:00
Nigel Tao
5edfe45e15
std/jpeg: add "#unsupported scan count"
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59540
2023-06-04 15:46:18 +10:00
Nigel Tao
0b18d43e4f
std/jpeg: avoid unnecessary IDCT applications
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59540
name old speed new speed delta
wuffs_jpeg_decode_30k_24bpp_progressive/clang11 84.6MB/s ± 0% 136.4MB/s ± 0% +61.33% (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10 93.8MB/s ± 0% 166.5MB/s ± 0% +77.49% (p=0.008 n=5+5)
2023-06-04 15:30:20 +10:00
Nigel Tao
442533f08c
std/jpeg: avoid unnecessary swizzles
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59540
name old speed new speed delta
wuffs_jpeg_decode_30k_24bpp_progressive/clang11 32.4MB/s ± 0% 84.6MB/s ± 0% +160.78% (p=0.008 n=5+5)
wuffs_jpeg_decode_30k_24bpp_progressive/gcc10 38.6MB/s ± 0% 93.8MB/s ± 0% +142.75% (p=0.008 n=5+5)
2023-06-04 13:24:39 +10:00
Nigel Tao
e5c92a0ce3
script: add bench-go-jpeg
2023-06-04 12:58:27 +10:00
Nigel Tao
4751ef4de5
test: add std/jpeg mimic tests and benches
2023-06-04 12:44:17 +10:00
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