Logo Search packages:      
Sourcecode: tachyon version File versions  Download package

imageio.h

/*
 *  imageio.h - This file deals with reading/writing image files 
 *
 *  $Id: imageio.h,v 1.7 2007/02/13 07:29:54 johns Exp $
 */ 

/* For our puposes, we're interested only in the 3 byte per pixel 24 bit
   truecolor sort of file.. */

#define IMAGENOERR     0  /* no error */
#define IMAGEBADFILE   1  /* can't find or can't open the file */
#define IMAGEUNSUP     2  /* the image file is an unsupported format */
#define IMAGEALLOCERR  3  /* not enough remaining memory to load this image */
#define IMAGEREADERR   4  /* failed read, short reads etc */
#define IMAGEWRITEERR  5  /* failed write, short writes etc */
#define IMAGENULLDATA  6  /* image to write was a null pointer */

int readimage(rawimage *);
int writeimage(char * name, int xres, int yres, 
               void *imgdata, int imgbufferformat, int fileformat);
void minmax_rgb96f(int xres, int yres, const float *fimg, 
                   float *min, float *max);
void normalize_rgb96f(int xres, int yres, float *fimg);
void gamma_rgb96f(int xres, int yres, float *fimg, float gamma);
unsigned char * image_rgb48be_from_rgb96f(int xres, int yres, float *fimg);
unsigned char * image_rgb48bepl_from_rgb96f(int xres, int yres, float *fimg);


Generated by  Doxygen 1.6.0   Back to index