switch (image->depth)
{
case 32:
+ default:
{
pixel->index=(MagickRealType) ConstrainColormapIndex(image,(ssize_t)
(((size_t) *p << 24) | ((size_t) *(p+1) << 16) |
p++;
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),
- CorruptImageError,"ImageDepthNotSupported","`%s'",image->filename);
}
switch (image->depth)
{
break;
}
case 32:
+ default:
{
unsigned int
quantum;
}
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),
- CorruptImageError,"ImageDepthNotSupported","`%s'",image->filename);
}
*length=((size_t) *p++)+1;
return;
break;
}
case 32:
+ default:
{
unsigned int
quantum;
}
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),CorruptImageError,
- "ImageDepthNotSupported","`%s'",image->filename);
}
*length=(size_t) (*p++)+1;
}
(image->compression == UndefinedCompression) ||
(image->colorspace == UndefinedColorspace) ||
(image->columns == 0) || (image->rows == 0) ||
- (image->depth == 0) || (image->depth > 64))
+ (image->depth == 0) || (image->depth > 32))
{
if (profiles != (LinkedListInfo *) NULL)
profiles=DestroyLinkedList(profiles,RelinquishMagickMemory);
p=colormap;
switch (image->depth)
{
- default:
- {
- colormap=(unsigned char *) RelinquishMagickMemory(colormap);
- ThrowMIFFException(CorruptImageError,"ImageDepthNotSupported");
- break;
- }
case 8:
{
unsigned char
break;
}
case 32:
+ default:
{
unsigned int
long_pixel;
switch (image->depth)
{
case 32:
+ default:
{
*pixels++=(unsigned char) (value >> 24);
*pixels++=(unsigned char) (value >> 16);
*pixels++=(unsigned char) value;
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),
- CorruptImageError,"ImageDepthNotSupported","`%s'",image->filename);
}
switch (image->depth)
{
case 32:
+ default:
{
unsigned int
long_value;
}
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),
- CorruptImageError,"ImageDepthNotSupported","`%s'",image->filename);
}
*pixels++=(unsigned char) length;
return(pixels);
switch (image->depth)
{
case 32:
+ default:
{
unsigned int
value;
}
break;
}
- default:
- (void) ThrowMagickException(exception,GetMagickModule(),CorruptImageError,
- "ImageDepthNotSupported","`%s'",image->filename);
}
*pixels++=(unsigned char) length;
return(pixels);
if ((image->storage_class == PseudoClass) &&
(image->colors > (size_t) (GetQuantumRange(image->depth)+1)))
(void) SetImageStorageClass(image,DirectClass,exception);
- image->depth=image->depth <= 8 ? 8UL : image->depth <= 16 ? 16UL :
- image->depth <= 32 ? 32UL : 64UL;
+ image->depth=image->depth <= 8 ? 8UL : image->depth <= 16 ? 16UL : 32UL;
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
{
switch (quantum_info->depth)
{
- default:
- ThrowWriterException(CorruptImageError,"ImageDepthNotSupported");
case 32:
+ default:
{
register unsigned int
long_pixel;