*image;
int
- c,
- code;
+ c;
#if defined(MAGICKCORE_LZMA_DELEGATE)
lzma_stream
c=ReadBlobByte(image);
if (c == EOF)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
- code=0;
*id='\0';
(void) ResetMagickMemory(keyword,0,sizeof(keyword));
version=0.0;
#if defined(MAGICKCORE_BZLIB_DELEGATE)
case BZipCompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&bzip_info,0,sizeof(bzip_info));
bzip_info.bzalloc=AcquireBZIPMemory;
bzip_info.bzfree=RelinquishBZIPMemory;
#if defined(MAGICKCORE_LZMA_DELEGATE)
case LZMACompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&allocator,0,sizeof(allocator));
allocator.alloc=AcquireLZMAMemory;
allocator.free=RelinquishLZMAMemory;
case LZWCompression:
case ZipCompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&zip_info,0,sizeof(zip_info));
zip_info.zalloc=AcquireZIPMemory;
zip_info.zfree=RelinquishZIPMemory;
lzma_info.avail_out=packet_size*image->columns;
do
{
+ int
+ code;
+
if (lzma_info.avail_in == 0)
{
lzma_info.next_in=compress_pixels;
#if defined(MAGICKCORE_BZLIB_DELEGATE)
case BZipCompression:
{
+ int
+ code;
+
if (version == 0)
{
MagickOffsetType
#if defined(MAGICKCORE_LZMA_DELEGATE)
case LZMACompression:
{
+ int
+ code;
+
code=lzma_code(&lzma_info,LZMA_FINISH);
if ((code != LZMA_STREAM_END) && (code != LZMA_OK))
status=MagickFalse;
case LZWCompression:
case ZipCompression:
{
+ int
+ code;
+
if (version == 0)
{
MagickOffsetType
*property,
*value;
- int
- code;
-
#if defined(MAGICKCORE_LZMA_DELEGATE)
lzma_allocator
allocator;
status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
if (status == MagickFalse)
return(status);
- code=0;
scene=0;
do
{
#if defined(MAGICKCORE_BZLIB_DELEGATE)
case BZipCompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&bzip_info,0,sizeof(bzip_info));
bzip_info.bzalloc=AcquireBZIPMemory;
bzip_info.bzfree=RelinquishBZIPMemory;
#if defined(MAGICKCORE_LZMA_DELEGATE)
case LZMACompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&allocator,0,sizeof(allocator));
allocator.alloc=AcquireLZMAMemory;
allocator.free=RelinquishLZMAMemory;
case LZWCompression:
case ZipCompression:
{
+ int
+ code;
+
(void) ResetMagickMemory(&zip_info,0,sizeof(zip_info));
zip_info.zalloc=AcquireZIPMemory;
zip_info.zfree=RelinquishZIPMemory;
quantum_type,pixels,exception);
do
{
+ int
+ code;
+
bzip_info.next_out=(char *) compress_pixels;
bzip_info.avail_out=(unsigned int) BZipMaxExtent(packet_size*
image->columns);
quantum_type,pixels,exception);
do
{
+ int
+ code;
+
lzma_info.next_out=compress_pixels;
lzma_info.avail_out=packet_size*image->columns;
code=lzma_code(&lzma_info,LZMA_RUN);
quantum_type,pixels,exception);
do
{
+ int
+ code;
+
zip_info.next_out=compress_pixels;
zip_info.avail_out=(uInt) ZipMaxExtent(packet_size*image->columns);
code=deflate(&zip_info,Z_SYNC_FLUSH);
#if defined(MAGICKCORE_BZLIB_DELEGATE)
case BZipCompression:
{
+ int
+ code;
+
for ( ; ; )
{
if (status == MagickFalse)
#if defined(MAGICKCORE_LZMA_DELEGATE)
case LZMACompression:
{
+ int
+ code;
+
for ( ; ; )
{
if (status == MagickFalse)
case LZWCompression:
case ZipCompression:
{
+ int
+ code;
+
for ( ; ; )
{
if (status == MagickFalse)