dds_png: decode packed B5 color previews #2314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2314"
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?
Imported from ubiquitarianism/leonida. Originally posted by ZroIsHere on 2026-11-26T13:45:19Z.
Add PNG preview decoding for DXGI B5G6R5_UNORM (format 85) and B5G5R5A1_UNORM (format 86) DDS textures. Expand the packed 5/6-bit color channels to 8-bit RGBA; B5G5R5A1 preserves its one-bit alpha channel.
The decoder validates row pitch and truncated payloads. Update the tex_export.py help text to list the new preview formats.
Validation
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T18:28:58Z.
Merged through the integration PR #2394 (DDS preview formats batch), as head
3e8c273d6, with a merge commit, so your commits stay yours.Added on top:
tex_export.py --pngcannot reach them yet. Its docstring no longer lists them. The standalonedds_png.pydecodes both.Thanks @ZroIsHere.
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)