Annotation of embedaddon/php/ext/gd/libgd/wbmp.h, revision 1.1
1.1 ! misho 1: /* WBMP
! 2: ** ----
! 3: ** WBMP Level 0: B/W, Uncompressed
! 4: ** This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
! 5: ** It does not support ExtHeaders as defined in the spec. The spec states
! 6: ** that a WAP client does not need to implement ExtHeaders.
! 7: **
! 8: ** (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
! 9: **
! 10: ** Header file
! 11: */
! 12: #ifndef __WBMP_H
! 13: #define __WBMP_H 1
! 14:
! 15: #ifdef HAVE_CONFIG_H
! 16: #include "config.h"
! 17: #endif
! 18:
! 19: #include "php_compat.h"
! 20:
! 21: /* WBMP struct
! 22: ** -----------
! 23: ** A Wireless bitmap structure
! 24: **
! 25: */
! 26:
! 27: typedef struct Wbmp_
! 28: {
! 29: int type; /* type of the wbmp */
! 30: int width; /* width of the image */
! 31: int height; /* height of the image */
! 32: int *bitmap; /* pointer to data: 0 = WHITE , 1 = BLACK */
! 33: } Wbmp;
! 34:
! 35: #define WBMP_WHITE 1
! 36: #define WBMP_BLACK 0
! 37:
! 38:
! 39: /* Proto's
! 40: ** -------
! 41: **
! 42: */
! 43: void putmbi( int i, void (*putout)(int c, void *out), void *out);
! 44: int getmbi ( int (*getin)(void *in), void *in );
! 45: int skipheader( int (*getin)(void *in), void *in );
! 46: Wbmp *createwbmp( int width, int height, int color );
! 47: int readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
! 48: int writewbmp( Wbmp *wbmp, void (*putout)( int c, void *out), void *out);
! 49: void freewbmp( Wbmp *wbmp );
! 50: void printwbmp( Wbmp *wbmp );
! 51:
! 52: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>