Skip to content

README: the BCPack decoder rebuilds BC6H and BC7 too - #1063

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
nightmoon1996:docs/readme-bcpack-codecs
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
nightmoon1996:docs/readme-bcpack-codecs

Conversation

@nightmoon1996

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #1006 (comment) (new PROC item)

What and why

The README status row for textures says the clean-room decoder (tools/bcpack.py) "rebuilds BC1, BC3, BC4 and BC5". Since #576 it rebuilds all six codecs: SUPPORTED_REBUILD_CODECS is {1, 3, 4, 5, 6, 7} and docs/textures.md lists BC1, BC3, BC4, BC5, BC6H and BC7. #504 refreshed the row before #576 landed.

One line changes. The row now lists the six codecs, with a short note that most BC6H/BC7 chunks need a local history table, which the repository does not ship: in the default strict mode a chunk that refers to the built-in history is refused (BcpackProvisionalError), and only self-contained chunks decode without one. The rest of the row (pool entries skipped by the export, not wired into rpf9dump) is unchanged.

docs/textures.md is not touched; its ttpf_mips.py check line belongs to #939.

Tested

Docs only. tests/test_bcpack.py and tests/test_bcpack_tables.py pass on main (48 tests), and a synthetic 4-block BC7 stream was used to confirm the note: self-contained it decodes in strict mode, and with one block predicting from the built-in history it is refused. No game files, no GPU.

AI-assisted (Claude Code).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (not a translator change)

🤖 Generated with Claude Code

The status row listed BC1, BC3, BC4 and BC5. tools/bcpack.py has rebuilt all
six codecs since ItsNotRexed#576, as docs/textures.md says; most BC6H and BC7 chunks
need a history table the repository does not ship.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kapitche

Copy link
Copy Markdown
Contributor

Reviewed cd4c3ed (README only). I checked the claim against main:

  • tools/bcpack.py has SUPPORTED_REBUILD_CODECS = frozenset({1, 3, 4, 5, 6, 7}), so BC6H and BC7 are rebuilt.
  • _bc6h_blocks with history=None accepts only self-contained chunks, and raises BcpackProvisionalError for the rest.
  • docs/textures.md says no fitted BC6H/BC7 history is embedded, and there's no history JSON in the tree.

So the new sentence matches the code. The only part I couldn't tie to a number is "most" in "most BC6H/BC7 chunks need a local history table".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants