dds_png: decode DXGI R16G16B16A16_UNORM previews #2157

Closed
github-bot wants to merge 0 commits from github-bot/gh-2157 into main AGit
Owner

@⁠ZroIsHere on GitHub · 2026-11-26 00:26 UTC · original
ZroIsHere:codex/dds-rgba16-unorm → main · +40 −3 · 3 files · 2 commits · closed without merging

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

**@⁠ZroIsHere** on GitHub · 2026-11-26 00:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2157) `ZroIsHere:codex/dds-rgba16-unorm` → `main` · +40 −3 · 3 files · 2 commits · closed without merging 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:20:33 +00:00
Author
Owner

@⁠real-rusher on GitHub · 2026-11-26 10:12 UTC · original

Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly into main. With this PR, python -I tests/test_dds_png_dx10.py: 6 tests OK. The PR's test file against main's tools/dds_png.py: 1 error, so the new test fails on main and passes with the change. compileall clean.

Note for review: it conflicts with #2158 (tools/dds_png.py, tests/test_dds_png_dx10.py) and with #2218 (tools/dds_png.py, tools/tex_export.py), which add formats to the same tables, so whichever lands later needs a rebase.

AI-assisted: yes (Claude Code)

**@⁠real-rusher** on GitHub · 2026-11-26 10:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2157#issuecomment-7189059967) Verified on main a73a57e1 (Ubuntu 24.04 x86-64, Python 3.13, no GPU). Merges cleanly into main. With this PR, python -I tests/test_dds_png_dx10.py: 6 tests OK. The PR's test file against main's tools/dds_png.py: 1 error, so the new test fails on main and passes with the change. compileall clean. Note for review: it conflicts with #2158 (tools/dds_png.py, tests/test_dds_png_dx10.py) and with #2218 (tools/dds_png.py, tools/tex_export.py), which add formats to the same tables, so whichever lands later needs a rebase. AI-assisted: yes (Claude Code)
github-bot closed this pull request 2026-11-26 17:59:41 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-26 18:28 UTC · original

Merged through the integration PR #2394 (DDS preview formats batch), as head 7286d7823, with a merge commit, so your commits stay yours.

  • Your decoder and test are unchanged.
  • The tex_export.py and dds_png.py docstrings were merged into one format list with the other batch PRs.

Thanks @⁠ZroIsHere, and thanks to real-rusher for the check.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

**@⁠aslan2142** on GitHub · 2026-11-26 18:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2157#issuecomment-7200511865) Merged through the integration PR #2394 (DDS preview formats batch), as head `7286d7823`, with a merge commit, so your commits stay yours. - Your decoder and test are unchanged. - The `tex_export.py` and `dds_png.py` docstrings were merged into one format list with the other batch PRs. Thanks @⁠ZroIsHere, and thanks to real-rusher for the check. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.