Back to index

php5  5.3.10
wbmp.h
Go to the documentation of this file.
00001 /* WBMP
00002 ** ----
00003 ** WBMP Level 0: B/W, Uncompressed
00004 ** This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
00005 ** It does not support ExtHeaders as defined in the spec. The spec states
00006 ** that a WAP client does not need to implement ExtHeaders.
00007 **
00008 ** (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
00009 **
00010 ** Header file
00011 */
00012 #ifndef __WBMP_H
00013 #define __WBMP_H     1
00014 
00015 #ifdef HAVE_CONFIG_H
00016 #include "config.h"
00017 #endif
00018 
00019 #include "php_compat.h"
00020 
00021 /* WBMP struct
00022 ** -----------
00023 ** A Wireless bitmap structure
00024 **
00025 */
00026 
00027 typedef struct Wbmp_
00028 {
00029     int type;           /* type of the wbmp */
00030     int width;          /* width of the image */
00031     int height;         /* height of the image */
00032     int *bitmap;        /* pointer to data: 0 = WHITE , 1 = BLACK */
00033 } Wbmp;
00034 
00035 #define WBMP_WHITE  1
00036 #define WBMP_BLACK  0
00037 
00038 
00039 /* Proto's
00040 ** -------
00041 **
00042 */
00043 void          putmbi( int i, void (*putout)(int c, void *out), void *out);
00044 int    getmbi ( int (*getin)(void *in), void *in );
00045 int     skipheader( int (*getin)(void *in), void *in );
00046 Wbmp   *createwbmp( int width, int height, int color );
00047 int     readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
00048 int           writewbmp( Wbmp *wbmp, void (*putout)( int c, void *out), void *out);
00049 void    freewbmp( Wbmp *wbmp );
00050 void    printwbmp( Wbmp *wbmp );
00051 
00052 #endif