[EMAIL PROTECTED] schrieb:
No offence, it *was* so slow :-) However, things have changed after that.Yes, LCMS unfortunately is a bit slow (sorry to say that, Marti) :-(
lcms still does not reach Argyll levels, but 1.13 incarnation is faster that, say, Windows ICM.
It would be interesting to know whatever current version /actual hardware is enough for on-fly conversions.
Anyone has checked performance of 1.13?
Hi Marti,
since you made me curious, I did now a brief test on an AMD XP 2600+:
- LCMS compiled with "make CFLAGS=-O6"
- Conversion between AdobeRGB and sRGB, using the transform
cmsCreateTransform(in, TYPE_RGB_8, out, TYPE_RGB_8,
INTENT_RELATIVE_COLORIMETRIC,
cmsFLAGS_HIGHRESPRECALC);
Result:
lcms 1.12: circa 165.000 pixel/s
lcms 1.13: circa 380.000 pixel/s
(this is the CPU time for cmsDoTransform() only,
not including the time for creating the device link)
But as you said, unfortunately still (much) slower than Argyll
(by a factor of approx. 30).
Regards,
Gerhard
------------------------------------------------------------
#include <lcms.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/times.h>
#define PIXELS (1024*1024)
#define SIZE (3*PIXELS)
unsigned char idata[SIZE];
unsigned char odata[SIZE];
int
main(int ac, char **av)
{int i;
cmsHTRANSFORM t;
cmsHPROFILE in, out;
clock_t start, end;
for (i = 0; i < SIZE; i++)
idata[i] = odata[i] = lrand48() & 0xff;
in = cmsOpenProfileFromFile("AdobeRGB1998.icc", "r"); out = cmsOpenProfileFromFile("sRGB.icm", "r");t = cmsCreateTransform(in, TYPE_RGB_8, out, TYPE_RGB_8,
INTENT_RELATIVE_COLORIMETRIC,
cmsFLAGS_HIGHRESPRECALC);
start = times(NULL);
cmsDoTransform(t, idata, odata, PIXELS);
end = times(NULL);
/* report CPU time in clock ticks */
printf("runtime = %f\n", (double)(end - start));}
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user
