[PR #2157] [CLOSED] dds_png: decode DXGI R16G16B16A16_UNORM previews #2161

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

📋 Pull Request Information

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

Base: main ← Head: codex/dds-rgba16-unorm


📝 Commits (2)

  • 26fd8ff dds_png: decode DXGI RGBA16 UNORM previews
  • 7286d78 docs: list RGBA16 UNORM PNG previews

📊 Changes

3 files changed (+40 additions, -3 deletions)

View changed files

📝 tests/test_dds_png_dx10.py (+10 -0)
📝 tools/dds_png.py (+28 -2)
📝 tools/tex_export.py (+2 -1)

📄 Description

Claimed: DDS-RGBA16-UNORM

What and why

Add DXGI format 11 (R16G16B16A16_UNORM) to the DDS preview decoder. Normalize all four 16-bit channels to RGBA8 with half-up rounding, including row-pitch validation and padding. A synthetic two-row case covers channel boundaries and padded rows.

Tested

Not run in this change. The regression case is synthetic and uses no game data.

GPUs tested: n/a

AI-assisted: yes


🔄 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/2157 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/dds-rgba16-unorm` --- ### 📝 Commits (2) - [`26fd8ff`](https://github.com/ubiquitarianism/leonida/commit/26fd8ff036b1591986212689d5c9e71a1ee21e6a) dds_png: decode DXGI RGBA16 UNORM previews - [`7286d78`](https://github.com/ubiquitarianism/leonida/commit/7286d78232e170e64d24409f384b66e6cc6872f1) docs: list RGBA16 UNORM PNG previews ### 📊 Changes **3 files changed** (+40 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_dds_png_dx10.py` (+10 -0) 📝 `tools/dds_png.py` (+28 -2) 📝 `tools/tex_export.py` (+2 -1) </details> ### 📄 Description Claimed: DDS-RGBA16-UNORM ### What and why Add DXGI format 11 (`R16G16B16A16_UNORM`) to the DDS preview decoder. Normalize all four 16-bit channels to RGBA8 with half-up rounding, including row-pitch validation and padding. A synthetic two-row case covers channel boundaries and padded rows. ### Tested Not run in this change. The regression case is synthetic and uses no game data. GPUs tested: n/a AI-assisted: yes --- <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:15 +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#2161
No description provided.