MythTV  master
Enumerations | Functions | Variables
vbilut.h File Reference
#include <array>
#include <cstdint>
#include <string>
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)
 
int hamm24 (const uint8_t *p, int *err)
 

Variables

const std::array< const std::array< const uint8_t, 16 >, 1+8+8 > lang_chars
 
const std::array< const uint8_t, 13 > chartab_original
 
const std::array< const uint16_t, 256 > hammtab
 
const std::array< const uint8_t, 256 > hamm84tab
 
const std::array< const uint8_t, 256 > unham84tab
 
const std::array< const uint8_t, 256 > vbi_bit_reverse
 
const std::array< const std::string, 8 > formats
 
const std::array< const std::string, 4 > subtitles
 
const std::array< const std::array< const uint8_t, 256 >, 3 > hamm24par
 This table generates the parity checks for hamm24/18 decoding. More...
 
const std::array< const uint8_t, 256 > hamm24val
 Table to extract the lower 4 bit from hamm24/18 encoded bytes. More...
 
const std::array< const uint16_t, 64 > hamm24err
 Mapping from parity checks made by table hamm24par to error results return by hamm24. More...
 
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. 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 21 of file vbilut.h.

Function Documentation

◆ hamm8()

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

Definition at line 326 of file vbilut.cpp.

Referenced by TeletextReader::AddTeletextData(), and vt_line().

◆ hamm84()

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

Definition at line 333 of file vbilut.cpp.

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

◆ hamm16()

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

Definition at line 343 of file vbilut.cpp.

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

◆ hamm24()

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

Definition at line 352 of file vbilut.cpp.

Referenced by vt_line().

Variable Documentation

◆ lang_chars

const std::array<const std::array<const uint8_t,16>,1+8+8> lang_chars

Definition at line 4 of file vbilut.cpp.

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

◆ chartab_original

const std::array<const uint8_t, 13> chartab_original

Definition at line 45 of file vbilut.cpp.

◆ hammtab

const std::array<const uint16_t, 256> hammtab

Definition at line 51 of file vbilut.cpp.

Referenced by hamm16(), and hamm8().

◆ hamm84tab

const std::array<const uint8_t, 256> hamm84tab

Definition at line 87 of file vbilut.cpp.

Referenced by hamm84().

◆ unham84tab

const std::array<const uint8_t, 256> unham84tab

Definition at line 117 of file vbilut.cpp.

◆ vbi_bit_reverse

const std::array<const uint8_t, 256> vbi_bit_reverse

Definition at line 153 of file vbilut.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ formats

const std::array<const std::string, 8> formats

◆ subtitles

const std::array<const std::string, 4> subtitles

Definition at line 201 of file vbilut.cpp.

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

◆ hamm24par

const std::array<const std::array<const uint8_t,256>,3> hamm24par

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 213 of file vbilut.cpp.

Referenced by chk_parity(), and hamm24().

◆ hamm24val

const std::array<const uint8_t, 256> hamm24val

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

Definition at line 273 of file vbilut.cpp.

Referenced by hamm24().

◆ hamm24err

const std::array<const uint16_t, 64> 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 299 of file vbilut.cpp.

Referenced by hamm24().

◆ 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 at line 315 of file vbilut.cpp.

Referenced by hamm24().