TGA_EXT_LEN
char extbuf[TGA_EXT_LEN];
if (file.ReadAt(extoffset, extbuf, TGA_EXT_LEN) == TGA_EXT_LEN) {
if (extsize < TGA_EXT_LEN) {