Commit Graph
406 Commits
Author SHA1 Message Date
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 99597e1ff1 Raise the N in crc32's slicing-by-N from 8 to 16
name                          old speed      new speed      delta
wuffs_crc32_ieee_10k/clang    2.35GB/s ± 0%  2.86GB/s ± 1%  +21.45%  (p=0.000 n=47+5)
wuffs_crc32_ieee_100k/clang   2.35GB/s ± 0%  2.86GB/s ± 2%  +21.84%  (p=0.000 n=48+5)
wuffs_crc32_ieee_10k/gcc      2.69GB/s ± 0%  3.36GB/s ± 1%  +25.10%  (p=0.000 n=47+5)
wuffs_crc32_ieee_100k/gcc     2.68GB/s ± 1%  3.39GB/s ± 0%  +26.39%  (p=0.000 n=44+5)
wuffs_gzip_decode_10k/clang    213MB/s ± 0%   215MB/s ± 0%   +0.95%  (p=0.000 n=46+5)
wuffs_gzip_decode_100k/clang   237MB/s ± 0%   240MB/s ± 0%   +1.31%  (p=0.000 n=48+5)
wuffs_gzip_decode_10k/gcc      241MB/s ± 1%   246MB/s ± 0%   +2.00%  (p=0.000 n=45+5)
wuffs_gzip_decode_100k/gcc     283MB/s ± 1%   290MB/s ± 0%   +2.25%  (p=0.000 n=48+5)
2018-10-07 21:01:18 +11:00
Nigel Tao 34049e52d8 Optimize deflate Huffman; tighten an if
name                             old speed     new speed     delta
wuffs_deflate_decode_1k/clang    148MB/s ± 0%  149MB/s ± 0%  +0.61%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k/clang   228MB/s ± 1%  235MB/s ± 0%  +3.45%  (p=0.016 n=5+4)
wuffs_deflate_decode_100k/clang  253MB/s ± 0%  262MB/s ± 0%  +3.42%  (p=0.008 n=5+5)
wuffs_deflate_decode_1k/gcc      158MB/s ± 1%  157MB/s ± 0%  -0.44%  (p=0.032 n=5+5)
wuffs_deflate_decode_10k/gcc     265MB/s ± 0%  274MB/s ± 0%  +3.31%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k/gcc    300MB/s ± 0%  317MB/s ± 0%  +5.45%  (p=0.008 n=5+5)
2018-10-07 18:13:25 +11:00
Nigel Tao 0181537d0d Optimize deflate Huffman; remove unnecessary if
name                             old speed     new speed     delta
wuffs_deflate_decode_1k/clang    150MB/s ± 0%  148MB/s ± 0%  -1.50%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k/clang   223MB/s ± 0%  228MB/s ± 1%  +1.92%  (p=0.008 n=5+5)
wuffs_deflate_decode_100k/clang  243MB/s ± 0%  253MB/s ± 0%  +4.50%  (p=0.008 n=5+5)
wuffs_deflate_decode_1k/gcc      157MB/s ± 0%  158MB/s ± 1%  +0.67%  (p=0.008 n=5+5)
wuffs_deflate_decode_10k/gcc     265MB/s ± 0%  265MB/s ± 0%    ~     (p=0.095 n=5+5)
wuffs_deflate_decode_100k/gcc    299MB/s ± 0%  300MB/s ± 0%    ~     (p=0.056 n=5+5)
2018-10-07 17:57:02 +11:00
Nigel Tao 73ed2eece1 Change warning string's prefix from "!" to "~" 2018-09-15 08:59:37 +10:00
Nigel Tao ead965c61f Add a ! effect to copy_from_slice 2018-09-08 11:14:37 +10:00
Nigel Tao 724b136bf8 Remove the obsolete set_palette method 2018-09-08 11:11:36 +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 5bf7c5c051 Add image_config.first_frame_io_position
Also fix a type typo for image_config.first_frame_is_opaque.
2018-09-08 08:40:45 +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 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 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 0066d6ac9b Re-org gif's which_palette determination 2018-08-26 17:30:36 +10:00
Nigel Tao 826b3e6c48 Remove gif's previous_use_global_palette 2018-08-26 17:25:34 +10:00
Nigel Tao 132b54378c Remove frame_config.palette_changed 2018-08-26 17:22:29 +10:00
Nigel Tao 75195af7db Re-org GIF Image Descriptor parsing 2018-08-26 17:18:20 +10:00
Nigel Tao 87ee928448 Prepare to re-org GIF Image Descriptor parsing 2018-08-26 16:48:09 +10:00
Nigel Tao 7798beaa8c Add I/O positions 2018-08-26 16:31:19 +10:00
Nigel Tao ece4eea1af Make implicit palette entries opaque black 2018-08-25 14:54:27 +10:00
Nigel Tao fbb8bd44b8 Make blend an enum, not just a bool 2018-08-19 17:00:00 +10:00
Nigel Tao c1af1e2c82 Rename $(etc) to [etc] 2018-08-18 10:11:43 +10:00
Nigel Tao 6236e7205f Remove packageid 2018-08-12 21:44:49 +10:00
Nigel Tao eec0fce647 Change error "?foo" to status "?foo" 2018-08-12 21:31:56 +10:00
Nigel Tao 203b45e869 Remove status values 2018-08-12 19:36:29 +10:00
Nigel Tao b385c30b4f Add a "?" prefix to non-built-in status messages 2018-08-12 14:07:40 +10:00
Nigel Tao 73b104dfb8 Merge pull request #17 from jimmycasey/master
Fixed Spelling.
2018-08-04 09:56:44 +10:00
Nigel Tao eca5565821 Removed closed-for-read/write status codes 2018-08-04 09:34:39 +10:00
Nigel Tao 2100a9f837 Use !?? to denote coroutines 2018-07-29 13:57:13 +10:00
Nigel Tao ca06083f8a Rename the implicit in variable to args 2018-07-29 10:26:22 +10:00
Nigel Tao 9919d78245 Change func out-type from struct to bare type 2018-07-29 10:02:06 +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 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 7e4b244208 Delete an obsolete TODO 2018-07-15 17:46:33 +10:00
Nigel Tao 3df168ed9d Have std/gif's decode_frame call decode_config 2018-07-15 17:40:28 +10:00
Nigel Tao 29eb64a0a4 Add a nptr T type 2018-07-15 17:10:03 +10:00
Nigel Tao 15f2f42b77 Add a nullptr literal 2018-07-15 16:41:23 +10:00
Nigel Tao e49d464432 Make _fast explicit in copy_n_from_history_fast 2018-07-08 21:39:18 +10:00
Nigel Tao 9e300fc4f8 Rename unread_u8? to undo_byte!; add can_undo_byte 2018-07-08 21:02:29 +10:00
Nigel Tao 5aa16ef671 Use the peek, skip_fast and write_fast methods
No change in the benchmark numbers.
2018-07-08 14:17:16 +10:00