MythTV  master
vbilut.h
Go to the documentation of this file.
1 #ifndef VBILUT_H
2 #define VBILUT_H
3 
4 #include <array>
5 #include <cstdint>
6 #include <string>
7 
8 extern const std::array<const std::array<const uint8_t,16>,1+8+8> lang_chars;
9 extern const std::array<const uint8_t, 13> chartab_original;
10 extern const std::array<const uint16_t, 256> hammtab;
11 extern const std::array<const uint8_t, 256> hamm84tab;
12 extern const std::array<const uint8_t, 256> unham84tab;
13 extern const std::array<const uint8_t, 256> vbi_bit_reverse;
14 extern const std::array<const std::string, 8> formats;
15 extern const std::array<const std::string, 4> subtitles;
16 extern const std::array<const std::array<const uint8_t,256>,3> hamm24par;
17 extern const std::array<const uint8_t, 256> hamm24val;
18 extern const std::array<const uint16_t, 64> hamm24err;
19 extern const std::array<const int32_t, 64> hamm24cor;
20 
21 enum vbimode
22 {
26 };
27 
28 int hamm8(const uint8_t *p, int *err);
29 int hamm84(const uint8_t *p, int *err);
30 int hamm16(const uint8_t *p, int *err);
31 int hamm24(const uint8_t *p, int *err);
32 
33 #endif // VBILUT_H
VBI_IVTV
@ VBI_IVTV
Definition: vbilut.h:23
hamm24par
const std::array< const std::array< const uint8_t, 256 >, 3 > hamm24par
This table generates the parity checks for hamm24/18 decoding.
Definition: vbilut.cpp:213
hamm24
int hamm24(const uint8_t *p, int *err)
Definition: vbilut.cpp:352
hamm24cor
const std::array< const int32_t, 64 > hamm24cor
Mapping from parity checks made by table hamm24par to faulty bit in the decoded 18 bit word.
Definition: vbilut.cpp:315
vbimode
vbimode
Definition: vbilut.h:22
hamm84
int hamm84(const uint8_t *p, int *err)
Definition: vbilut.cpp:333
hamm84tab
const std::array< const uint8_t, 256 > hamm84tab
Definition: vbilut.cpp:87
vbi_bit_reverse
const std::array< const uint8_t, 256 > vbi_bit_reverse
Definition: vbilut.cpp:153
hamm24val
const std::array< const uint8_t, 256 > hamm24val
Table to extract the lower 4 bit from hamm24/18 encoded bytes.
Definition: vbilut.cpp:273
unham84tab
const std::array< const uint8_t, 256 > unham84tab
Definition: vbilut.cpp:117
VBI_DVB_SUBTITLE
@ VBI_DVB_SUBTITLE
< DVB packet
Definition: vbilut.h:25
hamm16
int hamm16(const uint8_t *p, int *err)
Definition: vbilut.cpp:343
hardwareprofile.config.p
p
Definition: config.py:33
lang_chars
const std::array< const std::array< const uint8_t, 16 >, 1+8+8 > lang_chars
Definition: vbilut.cpp:4
subtitles
const std::array< const std::string, 4 > subtitles
Definition: vbilut.cpp:201
hammtab
const std::array< const uint16_t, 256 > hammtab
Definition: vbilut.cpp:51
VBI_DVB
@ VBI_DVB
< IVTV packet
Definition: vbilut.h:24
hamm24err
const std::array< const uint16_t, 64 > hamm24err
Mapping from parity checks made by table hamm24par to error results return by hamm24.
Definition: vbilut.cpp:299
hamm8
int hamm8(const uint8_t *p, int *err)
Definition: vbilut.cpp:326
formats
const std::array< const std::string, 8 > formats
Definition: vbilut.cpp:189
chartab_original
const std::array< const uint8_t, 13 > chartab_original
Definition: vbilut.cpp:45