Hi,

I’ve just started using OpenImageIO to load and save images which I’m apply
some effects to with a a third party library. After processing, the third
party library converts images to planar (separate) format, and adds some
padding to each row.

I’ve been converting them back to interleaved (contig) using some code I
wrote before saving the images with OpenImageIO but noticed that some of
the command line tools included with the OpenImageIO distribution support
this conversion as well. If OpenImageIO can handle this conversion for me,
I’d like to learn how.

>From looking at the source for some of these tools they just appear to set
call the attribute method of the ImageSpec class with something like:
spec.attribute(“planarconfig”, “contig”). Because of the row padding (I
think) this approach isn’t working for me, and the output image is
corrupted.

Given this, I have two questions:

1. Does OpenImageIO support conversion from planar to interleaved with
padding?
2. If so, can you please point me in the direction of the recommended
functions / docs?

Thanks,
Steve Huey

-- 
// Steven Huey * Senior Software Engineer
// [email protected]
// www.artandlogic.com
// Art & Logic -- Coding the "impossible."™
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to