]>
git.gir.st - ttxd.git/blob - src/vtx2ascii-src/vtxdecode.h
1 #ifndef VTXDECODE_H_INCLUDED
2 #define VTXDECODE_H_INCLUDED
4 /* $Id: vtxdecode.h,v 1.3 1997/03/26 00:17:34 mb Exp mb $
6 * Copyright (c) 1994-96 Martin Buck <martin-2.buck@student.uni-ulm.de>
7 * Read COPYING for more information
18 #define VTX_COLMASK 0x07 /* I rely on the position of the VTX_COLMASK & VTX_BGMASK bits! */
19 #define VTX_BGMASK (0x07 << 3)
20 #define VTX_GRSEP (1 << 7)
21 #define VTX_HIDDEN (1 << 8)
22 #define VTX_BOX (1 << 9)
23 #define VTX_FLASH (1 << 10)
24 #define VTX_DOUBLE1 (1 << 11)
25 #define VTX_DOUBLE2 (1 << 12)
26 #define VTX_INVERT (1 << 13)
27 #define VTX_DOUBLE (VTX_DOUBLE1 | VTX_DOUBLE2)
30 typedef unsigned char chr_t
;
31 typedef unsigned short attrib_t
;
33 chr_t chr
[VTX_PAGESIZE
];
34 attrib_t attrib
[VTX_PAGESIZE
];
39 extern const chr_t cct2vtx_table
[][96];
40 extern const char vtx2iso_table
[], vtx2iso_lc_table
[], vtxiso_worddelim
[];
43 int decode_page(const byte_t
*pgbuf
, vtxpage_t
*page
, int y1
, int y2
);
45 #endif /* VTXDECODE_H_INCLUDED */