]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 17 Nov 2011 18:04:39 +0000 (18:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 17 Nov 2011 18:04:39 +0000 (18:04 +0000)
MagickCore/identify.c
MagickCore/pixel.c
MagickCore/profile.c
MagickWand/mogrify.c
coders/caption.c
coders/msl.c
coders/ps.c
coders/tiff.c

index 1cffefe20207df3bec8dd2b57219dc6aaa6d8ea2..4c78109a192332bbbe7cc2d952c7983cc516da99 100644 (file)
@@ -521,8 +521,8 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file,
       if (colorspace != GRAYColorspace)
         {
           (void) FormatLocaleFile(file,"  Image statistics:\n");
-          (void) PrintChannelStatistics(file,MaxPixelChannels,"Overall",
-            1.0/scale,channel_statistics);
+          (void) PrintChannelStatistics(file,(PixelChannel) MaxPixelChannels,
+            "Overall",1.0/scale,channel_statistics);
         }
       channel_statistics=(ChannelStatistics *) RelinquishMagickMemory(
         channel_statistics);
index 193d63e4e08eba5ee2507b107893676da39c5d17..11de725ea78224ac52545853c6550975bae52bb0 100644 (file)
@@ -3653,40 +3653,40 @@ MagickExport void PendInitializePixelChannelMap(Image *image)
   assert(image->signature == MagickSignature);
   for (i=0; i < (ssize_t) MaxPixelChannels; i++)
   {
-    SetPixelChannelMapChannel(image,(PixelChannel) i,(PixelTrait) 0);
+    SetPixelChannelMapChannel(image,(PixelChannel) i,(PixelChannel) 0);
     SetPixelChannelMapTraits(image,(PixelChannel) i,UndefinedPixelTrait);
   }
   n=0;
-  SetPixelChannelMapChannel(image,RedPixelChannel,(PixelTrait) n++);
+  SetPixelChannelMapChannel(image,RedPixelChannel,(PixelChannel) n++);
   SetPixelChannelMapTraits(image,RedPixelChannel,(PixelTrait)
     (UpdatePixelTrait | BlendPixelTrait));
-  SetPixelChannelMapChannel(image,GreenPixelChannel,(PixelTrait) n++);
+  SetPixelChannelMapChannel(image,GreenPixelChannel,(PixelChannel) n++);
   SetPixelChannelMapTraits(image,GreenPixelChannel,(PixelTrait)
     (UpdatePixelTrait | BlendPixelTrait));
-  SetPixelChannelMapChannel(image,BluePixelChannel,(PixelTrait) n++);
+  SetPixelChannelMapChannel(image,BluePixelChannel,(PixelChannel) n++);
   SetPixelChannelMapTraits(image,BluePixelChannel,(PixelTrait)
     (UpdatePixelTrait | BlendPixelTrait));
   if (image->colorspace == GRAYColorspace)
     {
       n=0;
-      SetPixelChannelMapChannel(image,RedPixelChannel,(PixelTrait) n);
-      SetPixelChannelMapChannel(image,GreenPixelChannel,(PixelTrait) n);
-      SetPixelChannelMapChannel(image,BluePixelChannel,(PixelTrait) n++);
+      SetPixelChannelMapChannel(image,RedPixelChannel,(PixelChannel) n);
+      SetPixelChannelMapChannel(image,GreenPixelChannel,(PixelChannel) n);
+      SetPixelChannelMapChannel(image,BluePixelChannel,(PixelChannel) n++);
     }
   if (image->colorspace == CMYKColorspace)
     {
-      SetPixelChannelMapChannel(image,BlackPixelChannel,(PixelTrait) n++);
+      SetPixelChannelMapChannel(image,BlackPixelChannel,(PixelChannel) n++);
       SetPixelChannelMapTraits(image,BlackPixelChannel,(PixelTrait)
         (UpdatePixelTrait | BlendPixelTrait));
     }
   if (image->storage_class == PseudoClass)
     {
-      SetPixelChannelMapChannel(image,IndexPixelChannel,(PixelTrait) n++);
+      SetPixelChannelMapChannel(image,IndexPixelChannel,(PixelChannel) n++);
       SetPixelChannelMapTraits(image,IndexPixelChannel,CopyPixelTrait);
     }
   if (image->matte != MagickFalse)
     {
-      SetPixelChannelMapChannel(image,AlphaPixelChannel,(PixelTrait) n++);
+      SetPixelChannelMapChannel(image,AlphaPixelChannel,(PixelChannel) n++);
       SetPixelChannelMapTraits(image,AlphaPixelChannel,CopyPixelTrait);
     }
   n+=image->number_meta_channels;
@@ -5469,8 +5469,8 @@ MagickExport void SetPixelChannelMap(Image *image,
   for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
     SetPixelChannelMapTraits(image,(PixelChannel) i,
       GetChannelBit(channel_mask,i) == 0 ? CopyPixelTrait :
-      image->matte == MagickFalse ? UpdatePixelTrait :
-      UpdatePixelTrait | BlendPixelTrait);
+      image->matte == MagickFalse ? UpdatePixelTrait : (PixelTrait)
+      (UpdatePixelTrait | BlendPixelTrait));
   for ( ; i < MaxPixelChannels; i++)
     SetPixelChannelMapTraits(image,(PixelChannel) i,UndefinedPixelTrait);
   if (image->storage_class == PseudoClass)
index c3f92f36cd26fc792e02a60adfc2794db1d983e0..7461072e1f38873fd22658ec448b6fb6bb26ee1f 100644 (file)
 /*
   Typedef declarations
 */
-struct ProfileInfo
+struct _ProfileInfo
 {
   char
     *name;
index 4c256e7ddaf9b1ac31cf227fc445b30a4d83beef..3cc8f0df70a1dfec3b438acf020e2b5b4f31b0d2 100644 (file)
@@ -2356,7 +2356,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
                   {
                     (void) ProfileImage(*image,profile_info->magick,
                       GetStringInfoDatum(profile),(size_t)
-                      GetStringInfoLength(profile),MagickFalse);
+                      GetStringInfoLength(profile),exception);
                     profile=DestroyStringInfo(profile);
                   }
                 profile_info=DestroyImageInfo(profile_info);
@@ -2369,7 +2369,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
               profile=GetImageProfile(profile_image,name);
               if (profile != (StringInfo *) NULL)
                 (void) ProfileImage(*image,name,GetStringInfoDatum(profile),
-                  (size_t) GetStringInfoLength(profile),MagickFalse);
+                  (size_t) GetStringInfoLength(profile),exception);
               name=GetNextImageProfile(profile_image);
             }
             profile_image=DestroyImage(profile_image);
