Add BCPack BC1 texture decoder #1
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/nineforge0--forge9#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nineforge0 on GitHub · 2026-11-24 07:34 UTC · original
Decode BC1 (DXT1) compressed blocks to raw RGBA8 pixels.
Scope
src/formats/bc1.rswithpub fn decode(data: &[u8], width: u32, height: u32) -> anyhow::Result<Vec<u8>>(RGBA8, row-major).c0 <= c1case gives 3 colours + transparent black.Done when
cargo test --releasepasses.Follow-ups (separate issues): BC3/BC5/BC7, the BCPack framing used by texture pages, and a
forge9 texturecommand writing PNG/DDS.See CONTRIBUTING.md for build, test and style notes. Please don't attach game files to the PR; build test data in memory.