line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Video::TeletextDB::Constants; |
2
|
1
|
|
|
1
|
|
65541
|
use 5.006001; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
44
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
4
|
1
|
|
|
1
|
|
10
|
use warnings; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
180
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use Exporter::Tidy |
10
|
|
|
|
|
|
|
# A lot more of these exist in Video::Capture::VBI, but we don't use them, |
11
|
|
|
|
|
|
|
# nor do we really want to export them since they are none of our business |
12
|
1
|
|
|
|
|
10
|
VTX => [qw(VTX_SUB VTX_C11)], |
13
|
|
|
|
|
|
|
VBI => [qw(VBI_VT)], |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
PageSize => [qw(ROWS COLUMNS)], |
16
|
|
|
|
|
|
|
Colors => [qw(BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE)], |
17
|
|
|
|
|
|
|
BdbPrefixes => [qw(STORES PAGE_VERSIONS VERSION PAGE COUNTER)], |
18
|
|
|
|
|
|
|
Attribute => [qw(FLASH_BITS FLASH CONCEAL_BITS CONCEAL SIZE_BITS SIZE |
19
|
|
|
|
|
|
|
OPAQUE_BITS OPAQUE FG_BITS FG BG_BITS BG CHAR_BITS CHAR |
20
|
|
|
|
|
|
|
NORMAL_SIZE DOUBLE_HEIGHT DOUBLE_WIDTH DOUBLE_SIZE)], |
21
|
1
|
|
|
1
|
|
1485
|
Other => [qw(DB_VERSION)]; |
|
1
|
|
|
|
|
10
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# use Video::Capture::VBI qw(decode_vtpage VTX_FLASH VTX_SUB); |
24
|
|
|
|
|
|
|
sub VTX_SUB () { 0x003f7f }; |
25
|
|
|
|
|
|
|
sub VTX_C11 () { 0x100000 }; # magazine serial |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub VBI_VT () { 0x0001 }; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub COLUMNS () { 40 }; |
30
|
|
|
|
|
|
|
sub ROWS () { 25 }; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub BG_BITS () { 4 }; |
33
|
|
|
|
|
|
|
sub BG () { 0/BG_BITS }; |
34
|
|
|
|
|
|
|
sub FG_BITS () { 4 }; |
35
|
|
|
|
|
|
|
sub FG () { 4/FG_BITS }; |
36
|
|
|
|
|
|
|
sub SIZE_BITS () { 2 }; |
37
|
|
|
|
|
|
|
sub SIZE () { (8+0)/SIZE_BITS }; |
38
|
|
|
|
|
|
|
sub OPAQUE_BITS () { 2 }; |
39
|
|
|
|
|
|
|
sub OPAQUE () { (8+2)/OPAQUE_BITS }; |
40
|
|
|
|
|
|
|
sub CONCEAL_BITS() { 1 }; |
41
|
|
|
|
|
|
|
sub CONCEAL () { (8+4)/CONCEAL_BITS }; |
42
|
|
|
|
|
|
|
sub FLASH_BITS () { 1 }; |
43
|
|
|
|
|
|
|
sub FLASH () { (8+5)/FLASH_BITS }; |
44
|
|
|
|
|
|
|
sub CHAR_BITS () { 16 }; |
45
|
|
|
|
|
|
|
sub CHAR () { 16/CHAR_BITS }; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub NORMAL_SIZE () { 0 }; |
48
|
|
|
|
|
|
|
sub DOUBLE_HEIGHT(){ 1 }; |
49
|
|
|
|
|
|
|
sub DOUBLE_WIDTH() { 2 }; |
50
|
|
|
|
|
|
|
sub DOUBLE_SIZE () { 3 }; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub BLACK () { 0 }; |
53
|
|
|
|
|
|
|
sub RED () { 1 }; |
54
|
|
|
|
|
|
|
sub GREEN () { 2 }; |
55
|
|
|
|
|
|
|
sub YELLOW () { 3 }; |
56
|
|
|
|
|
|
|
sub BLUE () { 4 }; |
57
|
|
|
|
|
|
|
sub MAGENTA () { 5 }; |
58
|
|
|
|
|
|
|
sub CYAN () { 6 }; |
59
|
|
|
|
|
|
|
sub WHITE () { 7 }; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub STORES () { "s" }; |
62
|
|
|
|
|
|
|
sub PAGE_VERSIONS(){ "S" }; |
63
|
|
|
|
|
|
|
sub VERSION () { "V" }; |
64
|
|
|
|
|
|
|
sub PAGE () { "p" }; |
65
|
|
|
|
|
|
|
sub COUNTER () { "c" }; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub DB_VERSION () { 1 }; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
70
|
|
|
|
|
|
|
__END__ |