]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 5 Apr 2010 01:22:12 +0000 (01:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 5 Apr 2010 01:22:12 +0000 (01:22 +0000)
coders/cals.c
magick.sh.in [changed mode: 0644->0755]
magick/profile.c

index ead41655db2016c88ec135a954b6658eb980bf5d..25e48c538899ad6ae1a72afc3649700f94c922b5 100644 (file)
 #include "magick/string_.h"
 #include "magick/module.h"
 \f
+#if defined(MAGICKCORE_TIFF_DELEGATE)
 /*
  Forward declarations.
 */
 static MagickBooleanType
   WriteCALSImage(const ImageInfo *,Image *);
+#endif
 \f
 /*
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
old mode 100644 (file)
new mode 100755 (executable)
index 456797d5310bfb220f27f3f750112e46bfa54ab2..864ea11b224d0f59929617aa24f1b2bb45b22cfb 100644 (file)
 #if defined(MAGICKCORE_LCMS_DELEGATE)
 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000)
 #define cmsUInt32Number  DWORD
-#define cmsSigCmykData icSigCmykData 
-#define cmsSigGrayData icSigGrayData 
-#define cmsSigLabData icSigLabData 
-#define cmsSigLuvData icSigLuvData 
-#define cmsSigRgbData icSigRgbData 
-#define cmsSigXYZData icSigXYZData 
-#define cmsSigYCbCrData icSigYCbCrData 
+#define cmsSigCmykData icSigCmykData
+#define cmsSigGrayData icSigGrayData
+#define cmsSigLabData icSigLabData
+#define cmsSigLuvData icSigLuvData
+#define cmsSigRgbData icSigRgbData
+#define cmsSigXYZData icSigXYZData
+#define cmsSigYCbCrData icSigYCbCrData
 #endif
 #endif
 \f
@@ -390,8 +390,8 @@ static cmsHTRANSFORM *DestroyTransformThreadSet(cmsHTRANSFORM *transform)
 
 static cmsHTRANSFORM *AcquireTransformThreadSet(
   const cmsHPROFILE source_profile,const cmsUInt32Number source_type,
-  const cmsHPROFILE target_profile,const cmsUInt32Number target_type,const int intent,
-  const cmsUInt32Number flags)
+  const cmsHPROFILE target_profile,const cmsUInt32Number target_type,
+  const int intent,const cmsUInt32Number flags)
 {
   cmsHTRANSFORM
     *transform;
@@ -804,6 +804,14 @@ static MagickBooleanType SetsRGBImageProfile(Image *image)
   return(status);
 }
 #if defined(MAGICKCORE_LCMS_DELEGATE)
+#if defined(LCMS_VERSION) && (LCMS_VERSION >= 2000)
+static void LCMSErrorHandler(cmsContext context,int severity,
+  const char *message)
+{
+  (void) LogMagickEvent(TransformEvent,GetMagickModule(),"lcms: #%d, %s",
+    severity,message != (char *) NULL ? message : "no message");
+}
+#endif
 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000)
 #if defined(LCMS_VERSION) && (LCMS_VERSION > 1010)
 static int LCMSErrorHandler(int severity,const char *message)
@@ -967,6 +975,9 @@ MagickExport MagickBooleanType ProfileImage(Image *image,const char *name,
           /*
             Transform pixel colors as defined by the color profiles.
           */
+#if defined(LCMS_VERSION) && (LCMS_VERSION >= 2000)
+          cmsSetLogErrorHandler(LCMSErrorHandler);
+#endif
 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000)
 #if defined(LCMS_VERSION) && (LCMS_VERSION > 1010)
           cmsSetErrorHandler(LCMSErrorHandler);