/*************************************************************************
 * iopnm.h - homemade I/O procedures for PBM/PGM/PPM raw images
 *
 * $Id: iopnm.h,v 1.1 2005/12/02 22:22:15 ziad Exp $
 *
 * CopyrightŠINRIA 1999
 *
 * AUTHOR:
 * Gregoire Malandain (greg@sophia.inria.fr)
 * http://www.inria.fr/epidaure/personnel/malandain/
 * 
 * CREATION DATE: 
 * July, 6 1999
 *
 * ADDITIONS, CHANGES
 *
 * * Jul 15 1999 (Gregoire Malandain)
 *   add P6 (color) images. They are considered as 3D images with z=3.
 *
 */

#ifndef _iopnm_h_
#define _iopnm_h_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h> /* open, close */
#include <sys/stat.h> /* open, close */
#include <sys/types.h> /* open, close */
#include <string.h>


extern void *_readPnmImage( char *name, int *dimx, int *dimy, int *dimz );


extern void _writePnmImage( char *name, int x, int y, int z, void *buf );


extern void IoPnm_verbose ( );
extern void IoPnm_noverbose ( );

extern void IoPnm_WriteGreyAsColor();
extern void IoPnm_DontWriteGreyAsColor();

extern void IoPnm_SetMaxGreyValueTo255();
extern void IoPnm_DontSetMaxGreyValueTo255();

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* _iopnm_h_ */


syntax highlighted by Code2HTML, v. 0.9.1