*/
static void Hull(const ssize_t x_offset,const ssize_t y_offset,
- const size_t columns,const size_t rows,Quantum *f,Quantum *g,
- const int polarity)
+ const size_t columns,const size_t rows,const int polarity,Quantum *f,
+ Quantum *g)
{
MagickRealType
v;
for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
{
PixelChannel
- channel;
+ channel;
PixelTrait
despeckle_traits,
(void) ResetMagickMemory(buffer,0,length*sizeof(*buffer));
for (k=0; k < 4; k++)
{
- Hull(X[k],Y[k],image->columns,image->rows,pixel,buffer,1);
- Hull(-X[k],-Y[k],image->columns,image->rows,pixel,buffer,1);
- Hull(-X[k],-Y[k],image->columns,image->rows,pixel,buffer,-1);
- Hull(X[k],Y[k],image->columns,image->rows,pixel,buffer,-1);
+ Hull(X[k],Y[k],image->columns,image->rows,1,pixel,buffer);
+ Hull(-X[k],-Y[k],image->columns,image->rows,1,pixel,buffer);
+ Hull(-X[k],-Y[k],image->columns,image->rows,-1,pixel,buffer);
+ Hull(X[k],Y[k],image->columns,image->rows,-1,pixel,buffer);
}
j=(ssize_t) image->columns+2;
for (y=0; y < (ssize_t) image->rows; y++)
TIFFClose(tiff);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
+ quantum_info->endian=LSBEndian;
+ if (endian == FILLORDER_LSB2MSB)
+ quantum_info->endian=MSBEndian;
+ image->endian=quantum_info->endian;
if (sample_format == SAMPLEFORMAT_UINT)
status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat);
if (sample_format == SAMPLEFORMAT_INT)
}
if (image->storage_class == PseudoClass)
image->depth=GetImageDepth(image,exception);
- image->endian=MSBEndian;
- if (endian == FILLORDER_LSB2MSB)
- image->endian=LSBEndian;
if ((photometric == PHOTOMETRIC_LOGL) ||
(photometric == PHOTOMETRIC_MINISBLACK) ||
(photometric == PHOTOMETRIC_MINISWHITE))