Files
Odin/examples/all
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-11-02 23:55:38 +01:00
2024-01-17 15:51:29 +00:00

examples/all for Documentation

NOTE: This exists purely for the documentation generator located at https://pkg.odin-lang.org/