[PR #2316] [CLOSED] dds_png: decode DXGI R8G8_UNORM previews #2320

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2316
Author: @ZroIsHere
Created: 11/26/2026
Status: ❌ Closed

Base: main ← Head: fix/dds-png-rg8-unorm


📝 Commits (1)

  • 1c05659 dds_png: decode DXGI R8G8_UNORM previews

📊 Changes

1 file changed (+28 additions, -2 deletions)

View changed files

📝 tools/dds_png.py (+28 -2)

📄 Description

Summary

Add DDS preview decoding for DXGI R8G8_TYPELESS and R8G8_UNORM (formats 48 and 49). The stored bytes are emitted as red and green, with blue set to zero and alpha set to 255.

The decoder validates row pitch and truncated payloads.

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/2316 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/dds-png-rg8-unorm` --- ### 📝 Commits (1) - [`1c05659`](https://github.com/ubiquitarianism/leonida/commit/1c056591bc6dc3f0f368e6610ba4cdbf66e0ca77) dds_png: decode DXGI R8G8_UNORM previews ### 📊 Changes **1 file changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/dds_png.py` (+28 -2) </details> ### 📄 Description ## Summary Add DDS preview decoding for DXGI R8G8_TYPELESS and R8G8_UNORM (formats 48 and 49). The stored bytes are emitted as red and green, with blue set to zero and alpha set to 255. The decoder validates row pitch and truncated payloads. ## 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:49 +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#2320
No description provided.