Support for loading/saving 'native' premultiplied WIC content
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- computer-graphics
Research direction
Start by tracing the WIC loader's conversion to straight alpha and the DDS writer's metadata handling. Review the listed TIFF/WIC pixel formats and the direct-load DXGI mappings, then verify that native premultiplied data is preserved on load and the metadata flag is honored on save.
Written by the indexing model from the issue text.
Description
As part of the support for premultiplied alpha, the library will load DDS files with 'native' pm alpha data and preserve it with a metadata flag to indicate this, and the DDS writer respects this as well.
The WIC loader will currently always convert to 'straight alpha' before returning the data. The majority of the WIC built-in codecs do not support 'native' pm alpha pixel formats. There are one case that could potentially store 'native' pm alpha data.
TIFF
- GUID_WICPixelFormat32bppPBGRA
- GUID_WICPixelFormat64bppPRGBA
- GUID_WICPixelFormat128bppPRGBAFloat
These are all the WIC native pixel formats for pmalpha, although they are not returned by most of the built-in native codecs. They primarily exist for conversions.
GUID_WICPixelFormat32bppPRGBAGUID_WICPixelFormat32bppPBGRAGUID_WICPixelFormat64bppPRGBAGUID_WICPixelFormat64bppPBGRAGUID_WICPixelFormat128bppPRGBAFloatGUID_WICPixelFormat64bppPRGBAHalf(WIC2+)
This work item would be to include these in the 'direct-load' DXGI mappings to avoid any conversion and then setting the metadata flag, and the converse.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 498
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/DirectXTex
-
question
Difficulty 4/5 3-5 days Newbie friendliness 30/100
microsoft/DirectXTex#734 · 8 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoft/DirectXTex#729 ·
-
exr
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoft/DirectXTex#724 · 2 comments ·
-
Project feedback Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/DirectXTex#719 · 2 reactions ·
-
tools
Difficulty 5/5 Over a week Newbie friendliness 30/100
microsoft/DirectXTex#717 ·
All issues in microsoft/DirectXTex
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·