hdr_to_ldr
static stbi_uc *hdr_to_ldr(float *data, int x, int y, int comp);
return hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp);