vbilut.h File Reference

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 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.
const char hamm24val []
 Table to extract the lower 4 bit from hamm24/18 encoded bytes.
const short hamm24err []
 Mapping from parity checks made by table hamm24par to error results return by hamm24.
const int hamm24cor []
 Mapping from parity checks made by table hamm24par to faulty bit in the decoded 18 bit word.


Enumeration Type Documentation

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

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

Definition at line 328 of file vbilut.cpp.

Referenced by vt_line().

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

Definition at line 335 of file vbilut.cpp.

Referenced by TeletextDecoder::Decode().

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

Definition at line 345 of file vbilut.cpp.

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


Variable Documentation

const unsigned char lang_chars[][16]

Definition at line 6 of file vbilut.h.

const char chartab_original[]

Definition at line 47 of file vbilut.cpp.

const char chartab_swedish[]

const unsigned short hammtab[]

Definition at line 52 of file vbilut.cpp.

Referenced by hamm16(), and hamm8().

const uint8_t hamm84tab[]

Definition at line 88 of file vbilut.cpp.

Referenced by hamm84().

const uint8_t unham84tab[]

Definition at line 118 of file vbilut.cpp.

const uint8_t vbi_bit_reverse[]

Definition at line 154 of file vbilut.cpp.

Referenced by CC608Decoder::DecodeVPS().

const char* formats[]

const char* subtitles[]

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.

Referenced by chk_parity(), and hamm24().

const char hamm24val[]

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

Definition at line 274 of file vbilut.cpp.

Referenced by hamm24().

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.

Referenced by hamm24().

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.

Referenced by hamm24().


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5