Home | History | Annotate | Download | only in coders

Lines Matching defs:profile

79 #include "MagickCore/profile.h"
248 *profile;
250 profile=(PhotoshopProfile *) user_data;
258 profile->offset=offset;
263 if ((profile->offset+offset) < 0)
265 profile->offset+=offset;
270 if (((MagickOffsetType) profile->length+offset) < 0)
272 profile->offset=profile->length+offset;
277 return(profile->offset);
283 *profile;
285 profile=(PhotoshopProfile *) user_data;
286 return(profile->offset);
616 *profile;
620 profile=BlobToStringInfo(datum,(size_t) length);
621 if (profile == (StringInfo *) NULL)
624 status=SetImageProfile(image,name,profile,exception);
625 profile=DestroyStringInfo(profile);
677 *profile;
681 if ((TIFFGetField(tiff,TIFFTAG_ICCPROFILE,&length,&profile) == 1) &&
682 (profile != (unsigned char *) NULL))
683 (void) ReadProfile(image,"icc",profile,(ssize_t) length,exception);
686 if ((TIFFGetField(tiff,TIFFTAG_PHOTOSHOP,&length,&profile) == 1) &&
687 (profile != (unsigned char *) NULL))
688 (void) ReadProfile(image,"8bim",profile,(ssize_t) length,exception);
691 if ((TIFFGetField(tiff,TIFFTAG_RICHTIFFIPTC,&length,&profile) == 1) &&
692 (profile != (unsigned char *) NULL))
695 TIFFSwabArrayOfLong((uint32 *) profile,(size_t) length);
696 (void) ReadProfile(image,"iptc",profile,4L*length,exception);
700 if ((TIFFGetField(tiff,TIFFTAG_XMLPACKET,&length,&profile) == 1) &&
701 (profile != (unsigned char *) NULL))
702 (void) ReadProfile(image,"xmp",profile,(ssize_t) length,exception);
704 if ((TIFFGetField(tiff,34118,&length,&profile) == 1) &&
705 (profile != (unsigned char *) NULL))
706 (void) ReadProfile(image,"tiff:34118",profile,(ssize_t) length,
708 if ((TIFFGetField(tiff,37724,&length,&profile) == 1) &&
709 (profile != (unsigned char *) NULL))
710 (void) ReadProfile(image,"tiff:37724",profile,(ssize_t) length,exception);
1101 *profile;
1111 profile=(PhotoshopProfile *) user_data;
1112 remaining=(MagickOffsetType) profile->length-profile->offset;
1116 (void) memcpy(data,profile->data->datum+profile->offset,total);
1117 profile->offset+=total;
1122 PhotoshopProfile *profile,ExceptionInfo *exception)
1130 SetCustomStreamData(custom_stream,(void *) profile);
1144 *profile;
1171 profile=GetImageProfile(image,"tiff:37724");
1172 if (profile == (const StringInfo *) NULL)
1174 for (i=0; i < (ssize_t) profile->length-8; i++)
1176 if (LocaleNCompare((const char *) (profile->datum+i),
1180 if ((LocaleNCompare((const char *) (profile->datum+i),
1182 (LocaleNCompare((const char *) (profile->datum+i),
1184 (LocaleNCompare((const char *) (profile->datum+i),
1186 (LocaleNCompare((const char *) (profile->datum+i),
1191 if (i >= (ssize_t) (profile->length-8))
1193 photoshop_profile.data=(StringInfo *) profile;
1194 photoshop_profile.length=profile->length;
1344 the subimage(s) are stored in the photoshop profile.
3099 *profile;
3103 profile=(PhotoshopProfile *) user_data;
3104 if ((profile->offset+(MagickOffsetType) count) >=
3105 (MagickOffsetType) profile->extent)
3107 profile->extent+=count+profile->quantum;
3108 profile->quantum<<=1;
3109 SetStringInfoLength(profile->data,profile->extent);
3111 (void) memcpy(profile->data->datum+profile->offset,data,count);
3112 profile->offset+=count;
3117 PhotoshopProfile *profile,ExceptionInfo *exception)
3125 SetCustomStreamData(custom_stream,(void *) profile);
3152 profile;
3167 profile.offset=0;
3168 profile.quantum=MagickMinBlobExtent;
3169 layers=AcquireStringInfo(profile.quantum);
3177 profile.data=layers;
3178 profile.extent=layers->length;
3179 custom_stream=TIFFAcquireCustomStreamForWriting(&profile,exception);
3213 SetStringInfoLength(layers,(size_t) profile.offset);
3234 *profile;
3241 profile=GetImageProfile(image,name);
3242 if (GetStringInfoLength(profile) == 0)
3250 profile),GetStringInfoDatum(profile));
3255 profile),GetStringInfoDatum(profile));
3265 iptc_profile=CloneStringInfo(profile);
3266 length=GetStringInfoLength(profile)+4-(GetStringInfoLength(profile) &
3279 GetStringInfoLength(profile),GetStringInfoDatum(profile));
3282 (void) TIFFSetField(tiff,37724,(uint32) GetStringInfoLength(profile),
3283 GetStringInfoDatum(profile));
3285 (void) TIFFSetField(tiff,34118,(uint32) GetStringInfoLength(profile),
3286 GetStringInfoDatum(profile));