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.0-46 -> 7.1.0-47
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and MolotovCherry committed Aug 28, 2022
1 parent dc7f6f3 commit d6060b9
Show file tree
Hide file tree
Showing 638 changed files with 70 additions and 43 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.0-46
IMAGE_MAGICK_BASEDIR := ImageMagick-7.1.0-47
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 @@ -3853,6 +3853,12 @@ MagickExport MagickBooleanType ModulateImage(Image *image,const char *modulate,
&red,&green,&blue);
break;
}
case HSIColorspace:
{
ModulateHSI(percent_hue,percent_saturation,percent_brightness,
&red,&green,&blue);
break;
}
case HSLColorspace:
default:
{
Expand All @@ -3872,13 +3878,13 @@ MagickExport MagickBooleanType ModulateImage(Image *image,const char *modulate,
&red,&green,&blue);
break;
}
case LCHColorspace:
case LCHabColorspace:
{
ModulateLCHab(percent_brightness,percent_saturation,percent_hue,
illuminant,&red,&green,&blue);
break;
}
case LCHColorspace:
case LCHuvColorspace:
{
ModulateLCHuv(percent_brightness,percent_saturation,percent_hue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,60 +278,65 @@ MagickExport Image *ComplexImages(const Image *images,const ComplexOperator op,
{
ssize_t
i;

for (i=0; i < (ssize_t) number_channels; i++)
{
double
ai = QuantumScale*Ai[i],
ar = QuantumScale*Ar[i],
bi = QuantumScale*Bi[i],
br = QuantumScale*Br[i],
ci,
cr;

switch (op)
{
case AddComplexOperator:
{
Cr[i]=Ar[i]+Br[i];
Ci[i]=Ai[i]+Bi[i];
cr=ar+br;
ci=ai+bi;
break;
}
case ConjugateComplexOperator:
default:
{
Cr[i]=Ar[i];
Ci[i]=(-Ai[i]);
cr=ar;
ci=(-ai);
break;
}
case DivideComplexOperator:
{
double
gamma;

gamma=QuantumRange*PerceptibleReciprocal(QuantumScale*Br[i]*Br[i]+
QuantumScale*Bi[i]*Bi[i]+snr);
Cr[i]=gamma*(QuantumScale*Ar[i]*Br[i]+QuantumScale*Ai[i]*Bi[i]);
Ci[i]=gamma*(QuantumScale*Ai[i]*Br[i]-QuantumScale*Ar[i]*Bi[i]);
cr=PerceptibleReciprocal(br*br+bi*bi+snr)*(ar*br+ai*bi);
ci=PerceptibleReciprocal(br*br+bi*bi+snr)*(ai*br-ar*bi);
break;
}
case MagnitudePhaseComplexOperator:
{
Cr[i]=sqrt(QuantumScale*Ar[i]*Ar[i]+QuantumScale*Ai[i]*Ai[i]);
Ci[i]=atan2((double) Ai[i],(double) Ar[i])/(2.0*MagickPI)+0.5;
cr=sqrt(ar*ar+ai*ai);
ci=atan2((double) ai,(double) ar)/(2.0*MagickPI)+0.5;
break;
}
case MultiplyComplexOperator:
{
Cr[i]=(QuantumScale*Ar[i]*Br[i]-QuantumScale*Ai[i]*Bi[i]);
Ci[i]=(QuantumScale*Ai[i]*Br[i]+QuantumScale*Ar[i]*Bi[i]);
cr=(ar*br-ai*bi);
ci=(ai*br+ar*bi);
break;
}
case RealImaginaryComplexOperator:
{
Cr[i]=Ar[i]*cos(2.0*MagickPI*(Ai[i]-0.5));
Ci[i]=Ar[i]*sin(2.0*MagickPI*(Ai[i]-0.5));
cr=ar*cos(2.0*MagickPI*(ai-0.5));
ci=ar*sin(2.0*MagickPI*(ai-0.5));
break;
}
case SubtractComplexOperator:
{
Cr[i]=Ar[i]-Br[i];
Ci[i]=Ai[i]-Bi[i];
cr=ar-br;
ci=ai-bi;
break;
}
}
Cr[i]=QuantumRange*cr;
Ci[i]=QuantumRange*ci;
}
Ar+=GetPixelChannels(Ar_image);
Ai+=GetPixelChannels(Ai_image);
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ MagickExport MagickBooleanType SetQuantumPad(const Image *image,
assert(quantum_info->signature == MagickCoreSignature);
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
if (pad >= (MAGICK_SSIZE_MAX/GetImageChannels(image)))
return(MagickFalse);
quantum_info->pad=pad;
return(SetQuantumDepth(image,quantum_info,quantum_info->depth));
}
Expand Down
Loading

0 comments on commit d6060b9

Please sign in to comment.