Files
Odin/examples
Jeroen van Rijn a99cf42722 Add core:image/bng
Reader and writer for BNG (https://bngformat.org), with thanks to its author for the Unlicensed spec and reference code.

- `bng.load` defaults to `.alpha_premultiply` (pixels as stored); `{}` gives straight alpha.
- `bng.save` stores pixels as-is; RGB-8 input gets alpha 255.
- Output is byte-identical to the reference encoder.
- Faster than `bng_fast.h` (enc/dec MP/s):
  - 5950X: 203/113 vs 137/108
  - M4: 260/157 vs 199/133
- Tests: known-answer, round trips, synthetic tokens, truncation, bit flips, and reference pairs from test-assets.
2026-11-02 23:55:38 +01:00
..
2026-11-02 23:55:38 +01:00
2026-07-05 01:26:04 -03:00

Examples

The example directory contains three packages:

A demo illustrating the basics of Odin.

An android app, with how to build, bundle, and run it.

It further contains all, which imports all core and vendor packages so we can conveniently run odin check on everything at once.

For additional example code, see the examples repository.