Commit Graph
2801 Commits
Author SHA1 Message Date
Nigel Tao 217b9dc9dc Implement std/png filters 2020-12-26 19:26:47 +11:00
Nigel Tao 4ff1429553 Add std/png filter_and_swizzle 2020-12-25 18:35:19 +11:00
Nigel Tao 6980e93a76 Have std/png decode_frame handle multiple IDATs 2020-12-25 15:40:24 +11:00
Nigel Tao 43a74d6b81 Apply io_limit to original not just derived vars 2020-12-24 22:45:31 +11:00
Nigel Tao d655f51dae Fix std/png decode_frame workbuf bounds checks 2020-12-24 22:34:25 +11:00
Nigel Tao 3faddde52d Fix imageviewer signed/unsigned char comparison 2020-12-24 22:30:32 +11:00
Nigel Tao b4fd57e76d Have std/png call zlib.decoder.transform_io 2020-12-24 21:41:45 +11:00
Nigel Tao 4e39155715 Have std/png depend on std/{crc32,zlib} part 2/2 2020-12-24 14:29:59 +11:00
Nigel Tao 10783eda5a Have std/png depend on std/{crc32,zlib} part 1/2 2020-12-24 14:29:33 +11:00
Nigel Tao 67a05d1e25 Have std/png io_bind the workbuf 2020-12-24 14:25:57 +11:00
Nigel Tao b81999f9fc Restrict an io_bind io arg to local variables only 2020-12-24 14:11:48 +11:00
Nigel Tao 78c7087eee Implement io_limit 2020-12-24 14:01:48 +11:00
Nigel Tao 58c30e9d6d Add std/png 2020-12-24 13:10:29 +11:00
Nigel Tao 47a231f679 Simplify nie.decoder.decode_image_config 2020-12-23 21:28:31 +11:00
Nigel Tao 332fb46b5c Remove std/nie decoder.swizzle derived var hack 2020-12-23 15:34:42 +11:00
Nigel Tao f6d11c78da Add ast.Expr IsArgsDotFoo and IsMethodCall methods 2020-12-23 15:13:14 +11:00
Nigel Tao 1197e86616 Add std/nie 2020-12-23 14:53:56 +11:00
Nigel Tao 9e2beacfb7 Tighten the NIE spec so that sizes fit in an int32 2020-12-22 15:04:59 +11:00
Nigel Tao 5a387fe090 Swizzler support for src_pixfmt = RGB|A_NONPREMUL
Binary size, before:
21520 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
22536 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
34488 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
34408 gen/lib/c/gcc-static/wuffs-base-pixconv.o

After:
25712 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
26800 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
42816 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
42768 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2020-12-20 21:50:37 +11:00
Nigel Tao 38827d87f3 Have restart_frame require decode_image_config 2020-12-19 22:45:41 +11:00
Nigel Tao 68fb70f9d5 Harmonize image decoders' call_sequence states 2020-12-19 22:42:49 +11:00
Nigel Tao 9399c82409 Have non-animated image decoders give EOD earlier 2020-12-19 22:03:22 +11:00
Nigel Tao 4a8acf968b Tighten valid const/func/struct names 2020-12-19 20:56:03 +11:00
Nigel Tao f473ffa050 Deprecate script/preprocess-wuffs.go 2020-12-18 22:10:16 +11:00
Nigel Tao 695a6815b1 Remove gif.config_decoder
The original motivation (having a low-featured low-memory decoder just
for counting GIF frames) is obsolete: https://crbug.com/1132828

Binary size, before:
42264 gen/lib/c/clang-9-dynamic/wuffs-std-gif.lo
42392 gen/lib/c/clang-9-static/wuffs-std-gif.o
44824 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
45624 gen/lib/c/gcc-static/wuffs-std-gif.o

After:
26736 gen/lib/c/clang-9-dynamic/wuffs-std-gif.lo
26712 gen/lib/c/clang-9-static/wuffs-std-gif.o
27976 gen/lib/c/gcc-dynamic/wuffs-std-gif.lo
28392 gen/lib/c/gcc-static/wuffs-std-gif.o
2020-12-18 22:06:08 +11:00
Nigel Tao 1c8f9280fd Add fuzz/c/std/bmp_fuzzer.c 2020-12-15 22:25:21 +11:00
Nigel Tao 4346028a23 Factor out fuzz/c/fuzzlib/fuzzlib_image_decoder.c 2020-12-15 22:21:55 +11:00
Nigel Tao bb7390261a Have gif_fuzzer sometimes use a BGRA_PREMUL dst 2020-12-15 22:07:31 +11:00
Nigel Tao 0f807639c1 wuffs gen -version=0.3.0-alpha.18 2020-12-15 16:23:24 +11:00
Nigel Tao c79129a853 Restore deprecated {reader,writer}_io_position 2020-12-15 16:23:02 +11:00
Nigel Tao 688de33f2a Have std/bmp skip_frame handle RLE compression 2020-12-15 16:19:18 +11:00
Nigel Tao 290adc9069 Have std/bmp consume the final per-row padding 2020-12-15 11:43:04 +11:00
Nigel Tao 59799ddcc5 Remove std/bmp redundant dst_y_end field 2020-12-14 23:17:31 +11:00
Nigel Tao 47b114e948 Have std/bmp reject RLE EOL if y out of bounds 2020-12-14 23:12:27 +11:00
Nigel Tao 267134df94 wuffs gen -version=0.3.0-alpha.17 2020-12-14 09:53:25 +11:00
Nigel Tao 1878dc9037 Have std/bmp detect bad RLE compression 2020-12-14 09:49:16 +11:00
Nigel Tao f880d644fa Have std/bmp decode OS/2 BMP files 2020-12-14 09:24:40 +11:00
Nigel Tao 7c2f36509b Have std/bmp decode 1, 2 or 4 bits per pixel 2020-12-13 22:37:40 +11:00
Nigel Tao 8a12a64754 Add limited_swizzle_u32_interleaved_from_reader 2020-12-12 00:28:16 +11:00
Nigel Tao 8ee76df4f5 Add swizzle_interleaved_transparent_black decl 2020-12-11 14:22:53 +11:00
Nigel Tao 977ed8f0d9 Have std/bmp decode COMPRESSION_RLE8 2020-12-11 10:24:25 +11:00
Nigel Tao 49b5b3c03c Remove redundant loop condition in std/bmp 2020-12-05 23:11:41 +11:00
Nigel Tao f67d83cc07 Add std/bmp COMPRESSION_ETC constants 2020-12-05 22:49:28 +11:00
Nigel Tao 6695e4aae8 Fix std/bmp checking bits_per_pixel too early 2020-12-04 23:23:12 +11:00
Nigel Tao 0ccdece50a Add swizzle_interleaved_transparent_black 2020-12-04 22:53:59 +11:00
Nigel Tao fa17982be0 Run "wuffs gen" missed for 0c481fe7 2020-12-03 22:11:15 +11:00
Nigel Tao 0c481fe7c6 Improve cgen for constant-indexed slices of arrays 2020-12-02 22:39:34 +11:00
Nigel Tao 8482161c91 Add base.pixel_buffer.palette_or_else 2020-12-02 22:13:35 +11:00
Nigel Tao 2cf0252453 Have std/bmp decode 8-bit paletted images 2020-11-26 14:34:32 +11:00
Nigel Tao 50a0e767d4 Fix -Werror=conversion in base/image-public.h 2020-11-24 09:02:43 +11:00