diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/gd/libgd/wbmp.h | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/gd/libgd/wbmp.h')
-rw-r--r-- | ext/gd/libgd/wbmp.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ext/gd/libgd/wbmp.h b/ext/gd/libgd/wbmp.h new file mode 100644 index 0000000..89b64c7 --- /dev/null +++ b/ext/gd/libgd/wbmp.h @@ -0,0 +1,52 @@ +/* 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 + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php_compat.h" + +/* 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 +** ------- +** +*/ +void putmbi( int i, void (*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, void (*putout)( int c, void *out), void *out); +void freewbmp( Wbmp *wbmp ); +void printwbmp( Wbmp *wbmp ); + +#endif |