Lines Matching refs:profile
263 *profile; in GetImageProfile() local
271 profile=(const StringInfo *) GetValueFromSplayTree((SplayTreeInfo *) in GetImageProfile()
273 return(profile); in GetImageProfile()
364 profile; member
482 transform[i]=cmsCreateTransformTHR(cms_context,source_info->profile, in AcquireTransformThreadSet()
483 source_info->type,target_info->profile,target_info->type, in AcquireTransformThreadSet()
901 *profile; in SetsRGBImageProfile() local
910 profile=AcquireStringInfo(sizeof(sRGBProfile)); in SetsRGBImageProfile()
911 SetStringInfoDatum(profile,sRGBProfile); in SetsRGBImageProfile()
912 status=SetImageProfile(image,"icc",profile,exception); in SetsRGBImageProfile()
913 profile=DestroyStringInfo(profile); in SetsRGBImageProfile()
926 if (profile != (StringInfo *) NULL) \ in ProfileImage()
927 profile=DestroyStringInfo(profile); \ in ProfileImage()
930 if (source_info.profile != (cmsHPROFILE) NULL) \ in ProfileImage()
931 (void) cmsCloseProfile(source_info.profile); \ in ProfileImage()
932 if (target_info.profile != (cmsHPROFILE) NULL) \ in ProfileImage()
933 (void) cmsCloseProfile(target_info.profile); \ in ProfileImage()
941 *profile; in ProfileImage() local
972 profile=AcquireStringInfo((size_t) length); in ProfileImage()
973 SetStringInfoDatum(profile,(unsigned char *) datum); in ProfileImage()
975 status=SetImageProfile(image,name,profile,exception); in ProfileImage()
983 (CompareStringInfo(icc_profile,profile) == 0)) in ProfileImage()
998 (CompareStringInfo(icc_profile,profile) == 0)) in ProfileImage()
1000 profile=DestroyStringInfo(profile); in ProfileImage()
1029 source_info.profile=cmsOpenProfileFromMemTHR(cms_context, in ProfileImage()
1030 GetStringInfoDatum(profile),(cmsUInt32Number) in ProfileImage()
1031 GetStringInfoLength(profile)); in ProfileImage()
1032 if (source_info.profile == (cmsHPROFILE) NULL) in ProfileImage()
1038 if ((cmsGetDeviceClass(source_info.profile) != cmsSigLinkClass) && in ProfileImage()
1040 status=SetImageProfile(image,name,profile,exception); in ProfileImage()
1069 target_info.profile=(cmsHPROFILE) NULL; in ProfileImage()
1072 target_info.profile=source_info.profile; in ProfileImage()
1073 source_info.profile=cmsOpenProfileFromMemTHR(cms_context, in ProfileImage()
1076 if (source_info.profile == (cmsHPROFILE) NULL) in ProfileImage()
1090 switch (cmsGetColorSpace(source_info.profile)) in ProfileImage()
1180 signature=cmsGetPCS(source_info.profile); in ProfileImage()
1181 if (target_info.profile != (cmsHPROFILE) NULL) in ProfileImage()
1182 signature=cmsGetColorSpace(target_info.profile); in ProfileImage()
1335 if (source_info.profile != (cmsHPROFILE) NULL) in ProfileImage()
1336 (void) cmsCloseProfile(source_info.profile); in ProfileImage()
1337 if (target_info.profile != (cmsHPROFILE) NULL) in ProfileImage()
1338 (void) cmsCloseProfile(target_info.profile); in ProfileImage()
1420 (cmsGetDeviceClass(source_info.profile) != cmsSigLinkClass)) in ProfileImage()
1421 status=SetImageProfile(image,name,profile,exception); in ProfileImage()
1422 if (target_info.profile != (cmsHPROFILE) NULL) in ProfileImage()
1423 (void) cmsCloseProfile(target_info.profile); in ProfileImage()
1425 (void) cmsCloseProfile(source_info.profile); in ProfileImage()
1430 profile=DestroyStringInfo(profile); in ProfileImage()
1462 *profile; in RemoveImageProfile() local
1471 profile=(StringInfo *) RemoveNodeFromSplayTree((SplayTreeInfo *) in RemoveImageProfile()
1473 return(profile); in RemoveImageProfile()
1542 static void *DestroyProfile(void *profile) in DestroyProfile() argument
1544 return((void *) DestroyStringInfo((StringInfo *) profile)); in DestroyProfile()
1586 const StringInfo *profile) in WriteTo8BimProfile() argument
1665 if (profile == (StringInfo *) NULL) in WriteTo8BimProfile()
1674 extract_extent=profile->length; in WriteTo8BimProfile()
1680 profile->length); in WriteTo8BimProfile()
1682 profile->datum,profile->length); in WriteTo8BimProfile()
1710 *profile; in GetProfilesFromResourceBlock() local
1777 profile=AcquireStringInfo(count); in GetProfilesFromResourceBlock()
1778 SetStringInfoDatum(profile,p); in GetProfilesFromResourceBlock()
1779 (void) SetImageProfileInternal(image,"iptc",profile,MagickTrue, in GetProfilesFromResourceBlock()
1781 profile=DestroyStringInfo(profile); in GetProfilesFromResourceBlock()
1798 profile=AcquireStringInfo(count); in GetProfilesFromResourceBlock()
1799 SetStringInfoDatum(profile,p); in GetProfilesFromResourceBlock()
1800 (void) SetImageProfileInternal(image,"icc",profile,MagickTrue, in GetProfilesFromResourceBlock()
1802 profile=DestroyStringInfo(profile); in GetProfilesFromResourceBlock()
1811 profile=AcquireStringInfo(count); in GetProfilesFromResourceBlock()
1812 SetStringInfoDatum(profile,p); in GetProfilesFromResourceBlock()
1813 (void) SetImageProfileInternal(image,"exif",profile,MagickTrue, in GetProfilesFromResourceBlock()
1815 profile=DestroyStringInfo(profile); in GetProfilesFromResourceBlock()
1824 profile=AcquireStringInfo(count); in GetProfilesFromResourceBlock()
1825 SetStringInfoDatum(profile,p); in GetProfilesFromResourceBlock()
1826 (void) SetImageProfileInternal(image,"xmp",profile,MagickTrue, in GetProfilesFromResourceBlock()
1828 profile=DestroyStringInfo(profile); in GetProfilesFromResourceBlock()
1843 static void PatchCorruptProfile(const char *name,StringInfo *profile) in PatchCorruptProfile() argument
1859 p=GetStringInfoDatum(profile); in PatchCorruptProfile()
1864 length=p-GetStringInfoDatum(profile); in PatchCorruptProfile()
1865 if (length != GetStringInfoLength(profile)) in PatchCorruptProfile()
1868 SetStringInfoLength(profile,length); in PatchCorruptProfile()
1878 p=GetStringInfoDatum(profile); in PatchCorruptProfile()
1892 ConcatenateStringInfo(exif_profile,profile); in PatchCorruptProfile()
1893 SetStringInfoLength(profile,GetStringInfoLength(exif_profile)); in PatchCorruptProfile()
1894 SetStringInfo(profile,exif_profile); in PatchCorruptProfile()
1903 const StringInfo *profile,ExceptionInfo *exception) in ValidateXMPProfile() argument
1911 document=xmlReadMemory((const char *) GetStringInfoDatum(profile),(int) in ValidateXMPProfile()
1912 GetStringInfoLength(profile),"xmp.xml",NULL,XML_PARSE_NOERROR | in ValidateXMPProfile()
1925 const StringInfo *profile,ExceptionInfo *exception) in ValidateXMPProfile() argument
1934 const StringInfo *profile,const MagickBooleanType recursive, in SetImageProfileInternal() argument
1950 clone_profile=CloneStringInfo(profile); in SetImageProfileInternal()
1977 const StringInfo *profile,ExceptionInfo *exception) in SetImageProfile() argument
1979 return(SetImageProfileInternal(image,name,profile,MagickFalse,exception)); in SetImageProfile()
2145 static MagickBooleanType Sync8BimProfile(Image *image,StringInfo *profile) in Sync8BimProfile() argument
2159 length=GetStringInfoLength(profile); in Sync8BimProfile()
2160 p=GetStringInfoDatum(profile); in Sync8BimProfile()
2207 MagickBooleanType SyncExifProfile(Image *image,StringInfo *profile) in SyncExifProfile() argument
2253 length=GetStringInfoLength(profile); in SyncExifProfile()
2254 exif=GetStringInfoDatum(profile); in SyncExifProfile()
2439 *profile; in SyncImageProfiles() local
2442 profile=(StringInfo *) GetImageProfile(image,"8BIM"); in SyncImageProfiles()
2443 if (profile != (StringInfo *) NULL) in SyncImageProfiles()
2444 if (Sync8BimProfile(image,profile) == MagickFalse) in SyncImageProfiles()
2446 profile=(StringInfo *) GetImageProfile(image,"EXIF"); in SyncImageProfiles()
2447 if (profile != (StringInfo *) NULL) in SyncImageProfiles()
2448 if (SyncExifProfile(image,profile) == MagickFalse) in SyncImageProfiles()
2546 *profile; in Update8BIMClipPath() local
2560 profile=GetImageProfile(image,"8bim"); in Update8BIMClipPath()
2561 if (profile == (StringInfo *) NULL) in Update8BIMClipPath()
2563 length=GetStringInfoLength(profile); in Update8BIMClipPath()
2564 info=GetStringInfoDatum(profile); in Update8BIMClipPath()