Dear ColorSync specialists, This question raised many times, but i missed if answer was found. There was a lot of functions for ColorSync Management, like CMOpenProfile, CMGetProfileLocation, CMCloseProfile, CMSetProfileLocation. They was deprecated and then removed from the SDK. But no real replacement offered. In fact you can use it even with new MacOS versions by linking old SDK. But in MacOS 10.13 situation become dangerous. Function CMSetProfileByAVID not set VCGT anymore, but that was described as "This is the only ColorSync function that sets video card gamma." My question is - what is the replacement for the function CMSetProfileByAVID in MacOS 10.13. I need to apply profile with the vcgt. And not just for the time my application works as CGSetDisplayTransferByTable do. I need to make it same as like user selected this profile in options. I hope Apple developers read this list too. Any hints appreciated. Thank you. Best regards, Vitaly Bondar
Hello Graeme, Thank you for hint. Does any documentation to new ColorSync functions exists somewhere in universe? Or we need to rely on headers comments? Thank you again. Best regards, Vitaly Bondar
My question is - what is the replacement for the function CMSetProfileByAVID in MacOS 10.13.
AFAIK the replacement is ColorSyncDeviceSetCustomProfiles().
Graeme Gill. _______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (Colorsync-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/colorsync-users/vitaly%40qubyx.com
This email sent to vitaly@qubyx.com
-- <http://www.qubyx.com/> /Vitaly Bondar / /Chief Developer / Tel: +1 518 618 1012 ext. 44 vitaly@qubyx.com <mailto:vitaly@qubyx.com>
Just make tests with this function. Seems that Apple did not keep his promise to support 32-bit applications fully in macOS 10.13. ColorSyncDeviceSetCustomProfiles function throws debug output: "CGSSetDisplayColorSpaceAndTransfer(0x2b3c558c, "profile") failed" and not apply profile normally. And if you look in CGSSetDisplayColorSpaceAndTransfer implementation it has output about not supporting 32-bit version. Same code works fine in 64-bit application.
Hello Graeme,
Thank you for hint.
Does any documentation to new ColorSync functions exists somewhere in universe? Or we need to rely on headers comments?
Thank you again.
Best regards, Vitaly Bondar
My question is - what is the replacement for the function CMSetProfileByAVID in MacOS 10.13.
AFAIK the replacement is ColorSyncDeviceSetCustomProfiles().
Graeme Gill. _______________________________________________ Do not post admin requests to the list. They will be ignored. Colorsync-users mailing list (Colorsync-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/colorsync-users/vitaly%40qubyx.com
This email sent to vitaly@qubyx.com
-- <http://www.qubyx.com/> /Vitaly Bondar / /Chief Developer / Tel: +1 518 618 1012 ext. 44 vitaly@qubyx.com <mailto:vitaly@qubyx.com>
Vitaly Bondar wrote:
Does any documentation to new ColorSync functions exists somewhere in universe? Or we need to rely on headers comments?
I'm not sure - at the time I had to figure it all out from the header files, but Googling seems to reveal some references to these functions now.
Seems that Apple did not keep his promise to support 32-bit applications fully in macOS 10.13. ColorSyncDeviceSetCustomProfiles function throws debug output: "CGSSetDisplayColorSpaceAndTransfer(0x2b3c558c, "profile") failed" and not apply profile normally.
Hmm. I haven't notices this, since I decided to create two binary releases of ArgyllCMS for Apple Intel, 32 bit compiled for 10.4, and 64 bit compiled for 10.6, and it's only the latter that uses the new ColorSync API. The only other thing I recall about changing the code was that there didn't seem to be any API for getting the profiles file locations anymore, so I ended up hard coding them. (I haven't looked at this for a while, so I'm not sure if this has been addressed or not. No doubt Apple have deprecated more API's since then, and provided no replacements!) Graeme Gill.
participants (2)
-
Graeme Gill
-
Vitaly Bondar