% March 2008 %
% %
% %
-% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
MagickBooleanType
status,
cubemap = MagickFalse,
- volume = MagickFalse,
- matte;
-
+ volume = MagickFalse;
+
CompressionType
compression;
DDSDecoder
*decoder;
+ PixelTrait
+ alpha_trait;
+
size_t
n, num_images;
compression = NoCompression;
if (dds_info.pixelformat.flags & DDPF_ALPHAPIXELS)
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
decoder = ReadUncompressedRGBA;
}
else
{
- matte = MagickTrue;
+ alpha_trait = UndefinedPixelTrait;
decoder = ReadUncompressedRGB;
}
}
{
case FOURCC_DXT1:
{
- matte = MagickFalse;
+ alpha_trait = UndefinedPixelTrait;
compression = DXT1Compression;
decoder = ReadDXT1;
break;
case FOURCC_DXT3:
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
compression = DXT3Compression;
decoder = ReadDXT3;
break;
case FOURCC_DXT5:
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
compression = DXT5Compression;
decoder = ReadDXT5;
break;
image=SyncNextImageInList(image);
}
- image->alpha_trait = matte;
+ image->alpha_trait=alpha_trait;
image->compression = compression;
image->columns = dds_info.width;
image->rows = dds_info.height;