Commit Graph
244 Commits
Author SHA1 Message Date
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
Nigel Tao d770e879ab Remove the wuffs_foo__status types 2018-06-10 21:40:43 +10:00
Nigel Tao 43bb14e886 Redo the encoding of error codes 2018-06-10 21:22:41 +10:00
Nigel Tao df96e48341 Rename some #ifndef WUFFS_BASE_HEADER_H guards 2018-06-10 09:37:30 +10:00
Nigel Tao 27e0139500 Have WUFFS_VERSION encode major.minor.patch 2018-06-09 08:08:18 +10:00
Nigel Tao b2b3593537 Decode interlaced GIFs 2018-06-09 07:46:07 +10:00
Nigel Tao 6b640bea86 Rename some std/lzw error messages 2018-06-03 09:28:57 +10:00
Nigel Tao 48a55f5490 Reorganize basic tests to all be in the one file 2018-06-03 09:26:43 +10:00
Nigel Tao 6d510bcfcb Spin out a std/lzw package 2018-06-02 14:15:09 +10:00
Nigel Tao 3e1cdd1a83 Rename some error messages 2018-06-02 13:16:50 +10:00
Nigel Tao 5b08ad2ba6 Change the order of check_wuffs_version args
This puts the self_ptr, self_len args next to each other.
2018-05-29 21:59:50 +10:00
Nigel Tao 1211e16e3c Add more error codes for check_wuffs_version 2018-05-29 14:33:15 +10:00
Nigel Tao 87ab36f8c4 Have check_wuffs_version take the sizeof receiver
Also rename foo__initialize to foo__check_wuffs_version.
2018-05-29 14:20:27 +10:00
Nigel Tao 0e498cb86d Remove use of struct field initial values 2018-05-29 09:07:23 +10:00
Nigel Tao cdb3b341bd Remove unused wlimit arg 2018-05-29 08:44:20 +10:00
Nigel Tao 5badfef313 Remove unused base.io_writer arg 2018-05-29 08:41:42 +10:00
Nigel Tao c5362d6413 Remove the write_to_ib_instead_of_w hack 2018-05-29 08:26:27 +10:00
Nigel Tao 3c3e6fc2fa Decode std/gif to an image_buffer, not io_buffer
This is about correctness, not performance, as an image_buffer supports
decoding to a frame_rect whose top-left corner isn't (0, 0). For the
record, though:

name                             old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang      318MB/s ± 1%   307MB/s ± 2%  -3.37%  (p=0.000 n=48+48)
wuffs_gif_decode_1k_color/clang   140MB/s ± 0%   137MB/s ± 1%  -2.18%  (p=0.000 n=46+46)
wuffs_gif_decode_10k/clang        128MB/s ± 0%   125MB/s ± 2%  -1.95%  (p=0.000 n=39+46)
wuffs_gif_decode_100k/clang       120MB/s ± 0%   119MB/s ± 1%  -1.36%  (p=0.000 n=45+47)
wuffs_gif_decode_1000k/clang      122MB/s ± 0%   121MB/s ± 1%  -1.35%  (p=0.000 n=44+49)

wuffs_gif_decode_1k_bw/gcc        329MB/s ± 2%   320MB/s ± 1%  -2.97%  (p=0.000 n=48+48)
wuffs_gif_decode_1k_color/gcc     160MB/s ± 1%   156MB/s ± 1%  -2.50%  (p=0.000 n=44+46)
wuffs_gif_decode_10k/gcc          144MB/s ± 1%   141MB/s ± 1%  -2.30%  (p=0.000 n=45+44)
wuffs_gif_decode_100k/gcc         128MB/s ± 1%   126MB/s ± 1%  -1.43%  (p=0.000 n=46+45)
wuffs_gif_decode_1000k/gcc        131MB/s ± 1%   129MB/s ± 1%  -1.44%  (p=0.000 n=48+46)
2018-05-28 19:58:15 +10:00
Nigel Tao e1293c2522 Fix decoding GIFs to an image (not IO) buffer 2018-05-28 14:06:58 +10:00
Nigel Tao b926cd1d02 Add test/data/hippopotamus.* images 2018-05-28 10:47:33 +10:00
Nigel Tao 30e1db733b Have image_buffer__palette return slice not ptr 2018-05-24 13:35:33 +10:00
Nigel Tao 5e856540bd Have std/gif update an image_buffer's dirty_rect 2018-05-24 11:29:16 +10:00
Nigel Tao 34cfc3f863 Have std/gif's palettes be BGRA, not RGB 2018-05-24 10:33:02 +10:00
Nigel Tao 66bcaf380d Handle GIF frame out of bounds same as Chromium 2018-05-23 15:59:41 +10:00
Nigel Tao 2301c763c3 Add a base.image_buffer arg to decode_frame 2018-05-18 09:42:24 +10:00