*colormap;
register const IndexPacket
- *indices;
+ *indexes;
register const PixelPacket
*p;
p=GetVirtualPixels(image,0,y,image->columns,1,&image->exception);
if (p == (const PixelPacket *) NULL)
break;
- indices=GetVirtualIndexQueue(image);
+ indexes=GetVirtualIndexQueue(image);
if (image->matte != MagickFalse)
for (x=0; x < (long) image->columns; x++)
{
- marker[(int) indices[x]]=MagickTrue;
- opacity[(int) indices[x]]=GetOpacityPixelComponent(p);
- if (indices[x] > top_used)
- top_used=indices[x];
+ marker[(int) indexes[x]]=MagickTrue;
+ opacity[(int) indexes[x]]=GetOpacityPixelComponent(p);
+ if (indexes[x] > top_used)
+ top_used=indexes[x];
p++;
}
else
for (x=0; x < (long) image->columns; x++)
{
- marker[(int) indices[x]]=MagickTrue;
- if (indices[x] > top_used)
- top_used=indices[x];
+ marker[(int) indexes[x]]=MagickTrue;
+ if (indexes[x] > top_used)
+ top_used=indexes[x];
}
}
*p;
register IndexPacket
- *indices;
+ *indexes;
register long
i,
for (pass=0; pass < num_passes; pass++)
{
IndexPacket
- index;
+ indice;
Quantum
*quantum_scanline;
q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
if (q == (PixelPacket *) NULL)
break;
- indices=GetAuthenticIndexQueue(image);
+ indexes=GetAuthenticIndexQueue(image);
p=png_pixels+row_offset;
r=quantum_scanline;
switch (ping_bit_depth)
r=quantum_scanline;
for (x=0; x < (long) image->columns; x++)
{
- index=(IndexPacket) (*r++);
- indices[x]=index;
- q->red=image->colormap[index].red;
- q->green=image->colormap[index].green;
- q->blue=image->colormap[index].blue;
+ indice=(IndexPacket) (*r++);
+ indexes[x]=indice;
+ q->red=image->colormap[indice].red;
+ q->green=image->colormap[indice].green;
+ q->blue=image->colormap[indice].blue;
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
break;
}
if (quantum_info != (QuantumInfo *) NULL)
quantum_info=DestroyQuantumInfo(quantum_info);
+ if (image->storage_class == PseudoClass)
+ {
+ unsigned long
+ matte;
+
+ matte=image->matte;
+ image->matte=MagickFalse;
+ (void) SyncImage(image);
+ image->matte=matte;;
+ }
png_read_end(ping,ping_info);
if (image_info->number_scenes != 0 && mng_info->scenes_found-1 <
q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
if (q == (PixelPacket *) NULL)
break;
- indices=GetAuthenticIndexQueue(image);
+ indexes=GetAuthenticIndexQueue(image);
for (x=(long) image->columns-1; x >= 0; x--)
{
q=GetAuthenticPixels(image,0,y,image->columns,1,exception);
if (q == (PixelPacket *) NULL)
break;
- indices=GetAuthenticIndexQueue(image);
+ indexes=GetAuthenticIndexQueue(image);
if (storage_class == PseudoClass)
{
if ((int) ping_color_type == PNG_COLOR_TYPE_PALETTE)
for (x=0; x < (long) image->columns; x++)
{
- indexpacket=indices[x];
+ indexpacket=indexes[x];
if (indexpacket < ping_num_trans)
q->opacity=ScaleCharToQuantum((unsigned char)
(255-ping_trans_alpha[(long) indexpacket]));
else if (ping_color_type == PNG_COLOR_TYPE_GRAY)
for (x=0; x < (long) image->columns; x++)
{
- indexpacket=indices[x];
+ indexpacket=indexes[x];
q->red=image->colormap[(long) indexpacket].red;
q->green=q->red;
q->blue=q->red;
q+=(large_image->columns-image->columns);
for (x=(long) image->columns-1; x >= 0; x--)
{
- /* TO DO: get color as function of indices[x] */
+ /* TO DO: get color as function of indexes[x] */
/*
if (image->storage_class == PseudoClass)
{
*quantum_info;
register IndexPacket
- *indices;
+ *indexes;
register long
i,
p=GetAuthenticPixels(image,0,y,image->columns,1,exception);
if (p == (PixelPacket *) NULL)
break;
- indices=GetAuthenticIndexQueue(image);
+ indexes=GetAuthenticIndexQueue(image);
for (x=0; x < (long) image->columns; x++)
{
if (p->opacity != OpaqueOpacity)
{
- indices[x]=(IndexPacket) (number_colors-1);
- trans_alpha[(long) indices[x]]=(png_byte) (255-
+ indexes[x]=(IndexPacket) (number_colors-1);
+ trans_alpha[(long) indexes[x]]=(png_byte) (255-
ScaleQuantumToChar(GetOpacityPixelComponent(p)));
}
p++;
trans[256];
register const IndexPacket
- *packet_indices;
+ *packet_indexes;
/*
Identify which colormap entry is transparent.
p=GetVirtualPixels(image,0,y,image->columns,1,exception);
if (p == (const PixelPacket *) NULL)
break;
- packet_indices=GetVirtualIndexQueue(image);
+ packet_indexes=GetVirtualIndexQueue(image);
for (x=0; x < (long) image->columns; x++)
{
if (p->opacity != OpaqueOpacity)
IndexPacket
packet_index;
- packet_index=packet_indices[x];
+ packet_index=packet_indexes[x];
assert((unsigned long) packet_index < number_colors);
if (trans[(long) packet_index] != 256)
{