break;
index=ConstrainColormapIndex(image,(size_t) c);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
SetOpacityPixelComponent(q,(ssize_t) index == opacity ?
TransparentOpacity : OpaqueOpacity);
x++;
if (bit == 8)
bit=0;
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
pixel=(size_t) ((GETJSAMPLE(*p) ^ 0x80) << 4);
index=ConstrainColormapIndex(image,pixel);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
{
index=ConstrainColormapIndex(image,(size_t) GETJSAMPLE(*p));
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
p++;
}
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
break;
ThrowReaderException(CorruptImageError,"CorruptImage");
index=(IndexPacket) (mask-(((*ptr) & (mask << bit)) >> bit));
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
if (bit)
bit-=bits_per_pixel;
else
if (image->storage_class == PseudoClass && image->colormap != NULL)
{
- for (i=0; i<image->colors; i++)
+ for (i=0; i < (ssize_t) image->colors; i++)
{
LBR16RGBOPixelPacketComponent(image->colormap[i]);
}
if (image->storage_class == PseudoClass && image->colormap != NULL)
{
- for (i=0; i<image->colors; i++)
+ for (i=0; i < (ssize_t) image->colors; i++)
{
LBR08RGBOPixelPacketComponent(image->colormap[i]);
}
if (image->storage_class == PseudoClass && image->colormap != NULL)
{
- for (i=0; i<image->colors; i++)
+ for (i=0; i < (ssize_t) image->colors; i++)
{
LBR04RGBOPixelPacketComponent(image->colormap[i]);
}
if (image->storage_class == PseudoClass && image->colormap != NULL)
{
- for (i=0; i<image->colors; i++)
+ for (i=0; i < (ssize_t) image->colors; i++)
{
LBR02RGBOPixelPacketComponent(image->colormap[i]);
}
if (image->storage_class == PseudoClass && image->colormap != NULL)
{
- for (i=0; i<image->colors; i++)
+ for (i=0; i < (ssize_t) image->colors; i++)
{
LBR01RGBOPixelPacketComponent(image->colormap[i]);
}
SetIndexPixelComponent(indexes+x,ScaleQuantumToChar(pixel));
else
SetIndexPixelComponent(indexes+x,ScaleQuantumToShort(pixel));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
if (image->depth == 1)
{
{
SetIndexPixelComponent(indexes+x,(((unsigned char) pixel) &
(0x01 << (7-bit))) != 0 ? 0 : 255);
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
q++;
x++;
{
index=((*p) & (0x80 >> bit) ? 0x01 : 0x00);
SetIndexPixelComponent(indexes+x+bit,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
p++;
{
index=((*p) & (0x80 >> bit) ? 0x01 : 0x00);
SetIndexPixelComponent(indexes+x+bit,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
p++;
{
index=ConstrainColormapIndex(image,(*p >> 6) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
index=ConstrainColormapIndex(image,(*p >> 4) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
index=ConstrainColormapIndex(image,(*p >> 2) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
index=ConstrainColormapIndex(image,(*p) & 0x3);
SetIndexPixelComponent(indexes+x+1,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
{
index=ConstrainColormapIndex(image,(*p >> 6) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
if ((image->columns % 4) >= 1)
{
index=ConstrainColormapIndex(image,(*p >> 4) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
if ((image->columns % 4) >= 2)
{
index=ConstrainColormapIndex(image,(*p >> 2) & 0x3);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
}
{
index=ConstrainColormapIndex(image,(*p >> 4) & 0x0f);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
index=ConstrainColormapIndex(image,(*p) & 0x0f);
SetIndexPixelComponent(indexes+x+1,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
{
index=ConstrainColormapIndex(image,(*p >> 4) & 0x0f);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
{
index=ConstrainColormapIndex(image,*p);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
p++;
q++;
}
index=ConstrainColormapIndex(image,XGetPixel(ximage,(int) x,
(int) y));
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
if (SyncAuthenticPixels(image,exception) == MagickFalse)
if (index < 0)
index+=(ssize_t) image->colors;
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
{
index=(IndexPacket) pixels[(ssize_t) GetIndexPixelComponent(indexes+x)];
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
status=MagickFalse;
{
index=(IndexPacket) (*p++);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
break;
threshold=(MagickRealType) QuantumRange*o4[(x%4)+4*(y%4)];
index=(IndexPacket) (intensity <= threshold ? 0 : 1);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
}
index=(IndexPacket) ((MagickRealType) PixelIntensityToQuantum(q) <=
threshold ? 0 : 1);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
if (!SyncAuthenticPixels(image,&image->exception))
index=PushColormapIndex(image,(size_t) GetIndexPixelComponent(indexes+x),
&range_exception);
if (image->matte == MagickFalse)
- SetRGBPixelComponent(q,image->colormap+index)
+ SetRGBPixelComponent(q,image->colormap+(ssize_t) index)
else
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
0x00 : 0x01);
SetIndexPixelComponent(indexes+x+bit,PushColormapIndex(image,
pixel,&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x+bit));
q++;
}
0x00 : 0x01);
SetIndexPixelComponent(indexes+x+bit,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x+bit));
q++;
}
pixel=(unsigned char) ((*p >> 4) & 0xf);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
q++;
pixel=(unsigned char) ((*p) & 0xf);
SetIndexPixelComponent(indexes+x+1,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x+1));
p++;
q++;
pixel=(unsigned char) ((*p++ >> 4) & 0xf);
SetIndexPixelComponent(indexes+x+bit,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x+bit));
q++;
}
p=PushCharPixel(p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum((MagickRealType) QuantumRange*
HalfToSinglePrecision(pixel)),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
p=PushShortPixel(endian,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
p=PushFloatPixel(&quantum_state,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum(pixel),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
p=PushLongPixel(endian,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
p=PushDoublePixel(&quantum_state,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum(pixel),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
p=PushQuantumPixel(&quantum_state,image->depth,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p+=quantum_info->pad;
q++;
pixel=(unsigned char) ((*p >> 4) & 0xf);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
pixel=(unsigned char) ((*p) & 0xf);
SetOpacityPixelComponent(q,QuantumRange-ScaleAnyToQuantum(pixel,
p=PushCharPixel(p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushCharPixel(p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ScaleCharToQuantum(pixel));
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum((MagickRealType) QuantumRange*
HalfToSinglePrecision(pixel)),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushShortPixel(endian,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ClampToQuantum(
p=PushShortPixel(endian,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushShortPixel(endian,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ScaleShortToQuantum(pixel));
p=PushFloatPixel(&quantum_state,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum(pixel),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushFloatPixel(&quantum_state,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ClampToQuantum(pixel));
p=PushLongPixel(endian,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushLongPixel(endian,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ScaleLongToQuantum(pixel));
p=PushDoublePixel(&quantum_state,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,
ClampToQuantum(pixel),&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushDoublePixel(&quantum_state,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ClampToQuantum(pixel));
p=PushQuantumPixel(&quantum_state,image->depth,p,&pixel);
SetIndexPixelComponent(indexes+x,PushColormapIndex(image,pixel,
&range_exception));
- SetRGBOPixelComponent(q,image->colormap+
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t)
GetIndexPixelComponent(indexes+x));
p=PushQuantumPixel(&quantum_state,image->depth,p,&pixel);
SetOpacityPixelComponent(q,QuantumRange-ScaleAnyToQuantum(pixel,
GetPseudoRandomValue(random_info[id]));
index=(IndexPacket) (intensity <= threshold.index ? 0 : 1);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,image->colormap+index);
+ SetRGBOPixelComponent(q,image->colormap+(ssize_t) index);
q++;
}
sync=SyncCacheViewAuthenticPixels(image_view,exception);
{
index=(IndexPacket) XGetPixel(ximage,x,y);
SetIndexPixelComponent(indexes+x,index);
- SetRGBOPixelComponent(q,composite_image->colormap+index);
+ SetRGBOPixelComponent(q,composite_image->colormap+(ssize_t)
+ index);
q++;
}
if (SyncCacheViewAuthenticPixels(composite_view,exception) == MagickFalse)