if ((flags & PercentValue) != 0)
{
MagickStatusType
- flags;
+ percent_flags;
PointInfo
scale;
/*
Geometry is a percentage of the image size.
*/
- flags=ParseGeometry(geometry,&geometry_info);
+ percent_flags=ParseGeometry(geometry,&geometry_info);
scale.x=geometry_info.rho;
- if ((flags & RhoValue) == 0)
+ if ((percent_flags & RhoValue) == 0)
scale.x=100.0;
scale.y=geometry_info.sigma;
- if ((flags & SigmaValue) == 0)
+ if ((percent_flags & SigmaValue) == 0)
scale.y=scale.x;
*width=(size_t) floor(scale.x*former_width/100.0+0.5);
*height=(size_t) floor(scale.y*former_height/100.0+0.5);
option=GetImageOption(image_info,"density");
if (option != (const char *) NULL)
{
- GeometryInfo
- geometry_info;
-
flags=ParseGeometry(option,&geometry_info);
image->resolution.x=geometry_info.rho;
image->resolution.y=geometry_info.sigma;
}
if (IsCommandOption(option) == MagickFalse)
{
- Image
- *images;
-
/*
Read input image.
*/
else
{
char
- filename[MagickPathExtent];
+ scene_filename[MagickPathExtent];
/*
Form filename for multi-part images.
*/
(void) InterpretImageFilename(image_info,(Image *) NULL,
- image_info->filename,(int) scene,filename,exception);
+ image_info->filename,(int) scene,scene_filename,exception);
if (LocaleCompare(filename,image_info->filename) == 0)
- (void) FormatLocaleString(filename,MagickPathExtent,"%s.%.20g",
- image_info->filename,(double) scene);
- images=ReadImages(image_info,filename,exception);
+ (void) FormatLocaleString(scene_filename,MagickPathExtent,
+ "%s.%.20g",image_info->filename,(double) scene);
+ images=ReadImages(image_info,scene_filename,exception);
}
status&=(images != (Image *) NULL) &&
(exception->severity < ErrorException);
if (strncmp(transfer_syntax,"1.2.840.10008.1.2",17) == 0)
{
int
- count,
subtype,
type;
subtype=0;
if (strlen(transfer_syntax) > 17)
{
- count=sscanf(transfer_syntax+17,".%d.%d",&type,&subtype);
+ count=(ssize_t) sscanf(transfer_syntax+17,".%d.%d",&type,
+ &subtype);
if (count < 1)
ThrowReaderException(CorruptImageError,
"ImproperImageHeader");
length;
ssize_t
- count,
offset;
if (status == MagickFalse)