generic S3TC DXT1 and DXT3 decoding functions