gem5/splash2/codes/apps/raytrace/rltotiff/tiff_rgba_io.h
Sanchayan Maity 2fcc51c2c1 Commit splash2 benchmark
While at it also add the libpthread static library amd m5op_x86
for matrix multiplication test code as well.

Note that the splash2 benchmark code does not comply with gem5
coding guidelines. Academic guys never seem to follow 80 columns
and no whitespace guideline :(.
2017-04-26 20:50:15 +05:30

76 lines
2 KiB
C

/*************************************************************************/
/* */
/* Copyright (c) 1994 Stanford University */
/* */
/* All rights reserved. */
/* */
/* Permission is given to use, copy, and modify this software for any */
/* non-commercial purpose as long as this copyright notice is not */
/* removed. All other uses, including redistribution in whole or in */
/* part, are forbidden without prior written permission. */
/* */
/* This software is provided with absolutely no warranty and no */
/* support. */
/* */
/*************************************************************************/
/********
*
* tiff_rgba_io.h
*
* Description:
* Describes the functions defined in tiff_gl_io.c.
*
*
*********/
#ifndef _TIFF_RGBA_IO_
#define _TIFF_RGBA_IO_
#ifdef __cplusplus
extern "C" {
#endif
/******
*
* tiff_save_image
*
* Arguments:
* char *filename - name of TIFF image target file
* long *pixels - 32-bit r,g,b,a image
* long width - image width
* long height - image height
*
* Description:
* Stores the pixels into the given file name as a TIFF file.
*
******/
long tiff_save_rgba(char *, long *, long, long);
/******
*
* tiff_save_gl_canvas
*
* Arguments:
* char *filename - name of TIFF image target file
* long **pixels - 32-bit r,g,b,a image
* long *width - image width
* long *height - image height
*
* Description:
* Loads the pixels from the named TIFF file.
*
******/
long tiff_load_rgba(char *, long **, long *, long *);
#ifdef __cplusplus
}
#endif
#endif