LCMS performance optimizations

This commit is contained in:
Oliver Duis
2011-04-09 17:49:44 +02:00
parent 31791b268f
commit 6024cb817a
6 changed files with 84 additions and 44 deletions

View File

@@ -21,6 +21,7 @@
#include <image8.h>
#include <string.h>
#include <rtengine.h>
#include <mytime.h>
using namespace rtengine;
@@ -234,4 +235,9 @@ Imagefloat::to16() const
return img16;
}
// Parallized transformation; create transform with cmsFLAGS_NOCACHE!
void Imagefloat::ExecCMSTransform(cmsHTRANSFORM hTransform) {
#pragma omp parallel for
for (int i=0; i<height; i++)
cmsDoTransform(hTransform, data + 3*i*rowstride, data + 3*i*rowstride, rowstride);
}