Lines Matching full:contextid
33 cmsMLU* CMSEXPORT cmsMLUalloc(cmsContext ContextID, cmsUInt32Number nItems)
41 mlu = (cmsMLU*) _cmsMallocZero(ContextID, sizeof(cmsMLU));
44 mlu ->ContextID = ContextID;
47 mlu ->Entries = (_cmsMLUentry*) _cmsCalloc(ContextID, nItems, sizeof(_cmsMLUentry));
49 _cmsFree(ContextID, mlu);
80 NewPtr = _cmsRealloc(mlu ->ContextID, mlu ->MemPool, size);
107 NewPtr = (_cmsMLUentry*)_cmsRealloc(mlu ->ContextID, mlu ->Entries, AllocatedEntries*sizeof(_cmsMLUentry));
193 WStr = (wchar_t*) _cmsCalloc(mlu ->ContextID, len, sizeof(wchar_t));
201 _cmsFree(mlu ->ContextID, WStr);
242 NewMlu = cmsMLUalloc(mlu ->ContextID, mlu ->UsedEntries);
261 NewMlu ->MemPool = _cmsMalloc(mlu ->ContextID, mlu ->PoolUsed);
285 if (mlu -> Entries) _cmsFree(mlu ->ContextID, mlu->Entries);
286 if (mlu -> MemPool) _cmsFree(mlu ->ContextID, mlu->MemPool);
288 _cmsFree(mlu ->ContextID, mlu);
497 NewPtr = (_cmsNAMEDCOLOR*) _cmsRealloc(v ->ContextID, v ->List, size * sizeof(_cmsNAMEDCOLOR));
507 cmsNAMEDCOLORLIST* CMSEXPORT cmsAllocNamedColorList(cmsContext ContextID, cmsUInt32Number n, cmsUInt32Number ColorantCount, const char* Prefix, const char* Suffix)
509 cmsNAMEDCOLORLIST* v = (cmsNAMEDCOLORLIST*) _cmsMallocZero(ContextID, sizeof(cmsNAMEDCOLORLIST));
515 v ->ContextID = ContextID;
533 if (v ->List) _cmsFree(v ->ContextID, v ->List);
534 _cmsFree(v ->ContextID, v);
543 NewNC= cmsAllocNamedColorList(v ->ContextID, v -> nColors, v ->ColorantCount, v ->Prefix, v ->Suffix);
663 cmsSignalError(NamedColorList ->ContextID, cmsERROR_RANGE, "Color %d out of range; ignored", index);
682 cmsSignalError(NamedColorList ->ContextID, cmsERROR_RANGE, "Color %d out of range; ignored", index);
694 return _cmsStageAllocPlaceholder(NamedColorList ->ContextID,
718 cmsSEQ* CMSEXPORT cmsAllocProfileSequenceDescription(cmsContext ContextID, cmsUInt32Number n)
729 Seq = (cmsSEQ*) _cmsMallocZero(ContextID, sizeof(cmsSEQ));
732 Seq -> ContextID = ContextID;
733 Seq -> seq = (cmsPSEQDESC*) _cmsCalloc(ContextID, n, sizeof(cmsPSEQDESC));
737 _cmsFree(ContextID, Seq);
760 if (pseq ->seq != NULL) _cmsFree(pseq ->ContextID, pseq ->seq);
761 _cmsFree(pseq -> ContextID, pseq);
772 NewSeq = (cmsSEQ*) _cmsMalloc(pseq -> ContextID, sizeof(cmsSEQ));
776 NewSeq -> seq = (cmsPSEQDESC*) _cmsCalloc(pseq ->ContextID, pseq ->n, sizeof(cmsPSEQDESC));
779 NewSeq -> ContextID = pseq ->ContextID;
812 cmsContext ContextID;
817 cmsHANDLE CMSEXPORT cmsDictAlloc(cmsContext ContextID)
819 _cmsDICT* dict = (_cmsDICT*) _cmsMallocZero(ContextID, sizeof(_cmsDICT));
822 dict ->ContextID = ContextID;
841 if (entry ->Name != NULL) _cmsFree(dict ->ContextID, entry -> Name);
842 if (entry ->Value != NULL) _cmsFree(dict ->ContextID, entry -> Value);
846 _cmsFree(dict ->ContextID, entry);
851 _cmsFree(dict ->ContextID, dict);
857 wchar_t* DupWcs(cmsContext ContextID, const wchar_t* ptr)
860 return (wchar_t*) _cmsDupMem(ContextID, ptr, (mywcslen(ptr) + 1) * sizeof(wchar_t));
872 entry = (cmsDICTentry*) _cmsMallocZero(dict ->ContextID, sizeof(cmsDICTentry));
877 entry ->Name = DupWcs(dict ->ContextID, Name);
878 entry ->Value = DupWcs(dict ->ContextID, Value);
896 hNew = cmsDictAlloc(old_dict ->ContextID);