dds_png: decode DXGI R8_UNORM previews #2322

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

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


Summary

Add DDS preview decoding for DXGI R8_TYPELESS and R8_UNORM (formats 60 and 61). The stored byte is emitted as red, with green and blue set to zero and alpha set to 255.

The decoder uses the existing single-channel path, including row-pitch and truncated-payload validation.

Validation

  • git diff --check
  • Tests not run.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5511187117 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2322). Originally posted by [ZroIsHere](https://github.com/ZroIsHere) on 2026-11-26T13:47:00Z. --- ## Summary Add DDS preview decoding for DXGI R8_TYPELESS and R8_UNORM (formats 60 and 61). The stored byte is emitted as red, with green and blue set to zero and alpha set to 255. The decoder uses the existing single-channel path, including row-pitch and truncated-payload validation. ## Validation - `git diff --check` - Tests not run.
aslan2142 commented 2026-11-26 18:29:24 +00:00 (Migrated from github.com)

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


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:7200520809 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2322#issuecomment-7200520809). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-26T18:29:24Z. --- 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!2322
No description provided.