Skip to content

Commit acea3c9

Browse files
web-flowMolotovCherry
authored andcommitted
Update ImageMagick from 7.1.1-6 -> 7.1.1-7
1 parent f397552 commit acea3c9

File tree

641 files changed

+974
-727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

641 files changed

+974
-727
lines changed

Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OPENCL_INCLUDE_PATH := $(OPENCL_PATH)/qualcomm/include
3030

3131
LTDL_LIB_PATH := $(LOCAL_PATH)/libltdl-2.4.6
3232

33-
IMAGE_MAGICK_BASEDIR := ImageMagick-7.1.1-6
33+
IMAGE_MAGICK_BASEDIR := ImageMagick-7.1.1-7
3434
IMAGE_MAGICK := $(LOCAL_PATH)/$(IMAGE_MAGICK_BASEDIR)
3535

3636
JPEG_LIB_PATH := $(LOCAL_PATH)/libjpeg-turbo-2.0.2

ImageMagick-7.1.1-6/Magick++/lib/Drawable.cpp ImageMagick-7.1.1-7/Magick++/lib/Drawable.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1207,8 +1207,7 @@ Magick::DrawableStrokeDashArray& Magick::DrawableStrokeDashArray::operator=(
12071207
void Magick::DrawableStrokeDashArray::operator()(
12081208
MagickCore::DrawingWand *context_) const
12091209
{
1210-
(void) DrawSetStrokeDashArray(context_,(const unsigned long) _size,
1211-
_dasharray);
1210+
(void) DrawSetStrokeDashArray(context_,(unsigned long) _size,_dasharray);
12121211
}
12131212

12141213
Magick::DrawableBase *Magick::DrawableStrokeDashArray::copy() const

ImageMagick-7.1.1-6/MagickCore/annotate.c ImageMagick-7.1.1-7/MagickCore/annotate.c

+19-11
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,11 @@ static MagickBooleanType RenderType(Image *image,const DrawInfo *draw_info,
11371137

11381138
#if defined(MAGICKCORE_FREETYPE_DELEGATE)
11391139

1140-
static size_t ComplexTextLayout(const Image *image,const DrawInfo *draw_info,
1141-
const char *text,const size_t length,const FT_Face face,const FT_Int32 flags,
1142-
GraphemeInfo **grapheme,ExceptionInfo *exception)
1143-
{
11441140
#if defined(MAGICKCORE_RAQM_DELEGATE)
1141+
static size_t ComplexRaqmTextLayout(const Image *image,
1142+
const DrawInfo *draw_info,const char *text,const size_t length,
1143+
const FT_Face face,GraphemeInfo **grapheme,ExceptionInfo *exception)
1144+
{
11451145
const char
11461146
*features;
11471147

@@ -1157,7 +1157,6 @@ static size_t ComplexTextLayout(const Image *image,const DrawInfo *draw_info,
11571157
size_t
11581158
extent;
11591159

1160-
magick_unreferenced(flags);
11611160
extent=0;
11621161
rq=raqm_create();
11631162
if (rq == (raqm_t *) NULL)
@@ -1224,6 +1223,10 @@ static size_t ComplexTextLayout(const Image *image,const DrawInfo *draw_info,
12241223
raqm_destroy(rq);
12251224
return(extent);
12261225
#else
1226+
static size_t ComplexTextLayout(const DrawInfo *draw_info,const char *text,
1227+
const size_t length,const FT_Face face,const FT_Int32 flags,
1228+
GraphemeInfo **grapheme)
1229+
{
12271230
const char
12281231
*p;
12291232

@@ -1236,8 +1239,6 @@ static size_t ComplexTextLayout(const Image *image,const DrawInfo *draw_info,
12361239
/*
12371240
Simple layout for bi-directional text (right-to-left or left-to-right).
12381241
*/
1239-
magick_unreferenced(image);
1240-
magick_unreferenced(exception);
12411242
*grapheme=(GraphemeInfo *) AcquireQuantumMemory(length+1,sizeof(**grapheme));
12421243
if (*grapheme == (GraphemeInfo *) NULL)
12431244
return(0);
@@ -1378,11 +1379,14 @@ static int TraceQuadraticBezier(FT_Vector *control,FT_Vector *to,
13781379
return(0);
13791380
}
13801381

1382+
#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 10
13811383
static inline const char *FreetypeErrorMessage(FT_Error ft_status)
13821384
{
1383-
#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 10
13841385
return(FT_Error_String(ft_status));
13851386
#else
1387+
static inline const char *FreetypeErrorMessage(
1388+
FT_Error magick_unused(ft_status))
1389+
{
13861390
magick_unreferenced(ft_status);
13871391
return((const char *) NULL);
13881392
#endif
@@ -1808,7 +1812,7 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
18081812
{
18091813
if (image->storage_class != DirectClass)
18101814
(void) SetImageStorageClass(image,DirectClass,exception);
1811-
if (image->alpha_trait == UndefinedPixelTrait)
1815+
if ((image->alpha_trait & BlendPixelTrait) == 0)
18121816
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
18131817
}
18141818
for (p=draw_info->text; GetUTFCode(p) != 0; p+=GetUTFOctets(p))
@@ -1824,8 +1828,12 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
18241828
p=(char *) utf8;
18251829
}
18261830
grapheme=(GraphemeInfo *) NULL;
1827-
length=ComplexTextLayout(image,draw_info,p,strlen(p),face,flags,&grapheme,
1831+
#if defined(MAGICKCORE_RAQM_DELEGATE)
1832+
length=ComplexRaqmTextLayout(image,draw_info,p,strlen(p),face,&grapheme,
18281833
exception);
1834+
#else
1835+
length=ComplexTextLayout(draw_info,p,strlen(p),face,flags,&grapheme);
1836+
#endif
18291837
missing_glyph_id=FT_Get_Char_Index(face,' ');
18301838
code=0;
18311839
last_character=(ssize_t) length-1;
@@ -2351,7 +2359,7 @@ static MagickBooleanType RenderPostscript(Image *image,
23512359
/*
23522360
Render fill color.
23532361
*/
2354-
if (image->alpha_trait == UndefinedPixelTrait)
2362+
if ((image->alpha_trait & BlendPixelTrait) == 0)
23552363
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
23562364
if (annotate_image->alpha_trait == UndefinedPixelTrait)
23572365
(void) SetImageAlphaChannel(annotate_image,OpaqueAlphaChannel,

ImageMagick-7.1.1-6/MagickCore/attribute.c ImageMagick-7.1.1-7/MagickCore/attribute.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ MagickExport size_t GetImageDepth(const Image *image,ExceptionInfo *exception)
922922
for (i=0; i < (ssize_t) number_threads; i++)
923923
current_depth[i]=1;
924924
if ((image->storage_class == PseudoClass) &&
925-
(image->alpha_trait == UndefinedPixelTrait))
925+
((image->alpha_trait & BlendPixelTrait) == 0))
926926
{
927927
for (i=0; i < (ssize_t) image->colors; i++)
928928
{
@@ -1512,7 +1512,7 @@ MagickExport ImageType GetImageType(const Image *image)
15121512
assert(image->signature == MagickCoreSignature);
15131513
if (image->colorspace == CMYKColorspace)
15141514
{
1515-
if (image->alpha_trait == UndefinedPixelTrait)
1515+
if ((image->alpha_trait & BlendPixelTrait) == 0)
15161516
return(ColorSeparationType);
15171517
return(ColorSeparationAlphaType);
15181518
}
@@ -1735,7 +1735,7 @@ MagickExport ImageType IdentifyImageType(const Image *image,
17351735
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
17361736
if (image->colorspace == CMYKColorspace)
17371737
{
1738-
if (image->alpha_trait == UndefinedPixelTrait)
1738+
if ((image->alpha_trait & BlendPixelTrait) == 0)
17391739
return(ColorSeparationType);
17401740
return(ColorSeparationAlphaType);
17411741
}
@@ -1866,7 +1866,7 @@ MagickExport MagickBooleanType IsImageOpaque(const Image *image,
18661866
assert(image->signature == MagickCoreSignature);
18671867
if (IsEventLogging() != MagickFalse)
18681868
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
1869-
if (image->alpha_trait == UndefinedPixelTrait)
1869+
if ((image->alpha_trait & BlendPixelTrait) == 0)
18701870
return(MagickTrue);
18711871
image_view=AcquireVirtualCacheView(image,exception);
18721872
for (y=0; y < (ssize_t) image->rows; y++)
@@ -2184,7 +2184,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
21842184
{
21852185
if (IsGrayImageType(image->type) == MagickFalse)
21862186
status=TransformImageColorspace(image,GRAYColorspace,exception);
2187-
if (image->alpha_trait == UndefinedPixelTrait)
2187+
if ((image->alpha_trait & BlendPixelTrait) == 0)
21882188
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
21892189
break;
21902190
}
@@ -2209,7 +2209,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
22092209

22102210
if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
22112211
status=TransformImageColorspace(image,sRGBColorspace,exception);
2212-
if (image->alpha_trait == UndefinedPixelTrait)
2212+
if ((image->alpha_trait & BlendPixelTrait) == 0)
22132213
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
22142214
channel_mask=SetImageChannelMask(image,AlphaChannel);
22152215
(void) BilevelImage(image,(double) QuantumRange/2.0,exception);
@@ -2223,7 +2223,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
22232223
{
22242224
if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
22252225
status=TransformImageColorspace(image,sRGBColorspace,exception);
2226-
if (image->alpha_trait == UndefinedPixelTrait)
2226+
if ((image->alpha_trait & BlendPixelTrait) == 0)
22272227
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
22282228
quantize_info=AcquireQuantizeInfo(image_info);
22292229
quantize_info->colorspace=TransparentColorspace;
@@ -2246,7 +2246,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
22462246
status=TransformImageColorspace(image,sRGBColorspace,exception);
22472247
if (image->storage_class != DirectClass)
22482248
status=SetImageStorageClass(image,DirectClass,exception);
2249-
if (image->alpha_trait == UndefinedPixelTrait)
2249+
if ((image->alpha_trait & BlendPixelTrait) == 0)
22502250
(void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
22512251
break;
22522252
}
@@ -2265,7 +2265,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,
22652265
status=TransformImageColorspace(image,CMYKColorspace,exception);
22662266
if (image->storage_class != DirectClass)
22672267
status=SetImageStorageClass(image,DirectClass,exception);
2268-
if (image->alpha_trait == UndefinedPixelTrait)
2268+
if ((image->alpha_trait & BlendPixelTrait) == 0)
22692269
status=SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
22702270
break;
22712271
}

ImageMagick-7.1.1-6/MagickCore/blob.c ImageMagick-7.1.1-7/MagickCore/blob.c

+15
Original file line numberDiff line numberDiff line change
@@ -3801,6 +3801,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38013801
break;
38023802
*q++=(unsigned char) c;
38033803
count++;
3804+
magick_fallthrough;
38043805
}
38053806
case 3:
38063807
{
@@ -3809,6 +3810,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38093810
break;
38103811
*q++=(unsigned char) c;
38113812
count++;
3813+
magick_fallthrough;
38123814
}
38133815
case 2:
38143816
{
@@ -3817,6 +3819,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38173819
break;
38183820
*q++=(unsigned char) c;
38193821
count++;
3822+
magick_fallthrough;
38203823
}
38213824
case 1:
38223825
{
@@ -3825,6 +3828,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38253828
break;
38263829
*q++=(unsigned char) c;
38273830
count++;
3831+
magick_fallthrough;
38283832
}
38293833
case 0:
38303834
break;
@@ -3868,6 +3872,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38683872
break;
38693873
*q++=(unsigned char) c;
38703874
count++;
3875+
magick_fallthrough;
38713876
}
38723877
case 3:
38733878
{
@@ -3876,6 +3881,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38763881
break;
38773882
*q++=(unsigned char) c;
38783883
count++;
3884+
magick_fallthrough;
38793885
}
38803886
case 2:
38813887
{
@@ -3884,6 +3890,7 @@ MagickExport ssize_t ReadBlob(Image *image,const size_t length,void *data)
38843890
break;
38853891
*q++=(unsigned char) c;
38863892
count++;
3893+
magick_fallthrough;
38873894
}
38883895
case 1:
38893896
{
@@ -5739,27 +5746,31 @@ MagickExport ssize_t WriteBlob(Image *image,const size_t length,
57395746
if (c == EOF)
57405747
break;
57415748
count++;
5749+
magick_fallthrough;
57425750
}
57435751
case 3:
57445752
{
57455753
c=putc((int) *p++,blob_info->file_info.file);
57465754
if (c == EOF)
57475755
break;
57485756
count++;
5757+
magick_fallthrough;
57495758
}
57505759
case 2:
57515760
{
57525761
c=putc((int) *p++,blob_info->file_info.file);
57535762
if (c == EOF)
57545763
break;
57555764
count++;
5765+
magick_fallthrough;
57565766
}
57575767
case 1:
57585768
{
57595769
c=putc((int) *p++,blob_info->file_info.file);
57605770
if (c == EOF)
57615771
break;
57625772
count++;
5773+
magick_fallthrough;
57635774
}
57645775
case 0:
57655776
break;
@@ -5802,27 +5813,31 @@ MagickExport ssize_t WriteBlob(Image *image,const size_t length,
58025813
if (c == EOF)
58035814
break;
58045815
count++;
5816+
magick_fallthrough;
58055817
}
58065818
case 3:
58075819
{
58085820
c=gzputc(blob_info->file_info.gzfile,(int) *p++);
58095821
if (c == EOF)
58105822
break;
58115823
count++;
5824+
magick_fallthrough;
58125825
}
58135826
case 2:
58145827
{
58155828
c=gzputc(blob_info->file_info.gzfile,(int) *p++);
58165829
if (c == EOF)
58175830
break;
58185831
count++;
5832+
magick_fallthrough;
58195833
}
58205834
case 1:
58215835
{
58225836
c=gzputc(blob_info->file_info.gzfile,(int) *p++);
58235837
if (c == EOF)
58245838
break;
58255839
count++;
5840+
magick_fallthrough;
58265841
}
58275842
case 0:
58285843
break;
File renamed without changes.

ImageMagick-7.1.1-6/MagickCore/cache-view.c ImageMagick-7.1.1-7/MagickCore/cache-view.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ MagickExport CacheView *AcquireAuthenticCacheView(const Image *image,
147147
%
148148
*/
149149
MagickExport CacheView *AcquireVirtualCacheView(const Image *image,
150-
ExceptionInfo *exception)
150+
ExceptionInfo *magick_unused(exception))
151151
{
152152
CacheView
153153
*magick_restrict cache_view;

ImageMagick-7.1.1-6/MagickCore/cache.c ImageMagick-7.1.1-7/MagickCore/cache.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static MagickBooleanType ClonePixelCacheRepository(
667667
num_threads((multithreaded) == 0 ? 1 : \
668668
(((source)->type != MemoryCache) && ((source)->type != MapCache)) || \
669669
(((destination)->type != MemoryCache) && ((destination)->type != MapCache)) ? \
670-
MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1) : \
670+
MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),2),1) : \
671671
MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),(ssize_t) (chunk)/256),1))
672672

673673
MagickBooleanType
@@ -1009,6 +1009,7 @@ static inline void RelinquishPixelCachePixels(CacheInfo *cache_info)
10091009
(void) RelinquishUniqueFileResource(cache_info->cache_filename);
10101010
*cache_info->cache_filename='\0';
10111011
RelinquishMagickResource(MapResource,cache_info->length);
1012+
magick_fallthrough;
10121013
}
10131014
case DiskCache:
10141015
{
@@ -5237,7 +5238,7 @@ MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod(Image *image,
52375238
case BackgroundVirtualPixelMethod:
52385239
{
52395240
if ((image->background_color.alpha_trait != UndefinedPixelTrait) &&
5240-
(image->alpha_trait == UndefinedPixelTrait))
5241+
((image->alpha_trait & BlendPixelTrait) == 0))
52415242
(void) SetCacheAlphaChannel(image,OpaqueAlpha,exception);
52425243
if ((IsPixelInfoGray(&image->background_color) == MagickFalse) &&
52435244
(IsGrayColorspace(image->colorspace) != MagickFalse))
@@ -5246,7 +5247,7 @@ MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod(Image *image,
52465247
}
52475248
case TransparentVirtualPixelMethod:
52485249
{
5249-
if (image->alpha_trait == UndefinedPixelTrait)
5250+
if ((image->alpha_trait & BlendPixelTrait) == 0)
52505251
(void) SetCacheAlphaChannel(image,OpaqueAlpha,exception);
52515252
break;
52525253
}
File renamed without changes.

0 commit comments

Comments
 (0)