epf
if (output == NULL) { FREE(data); return epf("outofmem", "Out of memory"); }
return epf("not HDR", "Corrupt HDR image");
if (!valid) return epf("unsupported format", "Unsupported HDR format");
if (strncmp(token, "-Y ", 3)) return epf("unsupported data layout", "Unsupported HDR format");
if (strncmp(token, "+X ", 3)) return epf("unsupported data layout", "Unsupported HDR format");
if (len != width) { FREE(hdr_data); FREE(scanline); return epf("invalid decoded scanline length", "corrupt HDR"); }
if (!f) return epf("can't fopen", "Unable to open file");
return epf("unknown image type", "Image not of any known type, or corrupt");
return epf("unknown image type", "Image not of any known type, or corrupt");