default:
{
(void) FormatLocaleString(buffer,MagickPathExtent,
- "currentfile %.20g %.20g "PS3_NoCompression" ByteStreamDecodeFilter\n",
- (double) image->columns,(double) image->rows);
+ "currentfile %.20g %.20g " PS3_NoCompression
+ " ByteStreamDecodeFilter\n",(double) image->columns,(double)
+ image->rows);
break;
}
case FaxCompression:
case Group4Compression:
{
(void) FormatLocaleString(buffer,MagickPathExtent,
- "currentfile %.20g %.20g "PS3_FaxCompression" ByteStreamDecodeFilter\n",
- (double) image->columns,(double) image->rows);
+ "currentfile %.20g %.20g " PS3_FaxCompression
+ " ByteStreamDecodeFilter\n",(double) image->columns,(double)
+ image->rows);
break;
}
case LZWCompression:
{
(void) FormatLocaleString(buffer,MagickPathExtent,
- "currentfile %.20g %.20g "PS3_LZWCompression" ByteStreamDecodeFilter\n",
- (double) image->columns,(double) image->rows);
+ "currentfile %.20g %.20g " PS3_LZWCompression
+ " ByteStreamDecodeFilter\n",(double) image->columns,(double)
+ image->rows);
break;
}
case RLECompression:
{
(void) FormatLocaleString(buffer,MagickPathExtent,
- "currentfile %.20g %.20g "PS3_RLECompression" ByteStreamDecodeFilter\n",
- (double) image->columns,(double) image->rows);
+ "currentfile %.20g %.20g " PS3_RLECompression
+ " ByteStreamDecodeFilter\n",(double) image->columns,(double)
+ image->rows);
break;
}
case ZipCompression:
{
(void) FormatLocaleString(buffer,MagickPathExtent,
- "currentfile %.20g %.20g "PS3_ZipCompression" ByteStreamDecodeFilter\n",
- (double) image->columns,(double) image->rows);
+ "currentfile %.20g %.20g " PS3_ZipCompression
+ " ByteStreamDecodeFilter\n",(double) image->columns,(double)
+ image->rows);
break;
}
}
" /z exch def",
" /r exch def",
" /c exch def",
- " z "PS3_NoCompression" eq { /ASCII85Decode filter } if",
- " z "PS3_FaxCompression" eq",
+ " z " PS3_NoCompression " eq { /ASCII85Decode filter } if",
+ " z " PS3_FaxCompression " eq",
" {",
" <<",
- " /K "CCITTParam,
+ " /K " CCITTParam,
" /Columns c",
" /Rows r",
" >>",
" /CCITTFaxDecode filter",
" } if",
- " z "PS3_JPEGCompression" eq { /DCTDecode filter } if",
- " z "PS3_LZWCompression" eq { /LZWDecode filter } if",
- " z "PS3_RLECompression" eq { /RunLengthDecode filter } if",
- " z "PS3_ZipCompression" eq { /FlateDecode filter } if",
+ " z " PS3_JPEGCompression " eq { /DCTDecode filter } if",
+ " z " PS3_LZWCompression " eq { /LZWDecode filter } if",
+ " z " PS3_RLECompression " eq { /RunLengthDecode filter } if",
+ " z " PS3_ZipCompression " eq { /FlateDecode filter } if",
"} bind def",
"",
"/DirectClassImageDict",
"{",
- " colorspace "PS3_RGBColorspace" eq",
+ " colorspace " PS3_RGBColorspace " eq",
" {",
" /DeviceRGB setcolorspace",
" <<",
" /MultipleDataSources false",
" /ImageMatrix [columns 0 0 rows neg 0 rows]",
" /Decode",
- " compression "PS3_JPEGCompression" eq",
+ " compression " PS3_JPEGCompression " eq",
" { [1 0 1 0 1 0 1 0] }",
" { [0 1 0 1 0 1 0 1] }",
" ifelse",
" {",
" % RGB colormap.",
" /colormap colors 3 mul string def",
- " compression "PS3_NoCompression" eq",
+ " compression " PS3_NoCompression " eq",
" { currentfile /ASCII85Decode filter colormap readstring pop pop }",
" { currentfile colormap readstring pop pop }",
" ifelse",
"",
"/NonMaskedImageDict",
"{",
- " class "PS3_PseudoClass" eq",
+ " class " PS3_PseudoClass " eq",
" { PseudoClassImageDict }",
" { DirectClassImageDict }",
" ifelse",
#ifdef MAGICKCORE_ZLIB_DELEGATE
if (next_image->compression == ZipCompression)
{
- compressed_pixels=AcquireQuantumMemory(CHUNK,sizeof(*compressed_pixels));
+ compressed_pixels=(unsigned char *) AcquireQuantumMemory(CHUNK,
+ sizeof(*compressed_pixels));
if (compressed_pixels == (unsigned char *) NULL)
{
quantum_info=DestroyQuantumInfo(quantum_info);
return(compact_pixels);
}
-static MagickBooleanType WritePSDChannels(const PSDInfo *psd_info,
+static size_t WritePSDChannels(const PSDInfo *psd_info,
const ImageInfo *image_info,Image *image,Image *next_image,
MagickOffsetType size_offset,const MagickBooleanType separate,
ExceptionInfo *exception)
quantum;
quantum=PSDQuantum(count)+12;
- if ((quantum >= 12) && (quantum < length))
+ if ((quantum >= 12) && (quantum < (ssize_t) length))
{
if ((q+quantum < (datum+length-16)))
(void) CopyMagickMemory(q,q+quantum,length-quantum-(q-datum));
else
rounded_size=size;
(void) WritePSDSize(&psd_info,image,rounded_size,size_offset);
- layer_size_offsets=RelinquishMagickMemory(layer_size_offsets);
+ layer_size_offsets=(MagickOffsetType *) RelinquishMagickMemory(
+ layer_size_offsets);
/*
Remove the opacity mask from the registry
*/