mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #2158] [CLOSED] dds_png: decode DXGI R16G16B16A16_SNORM previews #2162
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#2162
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/2158
Author: @ZroIsHere
Created: 11/26/2026
Status: ❌ Closed
Base:
main← Head:codex/dds-rgba16-snorm📝 Commits (1)
c4439f5dds_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.