d.y = (coeff[2]-coeff[3])*sa;
ExpandBounds(d);
/* Orthogonal points along top of arc */
- for( a=ceil((coeff[0]-coeff[1]/2.0)/MagickPI2)*MagickPI2;
+ for( a=(double) (ceil((double) ((coeff[0]-coeff[1]/2.0)/MagickPI2))*MagickPI2);
a<(coeff[0]+coeff[1]/2.0); a+=MagickPI2 ) {
ca = cos(a); sa = sin(a);
d.x = coeff[2]*ca;
to appropriate scaling factors, to allow faster processing
in the mapping function.
*/
- coeff[1] = Magick2PI*image->columns/coeff[1];
+ coeff[1] = (double) (Magick2PI*image->columns/coeff[1]);
coeff[3] = (double)image->rows/coeff[3];
break;
}
case ArcDistortion:
{
/* what is the angle and radius in the destination image */
- s.x = (atan2(d.y,d.x) - coeff[0])/Magick2PI;
+ s.x = (double) ((atan2(d.y,d.x) - coeff[0])/Magick2PI);
s.x -= MagickRound(s.x); /* angle */
s.y = hypot(d.x,d.y); /* radius */
*/
if ( s.y > MagickEpsilon )
ScaleFilter( resample_filter[id],
- coeff[1]/(Magick2PI*s.y), 0, 0, coeff[3] );
+ (double) (coeff[1]/(Magick2PI*s.y)), 0, 0, coeff[3] );
else
ScaleFilter( resample_filter[id],
distort_image->columns*2, 0, 0, coeff[3] );
*/
if ( s.y > MagickEpsilon )
ScaleFilter( resample_filter[id],
- coeff[6]/(Magick2PI*s.y), 0, 0, coeff[7] );
+ (double) (coeff[6]/(Magick2PI*s.y)), 0, 0, coeff[7] );
else
ScaleFilter( resample_filter[id],
distort_image->columns*2, 0, 0, coeff[7] );
EndianType
endian;
+ int
+ offset;
+
ssize_t
id,
level;
size_t
- length;
-
- ssize_t
- offset;
+ entry,
+ length,
+ number_entries;
static int
format_bytes[] = {0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8};
*directory,
*exif;
- size_t
- entry,
- number_entries;
-
/*
Set EXIF resolution tag.
*/
number_entries=ReadProfileShort(endian,directory);
for ( ; entry < number_entries; entry++)
{
+ int
+ components;
+
ssize_t
- components,
format,
tag_value;
p=q+8;
else
{
- ssize_t
+ int
offset;
/*
/*
Auto-crop image.
*/
- GetImageBackgroundColor(clone_image,StringToLong(artifact),exception);
+ GetImageBackgroundColor(clone_image,(ssize_t) StringToLong(artifact),
+ exception);
deskew_image=AffineTransformImage(clone_image,&affine_matrix,exception);
clone_image=DestroyImage(clone_image);
if (deskew_image == (Image *) NULL)