• Home
  • Raw
  • Download

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
479hProfile = 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
526hProfile = 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
836 hProfile = cmsCreateProfilePlaceholder(ContextID); in cmsCreateNULLProfileTHR()
837 if (!hProfile) // can't allocate in cmsCreateNULLProfileTHR()
840 cmsSetProfileVersion(hProfile, 4.3); in cmsCreateNULLProfileTHR()
842 if (!SetTextTags(hProfile, L"NULL profile built-in")) goto Error; in cmsCreateNULLProfileTHR()
846 cmsSetDeviceClass(hProfile, cmsSigOutputClass); in cmsCreateNULLProfileTHR()
847 cmsSetColorSpace(hProfile, cmsSigGrayData); in cmsCreateNULLProfileTHR()
848 cmsSetPCS(hProfile, cmsSigLabData); in cmsCreateNULLProfileTHR()
861 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error; in cmsCreateNULLProfileTHR()
862 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, cmsD50_XYZ())) goto Error; in cmsCreateNULLProfileTHR()
865 return hProfile; in cmsCreateNULLProfileTHR()
872 if (hProfile != NULL) in cmsCreateNULLProfileTHR()
873 cmsCloseProfile(hProfile); in cmsCreateNULLProfileTHR()
893 void FixColorSpaces(cmsHPROFILE hProfile, in FixColorSpaces() argument
902 cmsSetDeviceClass(hProfile, cmsSigAbstractClass); in FixColorSpaces()
903 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
904 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
910 cmsSetDeviceClass(hProfile, cmsSigOutputClass); in FixColorSpaces()
911 cmsSetPCS(hProfile, ColorSpace); in FixColorSpaces()
912 cmsSetColorSpace(hProfile, PCS); in FixColorSpaces()
918 cmsSetDeviceClass(hProfile, cmsSigInputClass); in FixColorSpaces()
919 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
920 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
925 cmsSetDeviceClass(hProfile, cmsSigLinkClass); in FixColorSpaces()
926 cmsSetColorSpace(hProfile, ColorSpace); in FixColorSpaces()
927 cmsSetPCS(hProfile, PCS); in FixColorSpaces()
1056 cmsHPROFILE hProfile = NULL; in cmsTransform2DeviceLink() local
1099 hProfile = cmsCreateProfilePlaceholder(ContextID); in cmsTransform2DeviceLink()
1100 if (!hProfile) goto Error; // can't allocate in cmsTransform2DeviceLink()
1102 cmsSetProfileVersion(hProfile, Version); in cmsTransform2DeviceLink()
1104 FixColorSpaces(hProfile, xform -> EntryColorSpace, xform -> ExitColorSpace, dwFlags); in cmsTransform2DeviceLink()
1117 deviceClass = cmsGetDeviceClass(hProfile); in cmsTransform2DeviceLink()
1171 if (!SetTextTags(hProfile, L"devicelink")) goto Error; in cmsTransform2DeviceLink()
1174 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error; in cmsTransform2DeviceLink()
1178 if (!cmsWriteTag(hProfile, cmsSigColorantTableTag, xform->InputColorant)) goto Error; in cmsTransform2DeviceLink()
1182 if (!cmsWriteTag(hProfile, cmsSigColorantTableOutTag, xform->OutputColorant)) goto Error; in cmsTransform2DeviceLink()
1186 if (!_cmsWriteProfileSequence(hProfile, xform ->Sequence)) goto Error; in cmsTransform2DeviceLink()
1191 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->EntryWhitePoint)) goto Error; in cmsTransform2DeviceLink()
1194 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->ExitWhitePoint)) goto Error; in cmsTransform2DeviceLink()
1199 cmsSetHeaderRenderingIntent(hProfile, xform ->RenderingIntent); in cmsTransform2DeviceLink()
1202 return hProfile; in cmsTransform2DeviceLink()
1206 cmsCloseProfile(hProfile); in cmsTransform2DeviceLink()