Quoting Kai-Uwe Behrmann <k...@gmx.de>:

> cmsContext is now ifdefed with LCMS_VERSION >= 2060 in the Oyranos lcm2
> module. Still need more testing while enabling mutli threaded transform
> creation, which was so far disabled.

Thanks Kai-Uwe, but I would wait a little to see if we decide to call
this 2.6 or just 3.0 -- If i could find a way to differentiate cmsContext
and user data, that would be 2.6, which I strongly prefer. Otherwise
a .soname bump would be needed, and this a pain...

> cmsGetContextUserData() can be used to obtain a referenced object and
> release it upon lcms handle destroy. But how can one get the passed in
> cmsContext before calling e.g. cmsCloseProfile().
>
> My function sequence is essentially:
> id = cmsCreateContext(NULL, my_object)
> profile = cmsOpenProfileFromMemTHR(id,...)
> // other code parts inbetween
> // How to get the my_object back to unref or free?
> cmsCloseProfile(profile)


You could use cmsGetProfileContext() or cmsGetTransformContext(),

Example:
my_object = cmsGetUserData(cmsGetProfileContext(profile));

There is a new testbed for plug-ins that checks (almost) every single
feature regarding the new context functionality.  testbed/testplugin.c

Regards
Marti

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to