Lines Matching defs:ContextID

519 void* _cmsPluginMalloc(cmsContext ContextID, cmsUInt32Number size)
521 struct _cmsContext_struct* ctx = _cmsGetContext(ContextID);
525 if (ContextID == NULL) {
530 cmsSignalError(ContextID, cmsERROR_CORRUPTION_DETECTED, "NULL memory pool on context");
661 struct _cmsContext_struct* _cmsGetContext(cmsContext ContextID)
663 struct _cmsContext_struct* id = (struct _cmsContext_struct*) ContextID;
687 void* _cmsContextGetClientChunk(cmsContext ContextID, _cmsMemoryClient mc)
693 cmsSignalError(ContextID, cmsERROR_RANGE, "Bad context client");
697 ctx = _cmsGetContext(ContextID);
714 void CMSEXPORT cmsUnregisterPluginsTHR(cmsContext ContextID)
716 _cmsRegisterMemHandlerPlugin(ContextID, NULL);
717 _cmsRegisterInterpPlugin(ContextID, NULL);
718 _cmsRegisterTagTypePlugin(ContextID, NULL);
719 _cmsRegisterTagPlugin(ContextID, NULL);
720 _cmsRegisterFormattersPlugin(ContextID, NULL);
721 _cmsRegisterRenderingIntentPlugin(ContextID, NULL);
722 _cmsRegisterParametricCurvesPlugin(ContextID, NULL);
723 _cmsRegisterMultiProcessElementPlugin(ContextID, NULL);
724 _cmsRegisterOptimizationPlugin(ContextID, NULL);
725 _cmsRegisterTransformPlugin(ContextID, NULL);
726 _cmsRegisterMutexPlugin(ContextID, NULL);
822 cmsContext CMSEXPORT cmsDupContext(cmsContext ContextID, void* NewUserData)
826 const struct _cmsContext_struct* src = _cmsGetContext(ContextID);
831 ctx = (struct _cmsContext_struct*) _cmsMalloc(ContextID, sizeof(struct _cmsContext_struct));
903 // The ContextID can no longer be used in any THR operation.
904 void CMSEXPORT cmsDeleteContext(cmsContext ContextID)
906 if (ContextID != NULL) {
908 struct _cmsContext_struct* ctx = (struct _cmsContext_struct*) ContextID;
918 cmsUnregisterPluginsTHR(ContextID);
951 // Returns the user data associated to the given ContextID, or NULL if no user data was attached on context creation
952 void* CMSEXPORT cmsGetContextUserData(cmsContext ContextID)
954 return _cmsContextGetClientChunk(ContextID, UserPtr);