summaryrefslogtreecommitdiff
path: root/src/pnm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pnm.h')
-rw-r--r--src/pnm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pnm.h b/src/pnm.h
new file mode 100644
index 0000000..d2e9d01
--- /dev/null
+++ b/src/pnm.h
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+struct pnm {
+ int format;
+ int width;
+ int height;
+ int maxval;
+};
+
+
+int readPnmHeader(FILE *fp, struct pnm *h);
+
+int writePnmHeader(FILE *fp, const struct pnm *h);