Tachyon (current)
Current Main Branch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "parallel.h"
#include "util.h"
#include "imageio.h"
#include "ppm.h"
#include "psd.h"
#include "tgafile.h"
#include "jpeg.h"
#include "pngfile.h"
#include "sgirgb.h"
#include "winbmp.h"
#include "ui.h"
Go to the source code of this file.
Macros | |
#define | TACHYON_INTERNAL 1 |
Functions | |
static int | fakeimage (char *name, int *xres, int *yres, unsigned char **imgdata) |
int | readimage (rawimage *img) |
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_rgb24_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) |
unsigned char * | image_rgb48be_from_rgb96f (int xres, int yres, float *fimg) |
unsigned char * | image_rgb48bepl_from_rgb96f (int xres, int yres, float *fimg) |
int | writeimage (char *name, int xres, int yres, void *img, int imgbufferformat, int fileformat) |
|
static |
Definition at line 35 of file imageio.c.
References IMAGENOERR, MSG_0, rt_mynode(), and rt_ui_message().
Referenced by readimage().
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_rgb24_from_rgb96f | ( | int | xres, |
int | yres, | ||
float * | fimg | ||
) |
Definition at line 166 of file imageio.c.
Referenced by writeimage().
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 * | img | ) |
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 * | img, | ||
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().