Home | History | Annotate | Download | only in src

Lines Matching defs:hProfile

33 cmsBool SetTextTags(cmsHPROFILE hProfile, const wchar_t* Description)
37 cmsContext ContextID = cmsGetProfileContextID(hProfile);
47 if (!cmsWriteTag(hProfile, cmsSigProfileDescriptionTag, DescriptionMLU)) goto Error;
48 if (!cmsWriteTag(hProfile, cmsSigCopyrightTag, CopyrightMLU)) goto Error;
63 cmsBool SetSeqDescTag(cmsHPROFILE hProfile, const char* Model)
66 cmsContext ContextID = cmsGetProfileContextID(hProfile);
86 if (!_cmsWriteProfileSequence(hProfile, Seq)) goto Error;
476 cmsHPROFILE hProfile;
479 hProfile = cmsCreateRGBProfileTHR(ContextID, WhitePoint == NULL ? cmsD50_xyY() : WhitePoint, NULL, NULL);
480 if (hProfile == NULL) return NULL;
482 cmsSetProfileVersion(hProfile, 2.1);
484 cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
485 cmsSetColorSpace(hProfile, cmsSigLabData);
486 cmsSetPCS(hProfile, cmsSigLabData);
488 if (!SetTextTags(hProfile, L"Lab identity built-in")) return NULL;
497 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
500 return hProfile;
507 if (hProfile != NULL)
508 cmsCloseProfile(hProfile);
523 cmsHPROFILE hProfile;
526 hProfile = cmsCreateRGBProfileTHR(ContextID, WhitePoint == NULL ? cmsD50_xyY() : WhitePoint, NULL, NULL);
527 if (hProfile == NULL) return NULL;
529 cmsSetProfileVersion(hProfile, 4.3);
531 cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
532 cmsSetColorSpace(hProfile, cmsSigLabData);
533 cmsSetPCS(hProfile, cmsSigLabData);
535 if (!SetTextTags(hProfile, L"Lab identity built-in")) goto Error;
544 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
547 return hProfile;
554 if (hProfile != NULL)
555 cmsCloseProfile(hProfile);
569 cmsHPROFILE hProfile;
572 hProfile = cmsCreateRGBProfileTHR(ContextID, cmsD50_xyY(), NULL, NULL);
573 if (hProfile == NULL) return NULL;
575 cmsSetProfileVersion(hProfile, 4.3);
577 cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
578 cmsSetColorSpace(hProfile, cmsSigXYZData);
579 cmsSetPCS(hProfile, cmsSigXYZData);
581 if (!SetTextTags(hProfile, L"XYZ identity built-in")) goto Error;
590 if (!cmsWriteTag(hProfile, cmsSigAToB0Tag, LUT)) goto Error;
593 return hProfile;
600 if (hProfile != NULL)
601 cmsCloseProfile(hProfile);
830 cmsHPROFILE hProfile;
836 hProfile = cmsCreateProfilePlaceholder(ContextID);
837 if (!hProfile) // can't allocate
840 cmsSetProfileVersion(hProfile, 4.3);
842 if (!SetTextTags(hProfile, L"NULL profile built-in")) goto Error;
846 cmsSetDeviceClass(hProfile, cmsSigOutputClass);
847 cmsSetColorSpace(hProfile, cmsSigGrayData);
848 cmsSetPCS(hProfile, cmsSigLabData);
861 if (!cmsWriteTag(hProfile, cmsSigBToA0Tag, (void*) LUT)) goto Error;
862 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, cmsD50_XYZ())) goto Error;
865 return hProfile;
872 if (hProfile != NULL)
873 cmsCloseProfile(hProfile);
893 void FixColorSpaces(cmsHPROFILE hProfile,
902 cmsSetDeviceClass(hProfile, cmsSigAbstractClass);
903 cmsSetColorSpace(hProfile, ColorSpace);
904 cmsSetPCS(hProfile, PCS);
910 cmsSetDeviceClass(hProfile, cmsSigOutputClass);
911 cmsSetPCS(hProfile, ColorSpace);
912 cmsSetColorSpace(hProfile, PCS);
918 cmsSetDeviceClass(hProfile, cmsSigInputClass);
919 cmsSetColorSpace(hProfile, ColorSpace);
920 cmsSetPCS(hProfile, PCS);
925 cmsSetDeviceClass(hProfile, cmsSigLinkClass);
926 cmsSetColorSpace(hProfile, ColorSpace);
927 cmsSetPCS(hProfile, PCS);
1056 cmsHPROFILE hProfile = NULL;
1099 hProfile = cmsCreateProfilePlaceholder(ContextID);
1100 if (!hProfile) goto Error; // can't allocate
1102 cmsSetProfileVersion(hProfile, Version);
1104 FixColorSpaces(hProfile, xform -> EntryColorSpace, xform -> ExitColorSpace, dwFlags);
1117 deviceClass = cmsGetDeviceClass(hProfile);
1171 if (!SetTextTags(hProfile, L"devicelink")) goto Error;
1174 if (!cmsWriteTag(hProfile, DestinationTag, LUT)) goto Error;
1178 if (!cmsWriteTag(hProfile, cmsSigColorantTableTag, xform->InputColorant)) goto Error;
1182 if (!cmsWriteTag(hProfile, cmsSigColorantTableOutTag, xform->OutputColorant)) goto Error;
1186 if (!_cmsWriteProfileSequence(hProfile, xform ->Sequence)) goto Error;
1191 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->EntryWhitePoint)) goto Error;
1194 if (!cmsWriteTag(hProfile, cmsSigMediaWhitePointTag, &xform ->ExitWhitePoint)) goto Error;
1199 cmsSetHeaderRenderingIntent(hProfile, xform ->RenderingIntent);
1202 return hProfile;
1206 cmsCloseProfile(hProfile);