Nigel Tao
8d7bd36179
Add more GIF benchmarks
...
The existing benchmarks decoded realistic photos. The new benchmarks
also decode artificially generated images, which compress better.
Also adjust script/extract-giflzw.go to optionally analyze and print a
histogram of LZW code emission lengths. "Compresses better" is highly
correlated with "a lower proportion of literal (1 length) codes".
2018-10-21 11:46:37 +11:00
Nigel Tao
7be9c39283
Move num_loops out of the image_config
...
For the GIF format, it isn't necessarily before the first frame.
2018-10-13 17:00:45 +11:00
Nigel Tao
6cc954d7e1
Have tests return a "const char*" status
2018-09-22 08:43:56 +10:00
Nigel Tao
b6da2f4fb4
Clean up iters vs iters_unscaled
2018-09-15 19:42:27 +10:00
Nigel Tao
058d435759
Don't repeat tests iterscale times
2018-09-15 17:33:39 +10:00
Nigel Tao
6fed251b40
Split an io_buffer's fields into data and meta
2018-09-15 08:45:50 +10:00
Nigel Tao
2e804c8f20
Remove the testlib's global_palette_buffer
2018-09-09 21:50:28 +10:00
Nigel Tao
2c7fd8058a
Repurpose a pixbuf's plane 3 for the palette
2018-09-08 11:03:22 +10:00
Nigel Tao
fbbdc412d1
Rename work_buffer_size to workbuf_len
2018-09-08 09:06:56 +10:00
Nigel Tao
11c8917a4c
Clip a frame's bounds to the image bounds
2018-09-08 08:02:47 +10:00
Nigel Tao
555a72d7a9
Add a decode_frame_options type
2018-09-02 15:08:00 +10:00
Nigel Tao
8b1e023e6a
Add image_config.work_buffer_size
2018-09-02 14:56:53 +10:00
Nigel Tao
a3269e160e
Tweak gif restart_frame args
2018-09-02 14:12:51 +10:00
Nigel Tao
a34cc5311e
Place the frame_config's pos before it not after
2018-08-26 23:58:03 +10:00
Nigel Tao
9c04249bfe
Add warnings as another status code category
2018-08-26 23:22:45 +10:00
Nigel Tao
54e5ea7f15
Test that end_of_data is repeatedly returned
2018-08-26 22:42:42 +10:00
Nigel Tao
d4f7c263e3
Rename s/invalid/bad/ in "invalid call sequence"
2018-08-26 21:20:25 +10:00
Nigel Tao
814507e848
First sketch of reset_for_decode_frame
2018-08-26 21:18:08 +10:00
Nigel Tao
db24a3f010
Tweak the gif I/O position test
2018-08-26 20:09:56 +10:00
Nigel Tao
14b28340f6
Add frame_config.index test
2018-08-26 17:55:57 +10:00
Nigel Tao
695d731fb9
Put the GIF frame_config I/O position back 1 byte
...
We'll need that flags byte (for the interlace bit and palette size) when
decoding frames in a random-access manner.
2018-08-26 17:48:43 +10:00
Nigel Tao
75195af7db
Re-org GIF Image Descriptor parsing
2018-08-26 17:18:20 +10:00
Nigel Tao
7798beaa8c
Add I/O positions
2018-08-26 16:31:19 +10:00
Nigel Tao
5e8801d866
Promote pixcfg field out of private_impl
2018-08-18 12:29:28 +10:00
Nigel Tao
4e7ef5fb88
Rename I/O bounds fields to mark and limit
2018-08-18 09:38:02 +10:00
Nigel Tao
b840c80040
Make the status type a const char*, not a struct
2018-08-12 16:05:14 +10:00
Nigel Tao
b385c30b4f
Add a "?" prefix to non-built-in status messages
2018-08-12 14:07:40 +10:00
Nigel Tao
1462084531
Add a "?" or "$" prefix to status messages
2018-08-12 10:50:22 +10:00
Nigel Tao
2a32a86a6c
Make the status type a struct, not an int32_t
2018-08-11 13:27:29 +10:00
Nigel Tao
fd43e777bc
Have check_wuffs_version return a status code
2018-08-05 22:29:54 +10:00
Jimmy Casey
3c50ada2c6
Fixed Spelling.
2018-07-26 17:12:19 +00:00
Nigel Tao
951d79fa00
Reorder decode_frame args
2018-07-22 17:27:29 +10:00
Nigel Tao
adba763a02
Fix decode_frame_config without decode_frame
2018-07-22 17:22:34 +10:00
Nigel Tao
9514b12c7f
Spin decode_frame_config out of decode_frame
2018-07-21 21:45:33 +10:00
Nigel Tao
bc82e51371
Rename wuffs-unsupported-snapshot.h
2018-07-21 09:20:10 +10:00
Nigel Tao
1c75f7b748
Redo {frame,image,pixel}_config and pixel_buffer
2018-07-21 09:15:33 +10:00
Nigel Tao
dcda30b96a
Rename decode_config to decode_image_config
2018-07-15 19:48:30 +10:00
Nigel Tao
3df168ed9d
Have std/gif's decode_frame call decode_config
2018-07-15 17:40:28 +10:00
Nigel Tao
a0bafff465
Ship as a "single file C library"
2018-07-14 08:59:36 +10:00
Nigel Tao
a32683e5ea
Drop the 32 in the skip32 and skip32_fast names
2018-07-08 14:02:32 +10:00
Nigel Tao
5e905492b3
Make rectangle method receivers pointers
2018-06-30 17:13:13 +10:00
Nigel Tao
6183aba9d7
Capitalize the $CC and $CXX environment variables
2018-06-30 10:43:26 +10:00
Nigel Tao
25a106903f
Have include guards start with WUFFS_INCLUDE_GUARD
2018-06-16 08:10:22 +10:00
Nigel Tao
11858b9799
Fix std/gif benchmark for filename change
2018-06-16 08:03:43 +10:00
Nigel Tao
1ee2152785
Add a image_config.first_frame_is_opaque method
2018-06-11 11:07:14 +10:00
Nigel Tao
26ce04ab64
have image_buffer.set_from_slice return an error
2018-06-11 10:42:29 +10:00
Nigel Tao
a09e63320d
Add a std/gif decoder.frame_count method
2018-06-11 09:11:45 +10:00
Nigel Tao
c5b7b7097e
Rename inclusive and exclusive to incl and excl
2018-06-11 09:04:12 +10:00
Nigel Tao
3d035df908
Add a std/gif decode_frame work_buffer arg
2018-06-11 08:55:28 +10:00
Nigel Tao
50a955317a
Remove the WUFFS_FOO__STATUS_ETC names
2018-06-10 22:05:06 +10:00