It would certainly be possible to write an ImageInput that reads "from memory"
rather than from a disk.
Are you trying to make it work with the TextureSystem?
Can you say what the format is? Is there more than one format you're dealing
with? How would the "name" of the texture be specified?
-- lg
On Apr 7, 2012, at 1:09 PM, Will Thimbleby wrote:
> Hi, I'm dealing with some 3d file formats that store the texture data inside
> their own file format. I was wondering if there was an easy way to get OIIO
> to load these images from in memory data rather than needing to open separate
> files. Ideally I'd be able to pass bytes, length and format/extension guess
> to ImageInput::create and open.
> It doesn't seem possible, but I could have missed something. Any suggestions
> welcome.
> -- Will
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org