Commit Graph

2 Commits

Author SHA1 Message Date
660b7fabb3 bcpack: update BC1/BC3/BC4/BC5 built-in history tables
Brings the embedded tables up to the 2026-11-21 confirmation pass:

- BC1: entries 9, 67 and 74 confirmed by exactly known blocks, 68 by a pooled fit
  plus a calibrated wrap-exclusion test (right 99.0-99.9% on known entries).
  6, 71 and 122 stay provisional (no exact evidence; a palette test favours
  their values at 96%, below the 99% bar for "confirmed"). Values unchanged.
- BC3: entry 220 refitted with the colour-order rule c0 >= c1 as a hard
  constraint (no exception in 9.45 million zlib blocks); still provisional.
- BC4: 55 -> 172 entries. 117 entries fitted from more chunks (the ui pack's
  BC4 chunks now decode), 26 values refitted with the encoder's degenerate-block
  conventions as hard rules; entries 52 and 190 confirmed.
- BC5: entries 105 and 255 confirmed by exactly known blocks (flat copies under
  a larger zlib mip, at least two agreeing votes); entry 114 refitted.

Tests: counts and key sets in test_bcpack_tables.py follow the new tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:53:33 -08:00
80fb7f2e41 Textures: add clean-room BCPack decoder (rANS + BC1/BC3/BC4/BC5) 2026-11-21 14:44:27 -08:00