ppm.c File Reference

Include dependency graph for ppm.c:

Go to the source code of this file.

Functions

static void skip_whitespace (unsigned char **data)
static void read_num (unsigned char **data, unsigned int *num)
int ppm_get_data (unsigned char *data, size_t dtsz, unsigned int *width, unsigned int *height)
int ppm_draw (unsigned char *data, size_t datasz, unsigned int sx, unsigned int sy, unsigned int maxwidth, unsigned int maxheight, putpixel_cb_t putpixel, void *vport)


Function Documentation

static void skip_whitespace unsigned char **  data  )  [static]
 

Definition at line 34 of file ppm.c.

Referenced by ppm_draw(), and ppm_get_data().

static void read_num unsigned char **  data,
unsigned int *  num
[static]
 

Definition at line 49 of file ppm.c.

Referenced by ppm_draw(), and ppm_get_data().

int ppm_get_data unsigned char *  data,
size_t  dtsz,
unsigned int *  width,
unsigned int *  height
 

Definition at line 59 of file ppm.c.

References read_num(), and skip_whitespace().

Here is the call graph for this function:

int ppm_draw unsigned char *  data,
size_t  datasz,
unsigned int  sx,
unsigned int  sy,
unsigned int  maxwidth,
unsigned int  maxheight,
putpixel_cb_t  putpixel,
void *  vport
 

Draw PPM pixmap

Parameters:
data Pointer to PPM data
datasz Maximum data size
sx Coordinate of upper left corner
sy Coordinate of upper left corner
maxwidth Maximum allowed width for picture
maxheight Maximum allowed height for picture
putpixel Putpixel function used to print bitmap

Definition at line 84 of file ppm.c.

References read_num(), and skip_whitespace().

Here is the call graph for this function:


Generated on Sun Jun 18 18:01:22 2006 for HelenOS Userspace (ia64) by  doxygen 1.4.6