Commit Graph
183 Commits
Author SHA1 Message Date
Nigel Tao 67e9078eab example/convert-to-nia: allow 16-bit PNG output 2025-06-23 09:51:31 +10:00
Nigel Tao 263bbfabf0 lib/handsum: add EncodeOptions type 2025-03-02 14:10:11 +11:00
Nigel Tao 64daf2653e lib/lowleveljpeg: add MinimumBaselineQuality 2025-02-27 22:08:14 +11:00
Nigel Tao f483ef0849 lib/lowleveljpeg: add Abs method, nil checks 2025-02-23 12:24:43 +11:00
Nigel Tao 12b404f58d cmd/handsum: new tool for the Handsum file format 2025-02-23 12:15:59 +11:00
Nigel Tao 9a7e2a4d06 lib/lowleveljpeg: add {Down,Up}sampleFrom 2025-02-14 18:25:17 +11:00
Nigel Tao 689f84213f lib: fix "go test" example names 2025-02-11 15:45:38 +11:00
Nigel Tao 2cac96f56b lib/lowleveljpeg: add new Go package 2025-02-11 14:46:34 +11:00
Nigel Tao d9c1a386db lib/uncompng: add new Go package 2024-09-19 14:51:21 +09:30
Nigel Tao bd42fa7af2 base38: reassign alphabet and numbers
It changes from " 0-9?a-z" to ".0-9a-z~". The default or placeholder
changes from " " to "." so it's now always visible. The wildcard changes
from "?" to "~" so it's now sorted last.
2024-08-26 12:30:20 +10:00
Nigel Tao 42d3b4d692 litonlylzma: add allowTestsToExecOtherPrograms 2023-11-25 11:16:52 +11:00
Nigel Tao b9c737eb37 litonlylzma: add TestUsrBinFoocatCompat 2023-10-17 21:25:38 +11:00
Patrick Georgi f563f32f82 Add SPDX identifier to license headers
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.

In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao 74a6ea2fcd all: relicense from Apache2 to dual Apache2/MIT
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).

If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.

The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c

Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao bad2693efb Add lib/litonlylzma.FileFormatXz 2022-08-24 22:46:01 +10:00
Nigel Tao be1f605108 Run gofmt 2022-08-21 21:41:06 +10:00
Nigel Tao fac934b272 Fix lib/readerat ReadSeeker.Seek offset bug
Fixes #80
2022-06-29 11:40:26 +10:00
Nigel Tao d0f0591f64 Add lib/litonlylzma 2022-06-24 13:22:36 +10:00
Nigel Tao 89411bc91d Add lib/nie Go library for decoding NIE images 2022-05-28 16:26:59 +10:00
Nigel Tao bb028ae764 Update tests for artificial/* filename rename 2021-11-18 08:10:12 +11:00
Nigel Tao 226c476994 Remove calls to Go's deprecated "io/ioutil" 2021-08-22 11:17:34 +10:00
Nigel Tao 788479dd64 Run "gofmt -w ." for new "//go:build" lines 2021-08-22 10:53:06 +10:00
Nigel Tao c8be16af3e Add lib/armneonintrinsics 2021-02-18 10:33:14 +11:00
Nigel Tao 2f2bbc6ab0 Rename default github.com branch s/master/main/ 2021-01-25 11:30:15 +11:00
Nigel Tao 2f78804e62 Use more inclusive language 2021-01-23 19:50:47 +11:00
Nigel Tao 3a34a1d7d2 Fix err assignment typo
Fixes #36
2020-09-10 12:11:45 +10:00
Nigel Tao b14e3eae9f Have dumbindent preserve indent on the first line 2020-07-12 09:29:48 +10:00
Nigel Tao 635b502649 Tweak lib/dumbindent's comments 2020-06-16 22:34:36 +10:00
Nigel Tao c9b50c0be7 Add links to dumbindent blog post 2020-06-16 14:25:46 +10:00
Nigel Tao 82233fe06c Fix dumbindent comment typo 2020-06-10 22:52:49 +10:00
Nigel Tao f935120aa6 Tweak how dumbindent handles #preproc lines 2020-06-10 22:37:54 +10:00
Nigel Tao b1ea22045a Stop dumbindent adding or removing line breaks 2020-06-10 21:51:25 +10:00
Nigel Tao b82396a3c6 Stop dumbindent dropping blank lines near braces 2020-06-10 21:06:06 +10:00
Nigel Tao 58c0862c50 Stop dumbindent collapsing consecutive blank lines 2020-06-10 12:22:41 +10:00
Nigel Tao 8bd30e912c Tweak dumbindent.breakAfterBrace 2020-06-09 22:45:40 +10:00
Nigel Tao 63c12cad17 Have dumbindent catch "namespace foo {". 2020-06-09 22:08:39 +10:00
Nigel Tao 8bf4084c8b Update dumbindent comparison for clang-format-9
The numbers are the median real time of 5 runs.
2020-06-09 15:46:56 +10:00
Nigel Tao 22d08366c8 Add dumbindent algorithm comment 2020-06-08 23:25:08 +10:00
Nigel Tao 2858c4cfc2 Add dumbindent.Options (tabs vs spaces) 2020-06-07 21:59:53 +10:00
Nigel Tao 53d5f5155c Have dumbindent break after some '{' and ';'s 2020-06-07 21:52:24 +10:00
Nigel Tao 7b6ce4a595 Remove dumbindent debugging code 2020-06-06 22:41:15 +10:00
Nigel Tao 0ad5f9b617 Have dumbindent no longer treat labels specially 2020-06-06 22:38:29 +10:00
Nigel Tao 6424bae087 Have dumbindent handle multi-line strings/comments
Fixes #31
2020-06-06 22:32:39 +10:00
Nigel Tao 3d7af06727 Have dumbindent take a dst slice argument 2020-06-06 21:09:41 +10:00
Nigel Tao dd04d55417 Update dumbindent comparison for clang-format-9 2020-06-05 18:35:05 +10:00
Nigel Tao d48a4eb581 Add dumbindent comment about extern "C" 2020-06-05 13:26:32 +10:00
Nigel Tao d0dec081a6 Tweak cgen+dumbindent output 2020-06-05 10:22:14 +10:00
Nigel Tao 12b0f4c0bc Change the default -cformatter to dumbindent
A follow-up commit will remove the -cformatter flag entirely.

Formatting the generated C code is now a small fraction of where "wuffs
gen" spends its time.

----
$ # Before.
$ time wuffs gen > /dev/null
real	0m0.932s
user	0m0.837s
sys	0m0.187s

$ # After.
$ time wuffs gen > /dev/null
real	0m0.186s
user	0m0.170s
sys	0m0.069s

$ time wuffs gen -cformatter= > /dev/null
real	0m0.184s
user	0m0.170s
sys	0m0.059s
----
2020-06-04 23:59:20 +10:00
Nigel Tao d8cd72798a Add {cmd,lib}/dumbindent 2020-06-04 23:35:11 +10:00
Nigel Tao 7d4a3a127d Increase cgolz4 Writer buf len for older lz4 libs 2019-12-23 17:30:50 +11:00