php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
wbmp.h
Go to the documentation of this file.
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
27typedef 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 */
34
35#define WBMP_WHITE 1
36#define WBMP_BLACK 0
37
38
39/* Proto's
40** -------
41**
42*/
43void putmbi( int i, void (*putout)(int c, void *out), void *out);
44int getmbi ( int (*getin)(void *in), void *in );
45int skipheader( int (*getin)(void *in), void *in );
46Wbmp *createwbmp( int width, int height, int color );
47int readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
48int writewbmp( Wbmp *wbmp, void (*putout)( int c, void *out), void *out);
49void freewbmp( Wbmp *wbmp );
50void printwbmp( Wbmp *wbmp );
51
52#endif
short color
Definition wbmp.h:28
int width
Definition wbmp.h:30
int * bitmap
Definition wbmp.h:32
int height
Definition wbmp.h:31
int type
Definition wbmp.h:29
Wbmp * createwbmp(int width, int height, int color)
Definition wbmp.c:112
int getmbi(int(*getin)(void *in), void *in)
Definition wbmp.c:38
int skipheader(int(*getin)(void *in), void *in)
Definition wbmp.c:91
int writewbmp(Wbmp *wbmp, void(*putout)(int c, void *out), void *out)
Definition wbmp.c:252
void printwbmp(Wbmp *wbmp)
Definition wbmp.c:311
struct Wbmp_ Wbmp
void putmbi(int i, void(*putout)(int c, void *out), void *out)
Definition wbmp.c:65
void freewbmp(Wbmp *wbmp)
Definition wbmp.c:298
int readwbmp(int(*getin)(void *in), void *in, Wbmp **wbmp)
Definition wbmp.c:152
out($f, $s)