Can You save the handle to the transform? this is the easiest way, as
allready pointed out by Marti.
You need some logic to create , invalidate/renew and destroy the transform
handle. Maybe You can simply attach that transform to the canvas
object/struct and test if zero befor using/generating. This is at the
expense of memory in case of multiplicated transforms.

An other way is the mentioned inter application transform cache, discussed
on the list. But currently is no existing open source library that support
such caching yet. It will make sense to memory/speed and ease of use.

regards
Kai-Uwe Behrmann
                                + imaging development / panoramas
                                + color management
                                + email: [EMAIL PROTECTED]
                                + CMS proposal <www.behrmann.name>



Am 14.12.04, 10:29 +0100 schrieb Boudewijn Rempt:

> On Tuesday 14 December 2004 10:24, you wrote:
> > Am 14.12.04, 09:49 +0100 schrieb Boudewijn Rempt:
> > > I've been experimenting, and I definitely need to cache at least some
> > > transforms. It turns out to be prohibitively slow to recreate the
> > > transform to the monitor profile for every display action, for instance.
> >
> > Can You describe the display action mentioned above?
>
> For instance, if you paint a line, I copy the brush shape to the image
> along the path of the line. Every square where a brush shape is painted
> will be repainted in the GUI. The image is encoded in one or another color
> space with some profile (or none). The monitor has its own profile, and
> before displaying the result of the paint action, I transform the image data
> in that square to RGB + monitor profile. That needs to be done at interactive
> rates, and preferably as fast as possible because I need as much milliseconds
> as I can spare for the paint computations.
>
> --
> Boudewijn Rempt | "Geef mij maar zuurtjes."
> http://www.valdyas.org/fading/index.cgi
>




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to