index ac8c18cb5cda7b24b96afa7d2623ccefb6058bb4..357ecaab7c10f7a73cdfd7147134c3244a1dcab0 100644 (file)
@@ -259,7 +259,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
   }
   if ((align != PANGO_ALIGN_CENTER) &&
       (draw_info->direction == RightToLeftDirection))
-    align=PANGO_ALIGN_LEFT+PANGO_ALIGN_RIGHT-align;
+    align=(PangoAlignment) (PANGO_ALIGN_LEFT+PANGO_ALIGN_RIGHT-align);
   pango_layout_set_alignment(layout,align);
   description=pango_font_description_from_string(draw_info->font ==
     (char *) NULL ? "helvetica" : draw_info->font);
index 2b8a24b384b7644503203df8dcbeae9e1bc61815..30118d5dec18b2298c1f710e7d4cb1b2075dadcb 100644 (file)
@@ -4422,7 +4422,7 @@ static void MSLStartElement(void *context,const xmlChar *tag,
                     {
                       (void) ProfileImage(msl_info->image[n],name,
                         GetStringInfoDatum(profile),(size_t)
-                        GetStringInfoLength(profile),MagickFalse);
+                        GetStringInfoLength(profile),&exception);
                       profile=DestroyStringInfo(profile);
                     }
                   continue;
@@ -4435,7 +4435,7 @@ static void MSLStartElement(void *context,const xmlChar *tag,
                 if (profile != (StringInfo *) NULL)
                   (void) ProfileImage(msl_info->image[n],name,
                     GetStringInfoDatum(profile),(size_t)
-                    GetStringInfoLength(profile),MagickFalse);
+                    GetStringInfoLength(profile),&exception);
                 name=GetNextImageProfile(profile_image);
               }
               profile_image=DestroyImage(profile_image);
index eb0f9f60fcb8b0d7cf06b654afe80e9c3d43901e..988bc1ace85f2ff7d231ee61f23242fb7fe1e4e2 100644 (file)
@@ -671,7 +671,7 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
           &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2);
         i=1;
       }
-    if ((count != 4) || (i < priority))
+    if ((count != 4) || (i < (ssize_t) priority))
       continue;
     hires_bounds=bounds;
     priority=i;
index f5dc094143ec214adc387c798e16a6a89ed1b6bc..714d9d0d210d5045b992a3039a20db2582970b7b 100644 (file)
@@ -1761,7 +1761,10 @@ static void TIFFTagExtender(TIFF *tiff)
   static const TIFFFieldInfo
     TIFFExtensions[] =
     {
-      { 37724, -3, -3, TIFF_UNDEFINED, FIELD_CUSTOM, 1, 1, "PhotoshopLayerData" }
+      {
+        37724, -3, -3, TIFF_UNDEFINED, FIELD_CUSTOM, 1, 1,
+          (char *) "PhotoshopLayerData"
+      }
     };
 
   TIFFMergeFieldInfo(tiff,TIFFExtensions,sizeof(TIFFExtensions)/