annotate pwplib/convert.h @ 56:5d819ba6891c

More cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 27 May 2010 22:48:37 +0300
parents 77f40a3c0095
children 0e2d7767c00d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
54
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
1 #ifndef PWP_CONVERT_H
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
2 #define PWP_CONVERT_H
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
3
0
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #include "pwplib.h"
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #ifndef __CONVERT_C
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 extern
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 #endif
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 struct
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 {
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 u8 rast[256*2];
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 u8 font[256],col[256];
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 u16 tab1to12[256];
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 /* tab1to22 */
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 u16 megatab[256*256];
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 u16 rasthalve[256*256];
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
acb5694e93d9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 void(*orig_dump_attr)();
54
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
21 } pwpconv;
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
22
55
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
23 /* convert.c */
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
24 void conv_init(int colors,int chars,int rasters);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
25
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
26 /* attrconv.c */
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
27 void convcalc_1to12(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
28 void convcalc_ascii(int x);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
29 void convcalc_termsafe(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
30 void convcalc_monotab(int parms);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
31 void convcalc_colortab(int parms);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
32 void convcalc_megatab_finish(int flags);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
33 void conv_dump_ibm_megatab(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
34 void conv_dump_ibm(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
35
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
36 /* rastconv.c */
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
37 void convcalc_rast_ibmcol(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
38 void conv_dump_rast(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
39 void convcalc_rast_col(void);
77f40a3c0095 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 54
diff changeset
40 void convcalc_rast_mono(void);
56
5d819ba6891c More cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 55
diff changeset
41 void conv_fromrast_full(u8*d,u8*s,int lgt);
54
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
42
85671798fdb3 Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
43 #endif /* PWP_CONVERT_H */