MythTV  master
Enumerations | Functions | Variables
vbilut.h File Reference
#include <cstdint>
Include dependency graph for vbilut.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  vbimode { VBI_IVTV, VBI_DVB, VBI_DVB_SUBTITLE }
 

Functions

int hamm8 (const uint8_t *p, int *err)
 
int hamm84 (const uint8_t *p, int *err)
 
int hamm16 (const uint8_t *p, int *err)
 

Variables

const unsigned char lang_chars [][16]
 
const unsigned char chartab_original []
 
const char chartab_swedish []
 
const unsigned short hammtab []
 
const uint8_t hamm84tab []
 
const uint8_t unham84tab []
 
const uint8_t vbi_bit_reverse []
 
const char * formats []
 
const char * subtitles []
 
const char hamm24par [][256]
 This table generates the parity checks for hamm24/18 decoding. More...
 
const char hamm24val []
 Table to extract the lower 4 bit from hamm24/18 encoded bytes. More...
 
const short hamm24err []
 Mapping from parity checks made by table hamm24par to error results return by hamm24. More...
 
const int hamm24cor []
 Mapping from parity checks made by table hamm24par to faulty bit in the decoded 18 bit word. More...
 

Enumeration Type Documentation

◆ vbimode

enum vbimode
Enumerator
VBI_IVTV 
VBI_DVB 

< IVTV packet

VBI_DVB_SUBTITLE 

< DVB packet

< DVB subtitle packet

Definition at line 20 of file vbilut.h.

Function Documentation

◆ hamm8()

int hamm8 ( const uint8_t *  p,
int *  err 
)

Definition at line 328 of file vbilut.cpp.

◆ hamm84()

int hamm84 ( const uint8_t *  p,
int *  err 
)

Definition at line 335 of file vbilut.cpp.

Referenced by TeletextReader::AddTeletextData(), and TeletextDecoder::Decode().

◆ hamm16()

int hamm16 ( const uint8_t *  p,
int *  err 
)

Definition at line 345 of file vbilut.cpp.

Variable Documentation

◆ lang_chars

const unsigned char lang_chars[][16]

Definition at line 6 of file vbilut.h.

Referenced by conv2latin(), cvt_char(), and lang_init().

◆ chartab_original

const unsigned char chartab_original[]

Definition at line 47 of file vbilut.cpp.

◆ chartab_swedish

const char chartab_swedish[]

◆ hammtab

const unsigned short hammtab[]

Definition at line 52 of file vbilut.cpp.

Referenced by hamm16(), and hamm8().

◆ hamm84tab

const uint8_t hamm84tab[]

Definition at line 88 of file vbilut.cpp.

Referenced by hamm84().

◆ unham84tab

const uint8_t unham84tab[]

Definition at line 118 of file vbilut.cpp.

◆ vbi_bit_reverse

const uint8_t vbi_bit_reverse[]

Definition at line 154 of file vbilut.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ formats

const char* formats[]

◆ subtitles

const char* subtitles[]

Definition at line 202 of file vbilut.cpp.

Referenced by EITHelper::AddEIT(), and CC608Decoder::DecodeWSS().

◆ hamm24par

const char hamm24par[][256]

This table generates the parity checks for hamm24/18 decoding.

bit 0 is for test A, 1 for B, ... thanks to R. Gancarz for this fine table g

Definition at line 214 of file vbilut.cpp.

◆ hamm24val

const char hamm24val[]

Table to extract the lower 4 bit from hamm24/18 encoded bytes.

Definition at line 274 of file vbilut.cpp.

◆ hamm24err

const short hamm24err[]

Mapping from parity checks made by table hamm24par to error results return by hamm24.

(0 = no error, 0x0100 = single bit error, 0x1000 = double error)

Definition at line 300 of file vbilut.cpp.

◆ hamm24cor

const int hamm24cor[]

Mapping from parity checks made by table hamm24par to faulty bit in the decoded 18 bit word.

Definition at line 316 of file vbilut.cpp.