[PR #2158] [CLOSED] dds_png: decode DXGI R16G16B16A16_SNORM previews #2162

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/2158
Author: @ZroIsHere
Created: 11/26/2026
Status: ❌ Closed

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


📝 Commits (1)

  • c4439f5 dds_png: decode DXGI RGBA16 SNORM previews

📊 Changes

2 files changed (+41 additions, -1 deletions)

View changed files

📝 tests/test_dds_png_dx10.py (+14 -0)
📝 tools/dds_png.py (+27 -1)

📄 Description

Claimed: DDS-RGBA16-SNORM

What and why

Add DXGI format 13 (R16G16B16A16_SNORM) to the DDS preview decoder. Map signed normalized channels to RGBA8, treating -32768 and -32767 as -1.0 and preserving padded-row and truncation checks. Synthetic cases cover signed endpoints, zero, row padding and truncated payloads.

Tested

Not run in this change. The regression cases are synthetic and use 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/2158 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/dds-rgba16-snorm` --- ### 📝 Commits (1) - [`c4439f5`](https://github.com/ubiquitarianism/leonida/commit/c4439f58379278bc0948e3ba5471c91c1e27b5f3) dds_png: decode DXGI RGBA16 SNORM previews ### 📊 Changes **2 files changed** (+41 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_dds_png_dx10.py` (+14 -0) 📝 `tools/dds_png.py` (+27 -1) </details> ### 📄 Description Claimed: DDS-RGBA16-SNORM ### What and why Add DXGI format 13 (`R16G16B16A16_SNORM`) to the DDS preview decoder. Map signed normalized channels to RGBA8, treating -32768 and -32767 as -1.0 and preserving padded-row and truncation checks. Synthetic cases cover signed endpoints, zero, row padding and truncated payloads. ### Tested Not run in this change. The regression cases are synthetic and use 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#2162
No description provided.