Commit Graph
92 Commits
Author SHA1 Message Date
Nigel Tao d4be1fdf72 Add some #ifndef's to the examples 2018-12-29 13:28:01 +11:00
Nigel Tao dd94ad3821 Rename z variable to status, in C code 2018-12-28 16:14:03 +11:00
Nigel Tao 04c91f1410 Generate .c files instead of .h files
The files' contents haven't changed (other than some relative #include's
that refer to other .c files).

Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
2018-12-22 15:29:00 +11:00
Nigel Tao 529ebb0a61 Introduce binary alpha 2018-12-22 08:48:49 +11:00
Nigel Tao 45ab79b451 Allow GIF decoding to non-indexed pixel formats 2018-12-08 16:08:02 +11:00
Nigel Tao fc1002cb89 Implement gif.decoder.workbuf_len
Also relax decode_frame's workbuf length check from not-equals to
less-than.
2018-11-17 21:52:26 +11:00
Nigel Tao f06126c85a Rename color_u32argb; add YCoCg color 2018-11-17 11:43:34 +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 8b1ffec576 Make struct impls private (opaque pointers)
This gives us flexibility to change sizeof(wuffs_foo__bar__struct)
across Wuffs versions, while retaining ABI / API compatibility.

In particular, this lets us add and remove fields.
2018-10-06 10:33:47 +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 180ce5e481 Add wuffs_base__malloc_slice_uxx functions 2018-09-09 21:31:37 +10:00
Nigel Tao 2c7fd8058a Repurpose a pixbuf's plane 3 for the palette 2018-09-08 11:03:22 +10:00
Nigel Tao 29986823e5 Don't assume that pixbuf_len == number of pixels 2018-09-08 09:21:24 +10:00
Nigel Tao fbbdc412d1 Rename work_buffer_size to workbuf_len 2018-09-08 09:06:56 +10:00
Nigel Tao ca940b0c56 Rename pixbuf_size to pixbuf_len 2018-09-08 08:47:34 +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 9c04249bfe Add warnings as another status code category 2018-08-26 23:22:45 +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 b840c80040 Make the status type a const char*, not a struct 2018-08-12 16:05:14 +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 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 8a6e177701 Add WUFFS_CONFIG__STATIC_FUNCTIONS 2018-07-14 10:16:10 +10:00
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 65e2e7196a Fix example/library for .h directory change 2018-07-01 22:41:00 +10:00
Nigel Tao 13d2814519 Raise example/crc32's buffer size from 16K to 32K
This matches the 32K buffer size used by
https://github.com/redhotpenguin/perl-Archive-Zip/blob/master/script/crc32
as shipped as /usr/bin/crc32 on Debian
2018-06-30 16:49:13 +10:00
Nigel Tao 30cfaa5db7 Add C++ convenience methods 2018-06-30 13:02:16 +10:00
Nigel Tao 6183aba9d7 Capitalize the $CC and $CXX environment variables 2018-06-30 10:43:26 +10:00
Nigel Tao f3538d9117 Add example/crc32 2018-06-30 10:41:04 +10:00
Nigel Tao b09748c485 Build examples with -Wall -Werror 2018-06-30 09:10:10 +10:00
Nigel Tao 0a1ce533fd Add a wuffs_base__image_buffer__bounds function 2018-06-23 08:01:25 +10:00
Nigel Tao 1bdfc4cda2 Add a wuffs_base__io_buffer__compact function 2018-06-23 07:50:21 +10:00
Nigel Tao 9d024ad22e Have example/gifplayer honor animation disposal 2018-06-23 07:05:15 +10:00
Nigel Tao 97e9b8aa8d Have example/zcat use the release edition 2018-06-17 09:53:03 +10:00
Nigel Tao 26ce04ab64 have image_buffer.set_from_slice return an error 2018-06-11 10:42:29 +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 c1dbfdb4aa Have gifplayer compose onto an ARGB buffer 2018-06-09 09:32:16 +10:00
Nigel Tao d238ab6d02 Have gifplayer sleep right before the stdout write 2018-06-02 14:21:52 +10:00