BCPack · Partial · Source available

Reversed BCPack texture compression used by the Xbox Series X|S Media Decompression Unit with Claude

by Ahmet-Dedeler RepositorySave and follow0 views
View JSON
BCPack: A Rust decoder and specification for the BCPack rANS entropy codec used in Xbox Series texture pools.
Image: GitHub (Ahmet-Dedeler/bcpack-rs)

Who did what

“Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>”
github.com, checked 24 Nov 2026

The project is a clean-room reverse engineering effort. The author explicitly notes that the repository contains no game data and that all tests use synthetic streams. The BC1 implementation is considered solved, while other formats are in research branches.

What was done

This project provides a Rust implementation and specification for BCPack, a rANS-based entropy codec for BC1-BC7 textures. It includes a verified BC1 decoder, while BC4-BC7 support remains in research stages.

The project documents and implements a decoder for BCPack, the rANS entropy codec used by the Xbox Series X|S Media Decompression Unit (MDU) for block-compressed textures. The repository provides a Rust crate, a CLI tool, a Python reference decoder, and a written specification. The author reports that the BC1 entropy layer is exact, utilizing a clock-for-clock port of the Microsoft MDU lane decoder. The BC1 block layer implementation includes a fitted preset endpoint window and an index codebook. While BC1 decoding is verified, support for BC4, BC5, BC6H, and BC7 is limited to the entropy layer, with block mapping research ongoing. The author credits Claude Opus 5.5 as a co-author on multiple commits related to documentation, feature implementation, and repository structure. The decoder has been tested against retail Xbox Series texture pools, achieving exact convergence on 5,162 of 5,162 chunks. The repository contains no game data, and all tests rely on synthetic streams. Further details are available at https://raw.githubusercontent.com/ahmet-dedeler/bcpack-rs/HEAD/README.md.

Try it

setup

Point the harness at a local copy of texture pools by setting the BCPACK_GAME_ROOT environment variable. Run convergence checks with bcpack scan --jobs 8 --every 20 $BCPACK_GAME_ROOT/data/ttdb/**/*.ttpf and mip consistency tests using tools/bench/mipscore.py.

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. An automated check matched its claims against them on 30 Nov 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week