diff options
author | goodale <goodale@eff87b29-5268-4891-90a3-a07138403961> | 2000-10-29 21:20:22 +0000 |
---|---|---|
committer | goodale <goodale@eff87b29-5268-4891-90a3-a07138403961> | 2000-10-29 21:20:22 +0000 |
commit | 86626af0009e82ee413d21d62dc7df18696f3bc9 (patch) | |
tree | 92f42c4c76e5e407cb276d71fa0ad83e8fd545a4 | |
parent | f0442a0a3a79f05014d0ef36c2fa91896b9381bf (diff) |
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
-rw-r--r-- | src/IOJpeg.h | 24 |
1 files changed, 24 insertions, 0 deletions
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" |