Skip to content

Add support for LoadFromEXRMemory as other formats#645

Merged
walbourn merged 5 commits intomicrosoft:mainfrom
vkaytsanov:EXRLoadFromMemory
Mar 7, 2026
Merged

Add support for LoadFromEXRMemory as other formats#645
walbourn merged 5 commits intomicrosoft:mainfrom
vkaytsanov:EXRLoadFromMemory

Conversation

@vkaytsanov
Copy link
Contributor

Tested from memory and from file the following exr: https://polyhaven.com/a/qwantani_dusk_2_puresky

Changes:
Rename *Stream -> *FileStream
Add InputStream wrapper to read from memory
Cut-paste the whole LoadFromEXRFile try-catch into LoadFromEXRCommon
Remove the equal sign from COMBINED_OPENEXR_VERSION as I am exactly on this version and I don't have this virtual method, todo: implement it in the future

@walbourn walbourn self-assigned this Nov 3, 2025
@walbourn walbourn added the exr OpenEXR auxiliary support label Nov 3, 2025
@walbourn
Copy link
Member

Can you rebase this?

@vkaytsanov
Copy link
Contributor Author

vkaytsanov commented Nov 23, 2025

@walbourn rebased and rearranged the code a little bit to give better diff. Please note, that I haven't tested non-windows desktop systems for the template argument deduction

@solbjorn
Copy link

Any plans to add support for loading mipmaps from tiled exrs?

Fixed uninitialized data from getmetadata
@walbourn
Copy link
Member

walbourn commented Mar 7, 2026

@walbourn
Copy link
Member

walbourn commented Mar 7, 2026

Thanks for your help!

@walbourn walbourn merged commit 607b248 into microsoft:main Mar 7, 2026
109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exr OpenEXR auxiliary support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants