<!-- Canonical page: https://reversedwithai.com/p/bcpack-a8eb7526 -->
Canonical page: https://reversedwithai.com/p/bcpack-a8eb7526

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

> A Rust decoder and specification for the BCPack rANS entropy codec used in Xbox Series texture pools.

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.

## Key facts

- Target: BCPack
- Category: File formats
- Platform: Xbox Series X|S
- Models: Claude
- Tools: Rust, Python, rayon, serde_json
- Outcome: Partial
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: Ahmet-Dedeler
- Added: 2026-11-28
- Updated: 2026-11-28
- Sources reviewed: 2026-11-30 (automated reviewer)

## What was done

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](https://raw.githubusercontent.com/ahmet-dedeler/bcpack-rs/HEAD/README.md).

## Human work and limitations

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.

## Reproduce it

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`.

## AI use in the original source

- "Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>" ([source](https://github.com/ahmet-dedeler/bcpack-rs/commits.atom))

Excerpts checked against the source on 2026-11-24.

## Sources

- [Repository](https://github.com/Ahmet-Dedeler/bcpack-rs)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Ahmet-Dedeler (2026). Reversed BCPack texture compression used by the Xbox Series X|S Media Decompression Unit with Claude. Reversed with AI. https://reversedwithai.com/p/bcpack-a8eb7526
