Hey all, Apologies if this has come up before, but I'm curious if anyone had considered exposing ImageInput.read_native_scanlines() on the python side before. The reason I ask is mainly because the half datatype doesn't exist in the native python array class which OIIO uses for python reads. Currently the python array will punt and for anything to float (which I'd rather avoid).
I had put together an implementation in OIIO 1.5 that simply took the pixel size as a parameter and exposed read_native_scanlines that way and that allowed me to get the right data properly into either numpy or a raw char python array. However, I'd rather not be forked off like that as it's a headache trying to remain current with the mainline, plus others may find it useful. Does anyone think exposing the function in general makes sense? I'm happy to send the implementation if anyone cares to see it as well. Cheers, ~Andrew
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
