Hi,

I try to read a scanline image in parallel with OpenMP like this:

#pragma omp parallel for
for (int y = 0; y < spec.height; y++)
{
        float *floatPtr = line + linesize * y;
bool success = in->read_scanlines(0, 0, y, y + 1, 0, 0, 3, TypeDesc::FLOAT, floatPtr);
}


I use VisualStudio 2015, /openmp is turend on. And it works with simple loops like multiply numbers or something like that. Unfortunately the read_scanlines() is not speed up as expected or at all. What's the problem with my approach?
I read openExr files, it that maybe a problem?

Thanks for any ideas.

haggi
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to