Skip to content

Recognize additional WIC pixel formats - #27

Merged
jcwal1516 merged 1 commit into
frames-sg:mainfrom
domenic:codex/wic-pixel-formats
Nov 13, 2026
Merged

jcwal1516 merged 1 commit into
frames-sg:mainfrom
domenic:codex/wic-pixel-formats

Conversation

@domenic

@domenic domenic commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Recognize the Windows Imaging Component GUIDs for 32-bit RGBA, 32-bit premultiplied RGBA, and 96-bit RGB float in Annex-A containers. These identifiers do not use the Table A.6 GUID prefix and were previously reported as unknown.

In particular, separate-alpha PRGBA images must take their premultiplication declaration from the container rather than the primary codestream, whose alpha flags are unset. Classifying the GUID lets the existing metadata and consistency checks handle this correctly.


My agent found this and one other issue while processing a corpus of Kindle test books. I take responsibility for the code written, but am not a domain expert.

Recognize the Windows Imaging Component GUIDs for 32-bit RGBA, 32-bit premultiplied RGBA, and 96-bit RGB float in Annex-A containers. These identifiers do not use the Table A.6 GUID prefix and were previously reported as unknown.

In particular, separate-alpha PRGBA images must take their premultiplication declaration from the container rather than the primary codestream, whose alpha flags are unset. Classifying the GUID lets the existing metadata and consistency checks handle this correctly.

Co-authored-by: GPT-6 Astra · Extra High <codex@openai.com>
@jcwal1516

Copy link
Copy Markdown
Member

lgtm, thanks for catching these! I checked the GUIDs against the Windows SDK. Tests and CI are green.

@jcwal1516
jcwal1516 merged commit 2c55d05 into frames-sg:main Nov 13, 2026
2 checks passed
jcwal1516 added a commit that referenced this pull request Nov 15, 2026
Publish the separate-alpha SCALED_FLAG fix (#30) with the reference
encoder alpha end offsets (#28) and the additional WIC pixel formats
(#27). jxr-native and jxr-metal change; jxr, jxr-image and jxr-mpsgraph
follow their exact pins to 0.5.1 and 0.6.1. jxr-core, jxr-cuda and
jxr-math are unchanged and keep their published versions. Both
lockfiles follow.

cargo semver-checks reports no semver update required for any of the
five packages. docs/releasing.md gives the publish order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants