summaryrefslogtreecommitdiff
path: root/src/wbmp.h
diff options
context:
space:
mode:
authorpierre <none@none>2006-04-05 15:41:22 +0000
committerpierre <none@none>2006-04-05 15:41:22 +0000
commitdd92c2b0df76a5400755664ff2e777a719cb31f2 (patch)
treeae2e51a145ac23af137ffadd47bc92385e80665d /src/wbmp.h
parent7232c8a82a90dd90de35a98cd9f330727182ea88 (diff)
downloadlibgd-dd92c2b0df76a5400755664ff2e777a719cb31f2.tar.gz
- sync to 1.8.3GD_1_8_3
Diffstat (limited to 'src/wbmp.h')
-rw-r--r--src/wbmp.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/wbmp.h b/src/wbmp.h
new file mode 100644
index 0000000..836c34f
--- /dev/null
+++ b/src/wbmp.h
@@ -0,0 +1,47 @@
+/* WBMP
+** ----
+** WBMP Level 0: B/W, Uncompressed
+** This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
+** It does not support ExtHeaders as defined in the spec. The spec states
+** that a WAP client does not need to implement ExtHeaders.
+**
+** (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
+**
+** Header file
+*/
+#ifndef __WBMP_H
+#define __WBMP_H 1
+
+
+/* WBMP struct
+** -----------
+** A Wireless bitmap structure
+**
+*/
+
+typedef struct Wbmp_
+{
+ int type; /* type of the wbmp */
+ int width; /* width of the image */
+ int height; /* height of the image */
+ int *bitmap; /* pointer to data: 0 = WHITE , 1 = BLACK */
+} Wbmp;
+
+#define WBMP_WHITE 1
+#define WBMP_BLACK 0
+
+
+/* Proto's
+** -------
+**
+*/
+int putmbi( int i, int (*putout)(int c, void *out), void *out);
+int getmbi ( int (*getin)(void *in), void *in );
+int skipheader( int (*getin)(void *in), void *in );
+Wbmp *createwbmp( int width, int height, int color );
+int readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
+int writewbmp( Wbmp *wbmp, int (*putout)( int c, void *out), void *out);
+void freewbmp( Wbmp *wbmp );
+void printwbmp( Wbmp *wbmp );
+
+#endif