Tachyon (current)  Current Main Branch
ppm.h
Go to the documentation of this file.
1 /*
2  * ppm.h - This file deals with PPM format image files (reading/writing)
3  *
4  * (C) Copyright 1994-2022 John E. Stone
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  * $Id: ppm.h,v 1.8 2022/02/18 17:55:28 johns Exp $
8  *
9  */
10 
11 /*
12  * For our puposes, we're interested only in the 3 byte per pixel 24 bit
13  * truecolor sort of file.. Probably won't implement any decent checking
14  * at this point, probably choke on things like the # comments..
15  */
16 
17 int readppm(const char *name, int *xres, int *yres, unsigned char **imgdata);
18 int writeppm(const char *name, int xres, int yres, unsigned char *imgdata);
19 int writeppm48(const char *name, int xres, int yres, unsigned char *imgdata);
20 
int writeppm48(const char *name, int xres, int yres, unsigned char *imgdata)
Definition: ppm.c:111
int readppm(const char *name, int *xres, int *yres, unsigned char **imgdata)
Definition: ppm.c:42
int writeppm(const char *name, int xres, int yres, unsigned char *imgdata)
Definition: ppm.c:85