mirror of
https://github.com/odin-lang/Odin.git
synced 2026-11-05 10:13:11 -05:00
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.
examples/all for Documentation
NOTE: This exists purely for the documentation generator located at https://pkg.odin-lang.org/