Tachyon (current)  Current Main Branch
Functions
ppm.h File Reference

Go to the source code of this file.

Functions

int readppm (const char *name, int *xres, int *yres, unsigned char **imgdata)
 
int writeppm (const char *name, int xres, int yres, unsigned char *imgdata)
 
int writeppm48 (const char *name, int xres, int yres, unsigned char *imgdata)
 

Function Documentation

◆ readppm()

int readppm ( const char *  name,
int *  xres,
int *  yres,
unsigned char **  imgdata 
)

Definition at line 42 of file ppm.c.

References getint(), IMAGEBADFILE, IMAGENOERR, IMAGEREADERR, and IMAGEUNSUP.

Referenced by readimage().

◆ writeppm()

int writeppm ( const char *  name,
int  xres,
int  yres,
unsigned char *  imgdata 
)

Definition at line 85 of file ppm.c.

References IMAGEBADFILE, IMAGENOERR, and IMAGEWRITEERR.

Referenced by writeimage().

◆ writeppm48()

int writeppm48 ( const char *  name,
int  xres,
int  yres,
unsigned char *  imgdata 
)

Definition at line 111 of file ppm.c.

References IMAGEBADFILE, IMAGENOERR, and IMAGEWRITEERR.

Referenced by writeimage().