From 86626af0009e82ee413d21d62dc7df18696f3bc9 Mon Sep 17 00:00:00 2001 From: goodale Date: Sun, 29 Oct 2000 21:20:22 +0000 Subject: Adding prototypes for routines from JPEG.c to header. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusIO/IOJpeg/trunk@26 eff87b29-5268-4891-90a3-a07138403961 --- src/IOJpeg.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src') diff --git a/src/IOJpeg.h b/src/IOJpeg.h index 920dc12..61a7ff6 100644 --- a/src/IOJpeg.h +++ b/src/IOJpeg.h @@ -49,6 +49,30 @@ int IOJpeg_Write1D (cGH *GH, int index, const char *alias); int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *fid); +int WriteJPEGToFileRGB(int nx, /* width of image in pixels */ + int ny, /* height of the image in pixels */ + void *data, /* buffer containing image data */ + int Quality, /* Integer from 0 to 100 */ + FILE* outfile); /* name of file to store in */ + +int WriteJPEGToMemoryRGB(int nx,int ny, void *data, int Quality, char *memorybuffer,int bufsize); + +void AutoColorDataSlice(int nx,int ny, /* size of the image x & y */ + CCTK_REAL *datain, /* 2D slice of data input */ + unsigned char *dataout, /* RGB image data output */ + CCTK_REAL min,CCTK_REAL max, /* range of the entire 3D dataset + This could be ranged based + on the values of the slice, + but then that would be a + bit untrustworthy. Its + best to pass in the + range for the entire + dataset or a pre-defined + fixed range. It does + handle clamping of the + range. */ + CCTK_REAL bias, + int rdfac); #ifdef __cplusplus } // extern "C" -- cgit v1.2.3