diff options
| author | Tim Elery <timelery@gmail.com> | 2026-11-22 07:18:29 -0800 |
|---|---|---|
| committer | Tim Elery <timelery@gmail.com> | 2026-11-22 07:21:13 -0800 |
| commit | 4695bb398e14154ab3fcc8442642f526de9b7ac7 (patch) | |
| tree | 19734671e20a836d14c22a26f402777ad9a5fcc0 /runtime/src/thread_stacks.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
tools/bcpack: add pure-stdlib local history calibrator (`bcpack_history_calib.py`)
Add `tools/bcpack_history_calib.py` to derive external `--history <path>` JSON
tables (`bc1.json`..`bc7.json` or combined JSON) locally from a player's own
texture pools or exact reference block/DDS pairs using only the Python
standard library (`python -I`):
- Exact reference inversion (`--ref-dds POOL:INDEX=REF.dds`, `--ref-pairs`):
algebraically inverts direct built-in history references (`d > i` in blocks
0..255) across BC1/BC3/BC4/BC5/BC6H/BC7 into confirmed strict-mode entries.
- Read-only TTPF pool self-calibration (`inputs ...`): uses a prefix rANS lane
decoder (`decode_lanes_prefix`) together with exact BC6H/BC7 anchor MSB and
BC7 Mode-1 shared p-bit parity constraints, intra-block index smoothness
voting, and sibling raw/zlib mip endpoint fitting to derive provisional
tables usable with `--history <path> --allow-provisional`.
- Extend `tools/bcpack_tables_bptc.py`, `tools/bcpack.py`, and
`tools/ttpf_mips.py` so `--history` also accepts optional BC1-BC5 JSON
tables (`confirmed`, `provisional`, optional `replace`) alongside BC6H/BC7.
- Add synthetic unit tests in `tests/test_bcpack_history_calib.py` and document
the schemas and CLI workflow in `docs/textures.md`.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions