Legacy DDS Support
Posted: 2014-09-01T00:20:00-07:00
Per this thread, I discovered that ImageMagick's DDS coder (dds.c) does not have support for legacy DDS files.
Specifically, the DDS_PIXELFORMAT structure allows for three legacy flags that are not handled by the coder:
Specifically, the DDS_PIXELFORMAT structure allows for three legacy flags that are not handled by the coder:
Without support for these flags, ImageMagick fails to convert legacy DDS files.DDPF_ALPHA (0x2)
Used in some older DDS files for alpha channel only uncompressed data (dwRGBBitCount contains the alpha channel bitcount; dwABitMask contains valid data)
DDPF_YUV (0x200)
Used in some older DDS files for YUV uncompressed data (dwRGBBitCount contains the YUV bit count; dwRBitMask contains the Y mask, dwGBitMask contains the U mask, dwBBitMask contains the V mask)
DDPF_LUMINANCE (0x20000)
Used in some older DDS files for single channel color uncompressed data (dwRGBBitCount contains the luminance channel bit count; dwRBitMask contains the channel mask). Can be combined with DDPF_ALPHAPIXELS for a two channel DDS file.