Files
mips/src/jman/imageio.h
T
jens 26291bca3d - initial import
git-svn-id: http://moon:8086/svn/mips@1 a8ebac50-d88d-4704-bea3-6648445a41b3
2014-07-20 15:01:37 +00:00

34 lines
981 B
C

// ------------------------------------------------------------
// imageio.h
//
// Reading writing tiff images
//
// 12.03.2005, J.Ahrensfeld
// ------------------------------------------------------------
#ifndef IMAGEIO_H
#define IMAGEIO_H
#include "libsys.h"
#include "types.h"
#include "colortypes.h"
// ------------------------------------------------------------
typedef struct _image_t
{
UINT32 im_width, im_height, num_pixel, num_ch;
UINT64 *pColor_data;
} image_t;
// ------------------------------------------------------------
void ImageInit(image_t *pObj, int im_width, int im_height, int num_ch);
void ImageFree(image_t *pObj);
void ImageCopy(image_t *pSrc, image_t *pDst);
int ImageLoadTiff(image_t *pObj, char *filename);
int ImageSaveTiff(image_t *pObj, char *filename);
void ImageSetPixel(image_t *pObj, UINT32 u, UINT32 v, rgba_t color);
// ------------------------------------------------------------
#endif // IMAGEIO_H