mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #2319] [MERGED] dds_png: decode R8G8 integer previews #2321
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2321
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2319
Author: @ZroIsHere
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142
Base:
main← Head:fix/dds-png-rg8-integer📝 Commits (1)
81df9f5dds_png: decode R8G8 integer previews📊 Changes
2 files changed (+33 additions, -2 deletions)
View changed files
📝
tools/dds_png.py(+31 -1)📝
tools/tex_export.py(+2 -1)📄 Description
Summary
Add DDS preview decoding for DXGI R8G8_UINT (format 50) and R8G8_SINT (format 52). UINT channel bytes map directly to PNG red and green. SINT values map from the signed integer range [-128, 127] to [0, 255] by adding 128. Blue is zero and alpha is opaque.
The decoder validates row pitch and truncated payloads. Update the tex_export.py help text to include both formats.
Validation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.