diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-08-19 03:12:28 +0000 |
commit | 1fd361a1ea06e44286c213ca1f814f49306fdc43 (patch) | |
tree | 64c8c96cf54d8718847339a403e5e67b922e8c3f /converter/pbm/pbmtoppa/ppapbm.h | |
download | netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.gz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.tar.xz netpbm-mirror-1fd361a1ea06e44286c213ca1f814f49306fdc43.zip |
Create Subversion repository
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pbm/pbmtoppa/ppapbm.h')
-rw-r--r-- | converter/pbm/pbmtoppa/ppapbm.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/converter/pbm/pbmtoppa/ppapbm.h b/converter/pbm/pbmtoppa/ppapbm.h new file mode 100644 index 00000000..1ffc093b --- /dev/null +++ b/converter/pbm/pbmtoppa/ppapbm.h @@ -0,0 +1,29 @@ +/* pbm.h + * Copyright (c) 1998 Tim Norman. See LICENSE for details + * 2-25-98 + * + * Mar 18, 1998 Jim Peterson <jspeter@birch.ee.vt.edu> + * + * Restructured to encapsulate more of the PBM handling. + */ +#ifndef _PBM_H +#define _PBM_H + +#include <stdio.h> + +typedef struct +{ + FILE* fptr; + enum { none, P1, P4 } version; + int width, height; + int current_line; + void *revdata; + int unread; +} pbm_stat; + +int make_pbm_stat(pbm_stat*,FILE*); +int pbm_readline(pbm_stat*,unsigned char*); + /* reads a single line into char* */ +void pbm_unreadline(pbm_stat*,void*); /* pushes a single line back */ + +#endif |