Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/check_build/
/benchmark_images/
/subprojects/*/
!/subprojects/packagefiles
/subprojects/.wraplock
/.cache/
/.vscode/
/.frama-c/
/trash/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ it outperforms the reference implementation in common use cases.
| Parses all standard chunks | ✅ | ✅ | ❌ | ❌ |
| Doesn't require zlib<sup>[2]</sup> | ✅ | ❌ | ✅ | ✅ |
| Encoding | ✅ | ✅ | ✅ | ✅ |
| Animated PNG | Planned | ✅<sup>[3]</sup> | ❌ | ❌ |
| Animated PNG | | ✅<sup>[3]</sup> | ❌ | ❌ |

<sup>[1]</sup> The project is fuzz tested on [OSS-Fuzz](https://github.com/google/oss-fuzz) and vulnerabilities are fixed before they become public.

Expand Down
15 changes: 15 additions & 0 deletions docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ ninja
ninja install
```

## Testing

Tests require [libpng](http://libpng.org/pub/png/libpng.html) with Animated PNG (APNG) support
and are enabled through the `dev_build` option:

```bash
meson setup build -Ddev_build=true
cd build
meson test
```

If the system libpng does not include APNG support, a fallback is provided
that downloads libpng 1.6 and applies the APNG patch automatically.
This requires Meson 0.63 or newer.

## Embedding the source code

The source files `spng.c`/`spng.h` can be embedded in a project without
Expand Down
Loading