ImageEngine / cortex

Libraries for visual effects software development
Other
531 stars 124 forks source link

OpenImageIOAlgo : Add missing array handlers to `data()` #1425

Closed johnhaddon closed 4 months ago

johnhaddon commented 4 months ago

And consolidate the existing array handling to use the same templated function as everything else. This new version is preferable because it doesn't initialise the data twice (previously the resize() was doing a redundant initialisation prior to the copy()).

This fixes the loading of ICCProfile metadata, which is the underlying problem reported in https://groups.google.com/g/gaffer-dev/c/qUSJ-r0XuYI/m/y4OMtrBUAAAJ.

danieldresser-ie commented 4 months ago

LGTM