Debian Codegraph @

converter/pbm/pbmtoppa/ppapbm.h

raw
1 /* pbm.h
2 * Copyright (c) 1998 Tim Norman. See LICENSE for details
3 * 2-25-98
4 *
5 * Mar 18, 1998 Jim Peterson <[email protected]>
6 *
7 * Restructured to encapsulate more of the PBM handling.
8 */
9 #ifndef _PBM_H
10 #define _PBM_H
11
12 #include <stdio.h>
13
14 typedef struct
15 {
16 FILE* fptr;
17 enum { none, P1, P4 } version;
18 int width, height;
19 int current_line;
20 void *revdata;
21 int unread;
22 } pbm_stat;
23
24 int make_pbm_stat(pbm_stat*,FILE*);
25 int pbm_readline(pbm_stat*,unsigned char*);
26 /* reads a single line into char* */
27 void pbm_unreadline(pbm_stat*,void*); /* pushes a single line back */
28
29 #endif