]> git.gir.st - ttxd.git/blob - src/vtx2ascii-src/vtxdecode.h
update to dvb-t2 (new hardware, software)
[ttxd.git] / src / vtx2ascii-src / vtxdecode.h
1 #ifndef VTXDECODE_H_INCLUDED
2 #define VTXDECODE_H_INCLUDED
3
4 /* $Id: vtxdecode.h,v 1.3 1997/03/26 00:17:34 mb Exp mb $
5 *
6 * Copyright (c) 1994-96 Martin Buck <martin-2.buck@student.uni-ulm.de>
7 * Read COPYING for more information
8 */
9
10
11 #include <sys/vtx.h>
12
13
14 #define VTXOK 0
15 #define VTXEINVAL -1
16 #define VTXEPARITY -2
17
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)
28
29
30 typedef unsigned char chr_t;
31 typedef unsigned short attrib_t;
32 typedef struct {
33 chr_t chr[VTX_PAGESIZE];
34 attrib_t attrib[VTX_PAGESIZE];
35 vtx_pageinfo_t info;
36 } vtxpage_t;
37
38
39 extern const chr_t cct2vtx_table[][96];
40 extern const char vtx2iso_table[], vtx2iso_lc_table[], vtxiso_worddelim[];
41
42
43 int decode_page(const byte_t *pgbuf, vtxpage_t *page, int y1, int y2);
44
45 #endif /* VTXDECODE_H_INCLUDED */
Imprint / Impressum