*png_pixels;
volatile int
+ image_colors,
ping_bit_depth,
ping_color_type,
ping_interlace_method,
ping_num_trans;
volatile size_t
- image_colors,
image_depth,
old_bit_depth;
size_t
- number_colors,
quality,
rowbytes,
save_image_depth;
int
+ number_colors,
number_opaque,
number_semitransparent,
number_transparent,
" Enter BUILD_PALETTE:");
image->colors=GetNumberColors(image,(FILE *) NULL,&image->exception);
- image_colors=image->colors;
+ image_colors=(int) image->colors;
if (logging != MagickFalse)
{
else
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " image has %d colors",(int)image_colors);
+ " image has %d colors",image_colors);
}
/*
if (n != (ssize_t) image_colors)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" image_colors (%d) and n (%d) don't match",
- (int) image_colors, n);
+ image_colors, n);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" AcquireImageColormap");
{
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" image->colors=%d (%d)",
- (int) image->colors, (int) image_colors);
+ (int) image->colors, image_colors);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Update the pixel indexes");
quantum_info = (QuantumInfo *) NULL;
number_colors=0;
- image_colors=image->colors;
+ image_colors=(int) image->colors;
image_matte=image->matte;
mng_info->IsPalette=image->storage_class == PseudoClass &&
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Setting up PLTE chunk with %d colors (%d)",
- (int) number_colors, (int) image_colors);
+ number_colors, image_colors);
for (i=0; i < (ssize_t) number_colors; i++)
{
image_depth=MAGICKCORE_QUANTUM_DEPTH;
if (image_colors == 0 || image_colors-1 > MaxColormapSize)
- image_colors=one << image_depth;
+ image_colors=(int) (one << image_depth);
if (image_depth > 8)
ping_bit_depth=16;
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Setting up PLTE chunk with %d colors",
- (int) number_colors);
+ number_colors);
ping_have_PLTE=MagickTrue;
}
if (ping_color_type == 3 && ping_have_PLTE != MagickFalse)
{
- png_set_PLTE(ping,ping_info,palette,(int) number_colors);
+ png_set_PLTE(ping,ping_info,palette,number_colors);
if (logging != MagickFalse)
{