Lines Matching refs:hProfile
33 cmsBool SetTextTags(cmsHPROFILE hProfile, const wchar_t* Description) in SetTextTags() argument
37 cmsContext ContextID = cmsGetProfileContextID(hProfile); in SetTextTags()
47 if (!cmsWriteTag(hProfile, cmsSigProfileDescriptionTag, DescriptionMLU)) goto Error; in SetTextTags()
48 if (!cmsWriteTag(hProfile, cmsSigCopyrightTag, CopyrightMLU)) goto Error; in SetTextTags()
63 cmsBool SetSeqDescTag(cmsHPROFILE hProfile, const char* Model) in SetSeqDescTag() argument
66 cmsContext ContextID = cmsGetProfileContextID(hProfile); in SetSeqDescTag()
86 if (!_cmsWriteProfileSequence(hProfile, Seq)) goto Error; in SetSeqDescTag()
476 cmsHPROFILE hProfile; in cmsCreateLab2ProfileTHR() local
479 …hProfile = cmsCreateRGBProfileTHR(ContextID, WhitePoint == NULL ? cmsD50_xyY() : WhitePoint, NULL,… in cmsCreateLab2ProfileTHR()
480 if (hProfile == NULL) return NULL; in cmsCreateLab2ProfileTHR()
482 cmsSetProfileVersion(hProfile, 2.1); in cmsCreateLab2ProfileTHR()
484 cmsSetDeviceClass(hProfile, cmsSigAbstractClass); in cmsCreateLab2ProfileTHR()
485 cmsSetColorSpace(hProfile, cmsSigLabData); in cmsCreateLab2ProfileTHR()
486 cmsSetPCS(hProfile, cmsSigLabData); in cmsCreateLab2ProfileTHR()
488 if (!SetTextTags(hProfile, L"Lab identity built-in")) return NULL; in cmsCreateLab2ProfileTHR()
497 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateLab2ProfileTHR()
500 return hProfile; in cmsCreateLab2ProfileTHR()
507 if (hProfile != NULL) in cmsCreateLab2ProfileTHR()
508 cmsCloseProfile(hProfile); in cmsCreateLab2ProfileTHR()
523 cmsHPROFILE hProfile; in cmsCreateLab4ProfileTHR() local
526 …hProfile = cmsCreateRGBProfileTHR(ContextID, WhitePoint == NULL ? cmsD50_xyY() : WhitePoint, NULL,… in cmsCreateLab4ProfileTHR()
527 if (hProfile == NULL) return NULL; in cmsCreateLab4ProfileTHR()
529 cmsSetProfileVersion(hProfile, 4.3); in cmsCreateLab4ProfileTHR()
531 cmsSetDeviceClass(hProfile, cmsSigAbstractClass); in cmsCreateLab4ProfileTHR()
532 cmsSetColorSpace(hProfile, cmsSigLabData); in cmsCreateLab4ProfileTHR()
533 cmsSetPCS(hProfile, cmsSigLabData); in cmsCreateLab4ProfileTHR()
535 if (!SetTextTags(hProfile, L"Lab identity built-in")) goto Error; in cmsCreateLab4ProfileTHR()
544 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateLab4ProfileTHR()
547 return hProfile; in cmsCreateLab4ProfileTHR()
554 if (hProfile != NULL) in cmsCreateLab4ProfileTHR()
555 cmsCloseProfile(hProfile); in cmsCreateLab4ProfileTHR()
569 cmsHPROFILE hProfile; in cmsCreateXYZProfileTHR() local
572 hProfile = cmsCreateRGBProfileTHR(ContextID, cmsD50_xyY(), NULL, NULL); in cmsCreateXYZProfileTHR()
573 if (hProfile == NULL) return NULL; in cmsCreateXYZProfileTHR()
575 cmsSetProfileVersion(hProfile, 4.3); in cmsCreateXYZProfileTHR()
577 cmsSetDeviceClass(hProfile, cmsSigAbstractClass); in cmsCreateXYZProfileTHR()
578 cmsSetColorSpace(hProfile, cmsSigXYZData); in cmsCreateXYZProfileTHR()
579 cmsSetPCS(hProfile, cmsSigXYZData); in cmsCreateXYZProfileTHR()
581 if (!SetTextTags(hProfile, L"XYZ identity built-in")) goto Error; in cmsCreateXYZProfileTHR()
590 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error; in cmsCreateXYZProfileTHR()
593 return hProfile; in cmsCreateXYZProfileTHR()
600 if (hProfile != NULL) in cmsCreateXYZProfileTHR()
601 cmsCloseProfile(hProfile); in cmsCreateXYZProfileTHR()
830 cmsHPROFILE hProfile; in cmsCreateNULLProfileTHR() local
838 hProfile = cmsCreateProfilePlaceholder(ContextID); in cmsCreateNULLProfileTHR()
839 if (!hProfile) // can't allocate in cmsCreateNULLProfileTHR()
842 cmsSetProfileVersion(hProfile, 4.3); in cmsCreateNULLProfileTHR()
844 if (!SetTextTags(hProfile, L"NULL profile built-in")) goto Error; in cmsCreateNULLProfileTHR()
847 cmsSetDeviceClass(hProfile, cmsSigOutputClass); in cmsCreateNULLProfileTHR()
848 cmsSetColorSpace(hProfile, cmsSigGrayData); in cmsCreateNULLProfileTHR()
849 cmsSetPCS(hProfile, cmsSigLabData); in cmsCreateNULLProfileTHR()
869 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error; in cmsCreateNULLProfileTHR()
870 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, cmsD50_XYZ())) goto Error; in cmsCreateNULLProfileTHR()
873 return hProfile; in cmsCreateNULLProfileTHR()
880 if (hProfile != NULL) in cmsCreateNULLProfileTHR()
881 cmsCloseProfile(hProfile); in cmsCreateNULLProfileTHR()
901 void FixColorSpaces(cmsHPROFILE hProfile, in FixColorSpaces() argument
910 cmsSetDeviceClass(hProfile, cmsSigAbstractClass); in FixColorSpaces()
911 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
912 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
918 cmsSetDeviceClass(hProfile, cmsSigOutputClass); in FixColorSpaces()
919 cmsSetPCS(hProfile, ColorSpace); in FixColorSpaces()
920 cmsSetColorSpace(hProfile, PCS); in FixColorSpaces()
926 cmsSetDeviceClass(hProfile, cmsSigInputClass); in FixColorSpaces()
927 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
928 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
933 cmsSetDeviceClass(hProfile, cmsSigLinkClass); in FixColorSpaces()
934 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
935 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
1064 cmsHPROFILE hProfile = NULL; in cmsTransform2DeviceLink() local
1107 hProfile = cmsCreateProfilePlaceholder(ContextID); in cmsTransform2DeviceLink()
1108 if (!hProfile) goto Error; // can't allocate in cmsTransform2DeviceLink()
1110 cmsSetProfileVersion(hProfile, Version); in cmsTransform2DeviceLink()
1112 FixColorSpaces(hProfile, xform -> EntryColorSpace, xform -> ExitColorSpace, dwFlags); in cmsTransform2DeviceLink()
1125 deviceClass = cmsGetDeviceClass(hProfile); in cmsTransform2DeviceLink()
1179 if (!SetTextTags(hProfile, L"devicelink")) goto Error; in cmsTransform2DeviceLink()
1182 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error; in cmsTransform2DeviceLink()
1186 if (!cmsWriteTag(hProfile, cmsSigColorantTableTag, xform->InputColorant)) goto Error; in cmsTransform2DeviceLink()
1190 if (!cmsWriteTag(hProfile, cmsSigColorantTableOutTag, xform->OutputColorant)) goto Error; in cmsTransform2DeviceLink()
1194 if (!_cmsWriteProfileSequence(hProfile, xform ->Sequence)) goto Error; in cmsTransform2DeviceLink()
1199 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->EntryWhitePoint)) goto Error; in cmsTransform2DeviceLink()
1202 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->ExitWhitePoint)) goto Error; in cmsTransform2DeviceLink()
1207 cmsSetHeaderRenderingIntent(hProfile, xform ->RenderingIntent); in cmsTransform2DeviceLink()
1210 return hProfile; in cmsTransform2DeviceLink()
1214 cmsCloseProfile(hProfile); in cmsTransform2DeviceLink()