Nigel Tao
|
7f9f37ce5a
|
Have examples use WUFFS_CONFIG__STATIC_FUNCTIONS
Compile time:
$ time ./build-example.sh
Before: user 1m15.750s
After: user 0m50.343s
Binary size (excluding the statically linked example-toy-genlib):
$ ls -l gen/bin/example-* | awk '{print $5 " " $9}'
Before:
212624 gen/bin/example-cbor-to-json
284192 gen/bin/example-convert-to-nia
344744 gen/bin/example-crc32
184304 gen/bin/example-gifplayer
324952 gen/bin/example-imageviewer
209632 gen/bin/example-json-to-cbor
241432 gen/bin/example-jsonfindptrs
196320 gen/bin/example-jsonptr
309768 gen/bin/example-sdl-imageviewer
200704 gen/bin/example-zcat
After:
85280 gen/bin/example-cbor-to-json
242216 gen/bin/example-convert-to-nia
344744 gen/bin/example-crc32
53328 gen/bin/example-gifplayer
282840 gen/bin/example-imageviewer
95152 gen/bin/example-json-to-cbor
122720 gen/bin/example-jsonfindptrs
60448 gen/bin/example-jsonptr
267672 gen/bin/example-sdl-imageviewer
64792 gen/bin/example-zcat
Before total: 2508672
After total: 1619192
|
2021-10-04 12:35:32 +11:00 |
|
Nigel Tao
|
7753368324
|
Add const to example/imageviewer zooms variable
|
2021-10-04 09:33:33 +11:00 |
|
Nigel Tao
|
8eaa222592
|
Add example/imageviewer zoom and filter
|
2021-10-03 16:42:58 +11:00 |
|
Nigel Tao
|
1cf0df9da4
|
Tweak example{,sdl-}imageviewer
|
2021-10-03 15:30:04 +11:00 |
|
Nigel Tao
|
2453a8d52a
|
Run "clang-format-9 -style=Chromium"
Also replace /*...*/ comments with //... comments. The former don't nest
when using /*...*/ to comment out blocks of code.
|
2021-10-03 13:53:27 +11:00 |
|
Přemysl Eric Janouch
|
550fabd15d
|
Fix the imageviewer demo on DefaultDepth 30
Using Render compositing should make this work reliably
with pratically any root window visual.
|
2021-09-30 12:14:51 +02:00 |
|
Přemysl Eric Janouch
|
a1d9c6a8e6
|
Make imageviewer not segfault on XCB errors
Fixing the issue properly doesn't seem worth the effort,
shared memory is ugly, and incremental loading is a lot of code.
Xlib - XCB 1:0
|
2021-09-30 07:31:45 +02:00 |
|
Nigel Tao
|
816475b285
|
Add "b" (for "binary") to fopen calls
Updates #50
|
2021-07-07 20:28:35 +10:00 |
|
Nigel Tao
|
c86ac5baef
|
Add wuffs_base__table__flattened_length
|
2021-04-03 11:01:46 +11:00 |
|
Nigel Tao
|
314d265fe8
|
Spin out wuffs_aux Alloc{Pixbuf,Workbuf}Result
|
2021-04-02 23:57:18 +11:00 |
|
Nigel Tao
|
3b79564254
|
Drop redundant DecodeImageCallbacks subclass
|
2021-04-01 23:12:55 +11:00 |
|
Nigel Tao
|
57ad55355b
|
Have wuffs_aux SelectPixfmt default to BGRA_PREMUL
|
2021-03-29 22:06:39 +11:00 |
|
Nigel Tao
|
5767f030a3
|
Add DecodeImageCallbacks::SelectPixfmt
|
2021-03-11 16:25:16 +11:00 |
|
Nigel Tao
|
441e96a8d4
|
Add pixel_buffer.set_color_u32_fill_rect
|
2021-03-11 15:53:09 +11:00 |
|
Nigel Tao
|
1daace6342
|
Add DecodeImageCallbacks::OnImageFormat def impl
|
2021-03-11 12:04:00 +11:00 |
|
Nigel Tao
|
a21e891e24
|
Add example/imageviewer OnImageConfig override
|
2021-03-08 13:25:46 +11:00 |
|
Nigel Tao
|
04f8686989
|
Add wuffs_aux::DecodeImage
|
2021-03-03 23:19:58 +11:00 |
|
Nigel Tao
|
ccee207661
|
Change example/imageviewer from C to C++
|
2021-02-27 22:40:32 +11:00 |
|