Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Update ImageMagick from 7.1.1-21 -> 7.1.1-22
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and MolotovCherry committed Dec 5, 2023
1 parent be01aae commit c16817d
Show file tree
Hide file tree
Showing 643 changed files with 1,317 additions and 888 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ OPENCL_INCLUDE_PATH := $(OPENCL_PATH)/qualcomm/include

LTDL_LIB_PATH := $(LOCAL_PATH)/libltdl-2.4.6

IMAGE_MAGICK_BASEDIR := ImageMagick-7.1.1-21
IMAGE_MAGICK_BASEDIR := ImageMagick-7.1.1-22
IMAGE_MAGICK := $(LOCAL_PATH)/$(IMAGE_MAGICK_BASEDIR)

JPEG_LIB_PATH := $(LOCAL_PATH)/libjpeg-turbo-2.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ typedef enum
StepBackwardCommand,
StepForwardCommand,
NullCommand
} CommandType;
} AnimateCommand;

/*
Stipples.
Expand All @@ -243,7 +243,7 @@ typedef enum
Forward declarations.
*/
static Image
*XMagickCommand(Display *,XResourceInfo *,XWindows *,const CommandType,
*XMagickCommand(Display *,XResourceInfo *,XWindows *,const AnimateCommand,
Image **,MagickStatusType *,ExceptionInfo *);

static MagickBooleanType
Expand Down Expand Up @@ -346,7 +346,7 @@ MagickExport MagickBooleanType AnimateImages(const ImageInfo *image_info,
% The format of the XMagickCommand method is:
%
% Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
% XWindows *windows,const CommandType command_type,Image **image,
% XWindows *windows,const AnimateCommand animate_command,Image **image,
% MagickStatusType *state,ExceptionInfo *exception)
%
% A description of each parameter follows:
Expand All @@ -369,7 +369,7 @@ MagickExport MagickBooleanType AnimateImages(const ImageInfo *image_info,
%
*/
static Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
XWindows *windows,const CommandType command_type,Image **image,
XWindows *windows,const AnimateCommand animate_command,Image **image,
MagickStatusType *state,ExceptionInfo *exception)
{
Image
Expand All @@ -388,7 +388,7 @@ static Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
Process user command.
*/
nexus=NewImageList();
switch (command_type)
switch (animate_command)
{
case OpenCommand:
{
Expand Down Expand Up @@ -519,9 +519,9 @@ static Image *XMagickCommand(Display *display,XResourceInfo *resource_info,
{
*state|=StepAnimationState;
*state&=(~PlayAnimationState);
if (command_type == StepBackwardCommand)
if (animate_command == StepBackwardCommand)
*state&=(~ForwardAnimationState);
if (command_type == StepForwardCommand)
if (animate_command == StepForwardCommand)
*state|=ForwardAnimationState;
break;
}
Expand Down Expand Up @@ -1262,7 +1262,7 @@ MagickExport Image *XAnimateImages(Display *display,
HelpMenu
};

static const CommandType
static const AnimateCommand
CommandMenus[]=
{
NullCommand,
Expand All @@ -1272,7 +1272,7 @@ MagickExport Image *XAnimateImages(Display *display,
InfoCommand,
QuitCommand
},
CommandTypes[]=
AnimateCommands[]=
{
OpenCommand,
PlayCommand,
Expand All @@ -1298,25 +1298,25 @@ MagickExport Image *XAnimateImages(Display *display,
VersionCommand
};

static const CommandType
static const AnimateCommand
*Commands[MagickMenus]=
{
CommandTypes,
AnimateCommands,
SpeedCommands,
DirectionCommands,
HelpCommands
};

AnimateCommand
animate_command;

char
command[MagickPathExtent],
*directory,
geometry[MagickPathExtent],
*p,
resource_name[MagickPathExtent];

CommandType
command_type;

Image
*coalesce_image,
*display_image,
Expand Down Expand Up @@ -2197,7 +2197,7 @@ MagickExport Image *XAnimateImages(Display *display,
if (id < 0)
continue;
(void) CopyMagickString(command,CommandMenu[id],MagickPathExtent);
command_type=CommandMenus[id];
animate_command=CommandMenus[id];
if (id < MagickMenus)
{
int
Expand All @@ -2211,11 +2211,11 @@ MagickExport Image *XAnimateImages(Display *display,
if (entry < 0)
continue;
(void) CopyMagickString(command,Menus[id][entry],MagickPathExtent);
command_type=Commands[id][entry];
animate_command=Commands[id][entry];
}
if (command_type != NullCommand)
nexus=XMagickCommand(display,resource_info,windows,
command_type,&image,&state,exception);
if (animate_command != NullCommand)
nexus=XMagickCommand(display,resource_info,windows,animate_command,
&image,&state,exception);
continue;
}
switch (event.type)
Expand Down Expand Up @@ -2527,63 +2527,63 @@ MagickExport Image *XAnimateImages(Display *display,
if (resource_info->debug != MagickFalse)
(void) LogMagickEvent(X11Event,GetMagickModule(),
"Key press: 0x%lx (%c)",(unsigned long) key_symbol,*command);
command_type=NullCommand;
animate_command=NullCommand;
switch (key_symbol)
{
case XK_o:
{
if ((event.xkey.state & ControlMask) == MagickFalse)
break;
command_type=OpenCommand;
animate_command=OpenCommand;
break;
}
case XK_BackSpace:
{
command_type=StepBackwardCommand;
animate_command=StepBackwardCommand;
break;
}
case XK_space:
{
command_type=StepForwardCommand;
animate_command=StepForwardCommand;
break;
}
case XK_less:
{
command_type=FasterCommand;
animate_command=FasterCommand;
break;
}
case XK_greater:
{
command_type=SlowerCommand;
animate_command=SlowerCommand;
break;
}
case XK_F1:
{
command_type=HelpCommand;
animate_command=HelpCommand;
break;
}
case XK_Find:
{
command_type=BrowseDocumentationCommand;
animate_command=BrowseDocumentationCommand;
break;
}
case XK_question:
{
command_type=InfoCommand;
animate_command=InfoCommand;
break;
}
case XK_q:
case XK_Escape:
{
command_type=QuitCommand;
animate_command=QuitCommand;
break;
}
default:
break;
}
if (command_type != NullCommand)
if (animate_command != NullCommand)
nexus=XMagickCommand(display,resource_info,windows,
command_type,&image,&state,exception);
animate_command,&image,&state,exception);
break;
}
case KeyRelease:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
% October 2002 %
% %
% %
% Copyright @ 2002 ImageMagick Studio LLC, a non-profit organization %
% Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
Expand Down Expand Up @@ -124,14 +124,14 @@
%
*/

typedef struct _EdgeInfo
typedef struct _CensusInfo
{
double
left,
right,
top,
bottom;
} EdgeInfo;
} CensusInfo;

static double GetEdgeBackgroundCensus(const Image *image,
const CacheView *image_view,const GravityType gravity,const size_t width,
Expand Down Expand Up @@ -238,7 +238,7 @@ static double GetEdgeBackgroundCensus(const Image *image,
return(census);
}

static inline double GetMinEdgeBackgroundCensus(const EdgeInfo *edge)
static inline double GetMinEdgeBackgroundCensus(const CensusInfo *edge)
{
double
census;
Expand All @@ -254,17 +254,17 @@ static RectangleInfo GetEdgeBoundingBox(const Image *image,
CacheView
*edge_view;

CensusInfo
edge,
vertex;

const char
*artifact;

double
background_census,
percent_background;

EdgeInfo
edge,
vertex;

Image
*edge_image;

Expand Down
Loading

0 comments on commit c16817d

Please sign in to comment.