[PR #2314] [MERGED] dds_png: decode packed B5 color previews #2316

Closed
opened 2026-11-26 21:20:48 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2314
Author: @ZroIsHere
Created: 11/26/2026
Status: ✅ Merged
Merged: 11/26/2026
Merged by: @aslan2142

Base: main ← Head: fix/dds-png-b5g6r5-b5g5r5a1


📝 Commits (1)

  • 3e8c273 dds_png: decode packed B5 color previews

📊 Changes

2 files changed (+35 additions, -2 deletions)

View changed files

📝 tools/dds_png.py (+33 -1)
📝 tools/tex_export.py (+2 -1)

📄 Description

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

  • git diff --check
  • Python AST parse
  • Tests not run.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2314 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** ✅ Merged **Merged:** 11/26/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/dds-png-b5g6r5-b5g5r5a1` --- ### 📝 Commits (1) - [`3e8c273`](https://github.com/ubiquitarianism/leonida/commit/3e8c273d6b068973f60185e9f273d77cdbba6815) dds_png: decode packed B5 color previews ### 📊 Changes **2 files changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/dds_png.py` (+33 -1) 📝 `tools/tex_export.py` (+2 -1) </details> ### 📄 Description 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 - git diff --check - Python AST parse - Tests not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:48 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2316
No description provided.