dds_png: decode DXGI R8G8_UNORM previews #2316

Closed
ZroIsHere wants to merge 1 commit from upstream-pr/2316 into main
ZroIsHere commented 2026-11-26 13:45:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ZroIsHere on 2026-11-26T13:45:49Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5511169173 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2316). Originally posted by [ZroIsHere](https://github.com/ZroIsHere) on 2026-11-26T13:45:49Z. --- ## 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.
aslan2142 commented 2026-11-26 18:29:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T18:29:27Z.


Closing as a duplicate: the same format went into main through #2394, from #2247 (R8 and R8G8 UNORM previews), which was claimed and tested first. Nothing from this branch is missing there.

Your other preview formats (#2157, #2158, #2218, #2314, #2317, #2319, #2320, #2321, #2323, #2324) were merged through the same integration PR. Thanks for them.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200521556 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2316#issuecomment-7200521556). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-26T18:29:27Z. --- Closing as a duplicate: the same format went into `main` through #2394, from #2247 (R8 and R8G8 UNORM previews), which was claimed and tested first. Nothing from this branch is missing there. Your other preview formats (#2157, #2158, #2218, #2314, #2317, #2319, #2320, #2321, #2323, #2324) were merged through the same integration PR. Thanks for them. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2316
No description provided.