1 | /**************************************************************************
|
---|
2 | *
|
---|
3 | * bilevel.h -- Compress a bilevel bitmap
|
---|
4 | * Copyright (C) 1994 Stuart Inglis
|
---|
5 | *
|
---|
6 | * This program is free software; you can redistribute it and/or modify
|
---|
7 | * it under the terms of the GNU General Public License as published by
|
---|
8 | * the Free Software Foundation; either version 2 of the License, or
|
---|
9 | * (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This program is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | * GNU General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU General Public License
|
---|
17 | * along with this program; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 | *
|
---|
20 | * $Id: bilevel.h 16583 2008-07-29 10:20:36Z davidb $
|
---|
21 | *
|
---|
22 | **************************************************************************/
|
---|
23 |
|
---|
24 | #ifndef __BILEVEL_H
|
---|
25 | #define __BILEVEL_H
|
---|
26 |
|
---|
27 | #include "marklist.h"
|
---|
28 |
|
---|
29 | /* must be called before the start of de/compression */
|
---|
30 | void bl_clearmodel ();
|
---|
31 | void bl_freemodel ();
|
---|
32 |
|
---|
33 | /* writes the template to the stream, and sets up the de/compression params */
|
---|
34 | void bl_writetemplate (char inputstr[]);
|
---|
35 | void bl_readtemplate ();
|
---|
36 |
|
---|
37 | /* actually performs the de/compression */
|
---|
38 | void bl_compress (marktype d, char str[]);
|
---|
39 | void bl_compress_mark (marktype d);
|
---|
40 | void bl_decompress (marktype * d);
|
---|
41 | void bl_decompress_mark (marktype * d);
|
---|
42 |
|
---|
43 | /* clairvoyantly de/compress d1 with respect to clairvoyantly viewable d2 */
|
---|
44 | void bl_clair_compress (marktype d1, marktype d2);
|
---|
45 | void bl_clair_decompress (marktype d1, marktype d2);
|
---|
46 |
|
---|
47 | #endif
|
---|