25 #define RGBE_VALID_PROGRAMTYPE 0x01
26 #define RGBE_VALID_GAMMA 0x02
27 #define RGBE_VALID_EXPOSURE 0x04
30 #define RGBE_RETURN_SUCCESS 0
31 #define RGBE_RETURN_FAILURE -1
35 int RGBE_WriteHeader(FILE *fp,
const int width,
const int height,
const rgbe_header_info *info);
36 int RGBE_ReadHeader(FILE *fp,
int *width,
int *height,
rgbe_header_info *info);
40 int RGBE_WritePixels(FILE *fp,
const float *data,
const int numpixels);
41 int RGBE_ReadPixels(FILE *fp,
float *data,
const int numpixels);
45 int RGBE_WritePixels_RLE(FILE *fp,
const float *data,
const int scanline_width,
const int num_scanlines);
46 int RGBE_ReadPixels_RLE(FILE *fp,
float *data,
const int scanline_width,
const int num_scanlines);