Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Macros | |
#define | IMAGENOERR 0 |
no error More... | |
#define | IMAGEBADFILE 1 |
can't find or can't open the file More... | |
#define | IMAGEUNSUP 2 |
the image file is an unsupported format More... | |
#define | IMAGEALLOCERR 3 |
not enough remaining memory to load this image More... | |
#define | IMAGEREADERR 4 |
failed read, short reads etc More... | |
#define | IMAGEWRITEERR 5 |
failed write, short writes etc More... | |
#define | IMAGENULLDATA 6 |
image to write was a null pointer More... | |
Functions | |
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) |
float * | image_crop_rgb96f (int xres, int yres, float *fimg, int szx, int szy, int sx, int sy) |
unsigned char * | image_crop_rgb24 (int xres, int yres, unsigned char *img, int szx, int szy, int sx, int sy) |
#define IMAGEALLOCERR 3 |
#define IMAGEBADFILE 1 |
can't find or can't open the file
Definition at line 17 of file imageio.h.
Referenced by readppm(), readtga(), writeppm(), writeppm48(), and writepsd48().
#define IMAGENOERR 0 |
no error
Definition at line 16 of file imageio.h.
Referenced by createtgafile(), fakeimage(), readimage(), readppm(), readtga(), writebmp(), writeppm(), writeppm48(), writepsd48(), writergb(), and writetga().
#define IMAGENULLDATA 6 |
image to write was a null pointer
Definition at line 22 of file imageio.h.
Referenced by writeimage().
#define IMAGEREADERR 4 |
failed read, short reads etc
Definition at line 20 of file imageio.h.
Referenced by readimage(), readppm(), and readtga().
#define IMAGEUNSUP 2 |
the image file is an unsupported format
Definition at line 18 of file imageio.h.
Referenced by readimage(), readjpeg(), readpng(), readppm(), readtga(), writeimage(), writejpeg(), and writepng().
#define IMAGEWRITEERR 5 |
failed write, short writes etc
Definition at line 21 of file imageio.h.
Referenced by createtgafile(), writeppm(), writeppm48(), and writetga().
void gamma_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg, | ||
float | gamma | ||
) |
unsigned char* image_crop_rgb24 | ( | int | xres, |
int | yres, | ||
unsigned char * | img, | ||
int | szx, | ||
int | szy, | ||
int | sx, | ||
int | sy | ||
) |
Definition at line 222 of file imageio.c.
Referenced by renderio().
float* image_crop_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg, | ||
int | szx, | ||
int | szy, | ||
int | sx, | ||
int | sy | ||
) |
Definition at line 196 of file imageio.c.
Referenced by renderio().
unsigned char* image_rgb48be_from_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg | ||
) |
Definition at line 248 of file imageio.c.
Referenced by writeimage().
unsigned char* image_rgb48bepl_from_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg | ||
) |
Definition at line 282 of file imageio.c.
Referenced by writeimage().
void minmax_rgb96f | ( | int | xres, |
int | yres, | ||
const float * | fimg, | ||
float * | min, | ||
float * | max | ||
) |
Definition at line 123 of file imageio.c.
Referenced by normalize_rgb96f().
void normalize_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg | ||
) |
int readimage | ( | rawimage * | ) |
Definition at line 56 of file imageio.c.
References fakeimage(), IMAGENOERR, IMAGEREADERR, IMAGEUNSUP, MSG_0, readjpeg(), readpng(), readppm(), readtga(), rt_mynode(), and rt_ui_message().
Referenced by LoadRawImage().
int writeimage | ( | char * | name, |
int | xres, | ||
int | yres, | ||
void * | imgdata, | ||
int | imgbufferformat, | ||
int | fileformat | ||
) |
Definition at line 321 of file imageio.c.
References image_rgb24_from_rgb96f(), image_rgb48be_from_rgb96f(), image_rgb48bepl_from_rgb96f(), IMAGENULLDATA, IMAGEUNSUP, RT_FORMAT_JPEG, RT_FORMAT_PNG, RT_FORMAT_PPM, RT_FORMAT_PPM48, RT_FORMAT_PSD48, RT_FORMAT_SGIRGB, RT_FORMAT_TARGA, RT_FORMAT_WINBMP, writebmp(), writejpeg(), writepng(), writeppm(), writeppm48(), writepsd48(), writergb(), and writetga().
Referenced by renderio().