It's along the lines of (as per page 163 of the manual):
float* data = ...;
ImageBuf buf(ImageSpec(correct, params, for, data), data);
This triggers the following assertion:
libOpenImageIO/imagebuf.cpp
390: ASSERT (0 && "ImageBuf wrapping client buffer not yet
supported");
On Tue, 11 Apr 2017 at 18:47 Larry Gritz <[email protected]> wrote:
> As far as I know, it works. Can you sketch out how you're setting it up
> and exactly what calls you're making?
>
>
> > On Apr 10, 2017, at 10:34 PM, Anders Langlands <
> [email protected]> wrote:
> >
> > Hi there, I just found out the hard way that wrapping a client data
> buffer in an ImageBuf doesn't appear to be implemented (I'm building off
> master). I was hoping to use this as an easy way to write out images given
> a block of pixel data. Is there another way of doing this with the library,
> or should I just create a local-storage ImageBuf and copy my data into it?
> >
> > Cheers,
> >
> > Anders
> >
>
> --
> Larry Gritz
> [email protected]
>
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org