MythTV master
Functions | Variables
vbilut.cpp File Reference
#include "captions/vbilut.h"
#include <array>
Include dependency graph for vbilut.cpp:

Go to the source code of this file.

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

static constexpr std::array< const uint16_t, 256 > hammtab
 
static constexpr std::array< const uint8_t, 256 > hamm84tab
 

Function Documentation

◆ hamm16()

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

Definition at line 87 of file vbilut.cpp.

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

◆ hamm8()

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

Definition at line 70 of file vbilut.cpp.

Referenced by TeletextReader::AddTeletextData().

◆ hamm84()

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

Definition at line 77 of file vbilut.cpp.

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

Variable Documentation

◆ hamm84tab

constexpr std::array<const uint8_t,256> hamm84tab
staticconstexpr
Initial value:
{
255,255,255,255,255,255,255,255,255, 0,
255, 8,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255, 6,255,
14,255,255,255,255,255, 12,255, 4,255,
255,255,255,255,255,255,255,255,255, 10,
255, 2,255,255,255,255,255,255,255,255,
255,255,255,255, 1,255, 9,255,255,255,
255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255, 7,255, 15,255,255,
255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255, 13,
255, 5,255,255,255,255,255,255,255,255,
11,255, 3,255,255,255,255,255,255,255,
255,255,255, 12,255, 4,255,255,255,255,
255,255,255,255, 10,255, 2,255,255,255,
255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255, 0,255,
8,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255, 6,
255, 14,255,255,255,255,255,255,255,255,
255,255,255,255, 13,255, 5,255,255,255,
255,255,255,255,255,255,255, 11,255, 3,
255,255,255,255,255, 1,255, 9,255,255,
255,255,255,255,255,255,255,255,255,255,
255,255,255,255, 7,255, 15,255,255,255,
255,255,255,255,255,255 }

Definition at line 41 of file vbilut.cpp.

Referenced by hamm84().

◆ hammtab

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

Definition at line 5 of file vbilut.cpp.

Referenced by hamm16(), and hamm8().