TGA_DESC_BITS76
if (imagespec.descriptor & TGA_DESC_BITS76)
static_cast<int>(imagespec.descriptor & TGA_DESC_BITS76));