Lines Matching defs:ContextID

62 cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems)
70 mlu = (cmsMLU*) _cmsMallocZero(ContextID, sizeof(cmsMLU));
73 mlu ->ContextID = ContextID;
76 mlu ->Entries = (_cmsMLUentry*) _cmsCalloc(ContextID, nItems, sizeof(_cmsMLUentry));
78 _cmsFree(ContextID, mlu);
109 NewPtr = _cmsRealloc(mlu ->ContextID, mlu ->MemPool, size);
136 NewPtr = (_cmsMLUentry*)_cmsRealloc(mlu ->ContextID, mlu ->Entries, AllocatedEntries*sizeof(_cmsMLUentry));
249 WStr = (wchar_t*) _cmsCalloc(mlu ->ContextID, len, sizeof(wchar_t));
257 _cmsFree(mlu ->ContextID, WStr);
297 NewMlu = cmsMLUalloc(mlu ->ContextID, mlu ->UsedEntries);
316 NewMlu ->MemPool = _cmsMalloc(mlu ->ContextID, mlu ->PoolUsed);
340 if (mlu -> Entries) _cmsFree(mlu ->ContextID, mlu->Entries);
341 if (mlu -> MemPool) _cmsFree(mlu ->ContextID, mlu->MemPool);
343 _cmsFree(mlu ->ContextID, mlu);
551 NewPtr = (_cmsNAMEDCOLOR*) _cmsRealloc(v ->ContextID, v ->List, size * sizeof(_cmsNAMEDCOLOR));
561 cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID, cmsUInt32Number n, cmsUInt32Number ColorantCount, const char* Prefix, const char* Suffix)
563 cmsNAMEDCOLORLIST* v = (cmsNAMEDCOLORLIST*) _cmsMallocZero(ContextID, sizeof(cmsNAMEDCOLORLIST));
569 v ->ContextID = ContextID;
588 if (v ->List) _cmsFree(v ->ContextID, v ->List);
589 _cmsFree(v ->ContextID, v);
598 NewNC= cmsAllocNamedColorList(v ->ContextID, v -> nColors, v ->ColorantCount, v ->Prefix, v ->Suffix);
719 cmsSignalError(NamedColorList ->ContextID, cmsERROR_RANGE, "Color %d out of range; ignored", index);
738 cmsSignalError(NamedColorList ->ContextID, cmsERROR_RANGE, "Color %d out of range; ignored", index);
750 return _cmsStageAllocPlaceholder(NamedColorList ->ContextID,
774 cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n)
785 Seq = (cmsSEQ*) _cmsMallocZero(ContextID, sizeof(cmsSEQ));
788 Seq -> ContextID = ContextID;
789 Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC));
793 _cmsFree(ContextID, Seq);
816 if (pseq ->seq != NULL) _cmsFree(pseq ->ContextID, pseq ->seq);
817 _cmsFree(pseq -> ContextID, pseq);
828 NewSeq = (cmsSEQ*) _cmsMalloc(pseq -> ContextID, sizeof(cmsSEQ));
832 NewSeq -> seq = (cmsPSEQDESC*) _cmsCalloc(pseq ->ContextID, pseq ->n, sizeof(cmsPSEQDESC));
835 NewSeq -> ContextID = pseq ->ContextID;
868 cmsContext ContextID;
873 cmsHANDLE CMSEXPORT cmsDictAlloc(cmsContext ContextID)
875 _cmsDICT* dict = (_cmsDICT*) _cmsMallocZero(ContextID, sizeof(_cmsDICT));
878 dict ->ContextID = ContextID;
897 if (entry ->Name != NULL) _cmsFree(dict ->ContextID, entry -> Name);
898 if (entry ->Value != NULL) _cmsFree(dict ->ContextID, entry -> Value);
902 _cmsFree(dict ->ContextID, entry);
907 _cmsFree(dict ->ContextID, dict);
913 wchar_t* DupWcs(cmsContext ContextID, const wchar_t* ptr)
916 return (wchar_t*) _cmsDupMem(ContextID, ptr, (mywcslen(ptr) + 1) * sizeof(wchar_t));
928 entry = (cmsDICTentry*) _cmsMallocZero(dict ->ContextID, sizeof(cmsDICTentry));
933 entry ->Name = DupWcs(dict ->ContextID, Name);
934 entry ->Value = DupWcs(dict ->ContextID, Value);
952 hNew = cmsDictAlloc(old_dict ->ContextID);