Hi Devon,

Just call cmsCloseProfile(hInProfile) and cmsCloseProfile(hOutProfile)
after your call to cmsCreateTransform (lcms keep an internal reference
to the profiles used by any allocated transform)

And call cmsDeleteTransform(hTransform) once cmsDoTransform is done.

If the 2 icc profiles are the same each time you call the function, to
optimize, you may split your function in 2 functions :
- one to setup the transform (called once. hProfile are allocated, used
to create the transform and released)
- another one to use it (called as much as you need).
And when you quit the application, you may delete the hTransform...

Read lcms documentation. It is very well explained. (RTFM)

Regards

Sébastien

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to