Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TeletextDefines.h File Reference
#include "threads/CriticalSection.h"
#include <chrono>
#include <string>

Classes

struct  TextPageAttr_t
 
struct  Textp27_t
 
struct  TextExtData_t
 
struct  TextPageinfo_t
 
struct  TextCachedPage_t
 
struct  TextSubtitle_t
 
struct  TextSubtitleCache_t
 
struct  TextCacheStruct_t
 
struct  TextRenderInfo_t
 
class  CDVDTeletextTools
 

Macros

#define FLOFSIZE   4
 
#define SUBTITLE_CACHESIZE   50
 
#define TELETEXT_PAGE_SIZE   (40 * 25)
 
#define number2char(c)
 

Typedefs

typedef struct TextCacheStruct_t TextCacheStruct_t
 

Enumerations

enum  {
  ATR_WB , ATR_PassiveDefault , ATR_L250 , ATR_L251 ,
  ATR_L252 , ATR_L253 , ATR_TOPMENU0 , ATR_TOPMENU1 ,
  ATR_TOPMENU2 , ATR_TOPMENU3 , ATR_MSG0 , ATR_MSG1 ,
  ATR_MSG2 , ATR_MSG3 , ATR_MSGDRM0 , ATR_MSGDRM1 ,
  ATR_MSGDRM2 , ATR_MSGDRM3 , ATR_MENUHIL0 , ATR_MENUHIL1 ,
  ATR_MENUHIL2 , ATR_MENU0 , ATR_MENU1 , ATR_MENU2 ,
  ATR_MENU3 , ATR_MENU4 , ATR_MENU5 , ATR_MENU6 ,
  ATR_CATCHMENU0 , ATR_CATCHMENU1
}
 
enum  enumTeletextColor {
  TXT_ColorBlack = 0 , TXT_ColorRed , TXT_ColorGreen , TXT_ColorYellow ,
  TXT_ColorBlue , TXT_ColorMagenta , TXT_ColorCyan , TXT_ColorWhite ,
  TXT_ColorMenu1 = (4*8) , TXT_ColorMenu2 , TXT_ColorMenu3 , TXT_ColorTransp ,
  TXT_ColorTransp2 , TXT_Color_SIZECOLTABLE
}
 
enum  {
  C_G0P = 0 , C_G0S , C_G1C , C_G1S ,
  C_G2 , C_G3 , C_OFFSET_DRCS = 32
}
 
enum  {
  FUNC_LOP = 0 , FUNC_DATA , FUNC_GPOP , FUNC_POP ,
  FUNC_GDRCS , FUNC_DRCS , FUNC_MOT , FUNC_MIP ,
  FUNC_BTT , FUNC_AIT , FUNC_MPT , FUNC_MPTEX ,
  FUNC_TRIGGER
}
 
enum  {
  NAT_DEFAULT = 0 , NAT_CZ = 1 , NAT_UK = 2 , NAT_ET = 3 ,
  NAT_FR = 4 , NAT_DE = 5 , NAT_IT = 6 , NAT_LV = 7 ,
  NAT_PL = 8 , NAT_SP = 9 , NAT_RO = 10 , NAT_SR = 11 ,
  NAT_SW = 12 , NAT_TR = 13 , NAT_MAX_FROM_HEADER = 13 , NAT_SC = 14 ,
  NAT_RB = 15 , NAT_UA = 16 , NAT_GR = 17 , NAT_HB = 18 ,
  NAT_AR = 19
}
 

Functions

int IsDec (int i)
 

Variables

const unsigned char CountryConversionTable [] = { NAT_UK, NAT_DE, NAT_SW, NAT_IT, NAT_FR, NAT_SP, NAT_CZ, NAT_RO}
 
const unsigned char MapTblFG [] = { 0, 0, 8, 8, 16, 16, 16 }
 
const unsigned char MapTblBG [] = { 8, 16, 8, 16, 8, 16, 24 }
 
const unsigned short DefaultColors []
 
const unsigned char dehamming []
 
const unsigned char deparity []
 
const unsigned char hamm24par [3][256]
 
const unsigned char hamm24val [256]
 
const signed char hamm24err [64]
 
const unsigned int hamm24cor [64]
 

Macro Definition Documentation

◆ FLOFSIZE

#define FLOFSIZE   4

◆ number2char

#define number2char ( c)
Value:
((c) + (((c) <= 9) ? '0' : ('A' - 10)))

◆ SUBTITLE_CACHESIZE

#define SUBTITLE_CACHESIZE   50

◆ TELETEXT_PAGE_SIZE

#define TELETEXT_PAGE_SIZE   (40 * 25)

Typedef Documentation

◆ TextCacheStruct_t

typedef struct TextCacheStruct_t TextCacheStruct_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ATR_WB 
ATR_PassiveDefault 
ATR_L250 
ATR_L251 
ATR_L252 
ATR_L253 
ATR_TOPMENU0 
ATR_TOPMENU1 
ATR_TOPMENU2 
ATR_TOPMENU3 
ATR_MSG0 
ATR_MSG1 
ATR_MSG2 
ATR_MSG3 
ATR_MSGDRM0 
ATR_MSGDRM1 
ATR_MSGDRM2 
ATR_MSGDRM3 
ATR_MENUHIL0 
ATR_MENUHIL1 
ATR_MENUHIL2 
ATR_MENU0 
ATR_MENU1 
ATR_MENU2 
ATR_MENU3 
ATR_MENU4 
ATR_MENU5 
ATR_MENU6 
ATR_CATCHMENU0 
ATR_CATCHMENU1 

◆ anonymous enum

anonymous enum
Enumerator
C_G0P 
C_G0S 
C_G1C 
C_G1S 
C_G2 
C_G3 
C_OFFSET_DRCS 

◆ anonymous enum

anonymous enum
Enumerator
FUNC_LOP 
FUNC_DATA 
FUNC_GPOP 
FUNC_POP 
FUNC_GDRCS 
FUNC_DRCS 
FUNC_MOT 
FUNC_MIP 
FUNC_BTT 
FUNC_AIT 
FUNC_MPT 
FUNC_MPTEX 
FUNC_TRIGGER 

◆ anonymous enum

anonymous enum
Enumerator
NAT_DEFAULT 
NAT_CZ 
NAT_UK 
NAT_ET 
NAT_FR 
NAT_DE 
NAT_IT 
NAT_LV 
NAT_PL 
NAT_SP 
NAT_RO 
NAT_SR 
NAT_SW 
NAT_TR 
NAT_MAX_FROM_HEADER 
NAT_SC 
NAT_RB 
NAT_UA 
NAT_GR 
NAT_HB 
NAT_AR 

◆ enumTeletextColor

Enumerator
TXT_ColorBlack 
TXT_ColorRed 
TXT_ColorGreen 
TXT_ColorYellow 
TXT_ColorBlue 
TXT_ColorMagenta 
TXT_ColorCyan 
TXT_ColorWhite 
TXT_ColorMenu1 
TXT_ColorMenu2 
TXT_ColorMenu3 
TXT_ColorTransp 
TXT_ColorTransp2 
TXT_Color_SIZECOLTABLE 

Function Documentation

◆ IsDec()

int IsDec ( int i)
inline

Variable Documentation

◆ CountryConversionTable

const unsigned char CountryConversionTable[] = { NAT_UK, NAT_DE, NAT_SW, NAT_IT, NAT_FR, NAT_SP, NAT_CZ, NAT_RO}

◆ DefaultColors

const unsigned short DefaultColors[]
Initial value:
=
{
0x000, 0x00f, 0x0f0, 0x0ff, 0xf00, 0xf0f, 0xff0, 0xfff,
0x000, 0x007, 0x070, 0x077, 0x700, 0x707, 0x770, 0x777,
0x50f, 0x07f, 0x7f0, 0xbff, 0xac0, 0x005, 0x256, 0x77c,
0x333, 0x77f, 0x7f7, 0x7ff, 0xf77, 0xf7f, 0xff7, 0xddd,
0x420, 0x210, 0x420, 0x000, 0x000
}

◆ dehamming

const unsigned char dehamming[]
Initial value:
=
{
0x01, 0xFF, 0x01, 0x01, 0xFF, 0x00, 0x01, 0xFF, 0xFF, 0x02, 0x01, 0xFF, 0x0A, 0xFF, 0xFF, 0x07,
0xFF, 0x00, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0x00, 0x06, 0xFF, 0xFF, 0x0B, 0xFF, 0x00, 0x03, 0xFF,
0xFF, 0x0C, 0x01, 0xFF, 0x04, 0xFF, 0xFF, 0x07, 0x06, 0xFF, 0xFF, 0x07, 0xFF, 0x07, 0x07, 0x07,
0x06, 0xFF, 0xFF, 0x05, 0xFF, 0x00, 0x0D, 0xFF, 0x06, 0x06, 0x06, 0xFF, 0x06, 0xFF, 0xFF, 0x07,
0xFF, 0x02, 0x01, 0xFF, 0x04, 0xFF, 0xFF, 0x09, 0x02, 0x02, 0xFF, 0x02, 0xFF, 0x02, 0x03, 0xFF,
0x08, 0xFF, 0xFF, 0x05, 0xFF, 0x00, 0x03, 0xFF, 0xFF, 0x02, 0x03, 0xFF, 0x03, 0xFF, 0x03, 0x03,
0x04, 0xFF, 0xFF, 0x05, 0x04, 0x04, 0x04, 0xFF, 0xFF, 0x02, 0x0F, 0xFF, 0x04, 0xFF, 0xFF, 0x07,
0xFF, 0x05, 0x05, 0x05, 0x04, 0xFF, 0xFF, 0x05, 0x06, 0xFF, 0xFF, 0x05, 0xFF, 0x0E, 0x03, 0xFF,
0xFF, 0x0C, 0x01, 0xFF, 0x0A, 0xFF, 0xFF, 0x09, 0x0A, 0xFF, 0xFF, 0x0B, 0x0A, 0x0A, 0x0A, 0xFF,
0x08, 0xFF, 0xFF, 0x0B, 0xFF, 0x00, 0x0D, 0xFF, 0xFF, 0x0B, 0x0B, 0x0B, 0x0A, 0xFF, 0xFF, 0x0B,
0x0C, 0x0C, 0xFF, 0x0C, 0xFF, 0x0C, 0x0D, 0xFF, 0xFF, 0x0C, 0x0F, 0xFF, 0x0A, 0xFF, 0xFF, 0x07,
0xFF, 0x0C, 0x0D, 0xFF, 0x0D, 0xFF, 0x0D, 0x0D, 0x06, 0xFF, 0xFF, 0x0B, 0xFF, 0x0E, 0x0D, 0xFF,
0x08, 0xFF, 0xFF, 0x09, 0xFF, 0x09, 0x09, 0x09, 0xFF, 0x02, 0x0F, 0xFF, 0x0A, 0xFF, 0xFF, 0x09,
0x08, 0x08, 0x08, 0xFF, 0x08, 0xFF, 0xFF, 0x09, 0x08, 0xFF, 0xFF, 0x0B, 0xFF, 0x0E, 0x03, 0xFF,
0xFF, 0x0C, 0x0F, 0xFF, 0x04, 0xFF, 0xFF, 0x09, 0x0F, 0xFF, 0x0F, 0x0F, 0xFF, 0x0E, 0x0F, 0xFF,
0x08, 0xFF, 0xFF, 0x05, 0xFF, 0x0E, 0x0D, 0xFF, 0xFF, 0x0E, 0x0F, 0xFF, 0x0E, 0x0E, 0xFF, 0x0E
}

◆ deparity

const unsigned char deparity[]
Initial value:
=
{
' ' , 0x01, 0x02, ' ' , 0x04, ' ' , ' ' , 0x07, 0x08, ' ' , ' ' , 0x0b, ' ' , 0x0d, 0x0e, ' ' ,
0x10, ' ' , ' ' , 0x13, ' ' , 0x15, 0x16, ' ' , ' ' , 0x19, 0x1a, ' ' , 0x1c, ' ' , ' ' , 0x1f,
0x20, ' ' , ' ' , 0x23, ' ' , 0x25, 0x26, ' ' , ' ' , 0x29, 0x2a, ' ' , 0x2c, ' ' , ' ' , 0x2f,
' ' , 0x31, 0x32, ' ' , 0x34, ' ' , ' ' , 0x37, 0x38, ' ' , ' ' , 0x3b, ' ' , 0x3d, 0x3e, ' ' ,
0x40, ' ' , ' ' , 0x43, ' ' , 0x45, 0x46, ' ' , ' ' , 0x49, 0x4a, ' ' , 0x4c, ' ' , ' ' , 0x4f,
' ' , 0x51, 0x52, ' ' , 0x54, ' ' , ' ' , 0x57, 0x58, ' ' , ' ' , 0x5b, ' ' , 0x5d, 0x5e, ' ' ,
' ' , 0x61, 0x62, ' ' , 0x64, ' ' , ' ' , 0x67, 0x68, ' ' , ' ' , 0x6b, ' ' , 0x6d, 0x6e, ' ' ,
0x70, ' ' , ' ' , 0x73, ' ' , 0x75, 0x76, ' ' , ' ' , 0x79, 0x7a, ' ' , 0x7c, ' ' , ' ' , 0x7f,
0x00, ' ' , ' ' , 0x03, ' ' , 0x05, 0x06, ' ' , ' ' , 0x09, 0x0a, ' ' , 0x0c, ' ' , ' ' , 0x0f,
' ' , 0x11, 0x12, ' ' , 0x14, ' ' , ' ' , 0x17, 0x18, ' ' , ' ' , 0x1b, ' ' , 0x1d, 0x1e, ' ' ,
' ' , 0x21, 0x22, ' ' , 0x24, ' ' , ' ' , 0x27, 0x28, ' ' , ' ' , 0x2b, ' ' , 0x2d, 0x2e, ' ' ,
0x30, ' ' , ' ' , 0x33, ' ' , 0x35, 0x36, ' ' , ' ' , 0x39, 0x3a, ' ' , 0x3c, ' ' , ' ' , 0x3f,
' ' , 0x41, 0x42, ' ' , 0x44, ' ' , ' ' , 0x47, 0x48, ' ' , ' ' , 0x4b, ' ' , 0x4d, 0x4e, ' ' ,
0x50, ' ' , ' ' , 0x53, ' ' , 0x55, 0x56, ' ' , ' ' , 0x59, 0x5a, ' ' , 0x5c, ' ' , ' ' , 0x5f,
0x60, ' ' , ' ' , 0x63, ' ' , 0x65, 0x66, ' ' , ' ' , 0x69, 0x6a, ' ' , 0x6c, ' ' , ' ' , 0x6f,
' ' , 0x71, 0x72, ' ' , 0x74, ' ' , ' ' , 0x77, 0x78, ' ' , ' ' , 0x7b, ' ' , 0x7d, 0x7e, ' ' ,
}

◆ hamm24cor

const unsigned int hamm24cor[64]
Initial value:
=
{
0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000,
0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000,
0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000,
0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000,
0x00000, 0x00000, 0x00000, 0x00001, 0x00000, 0x00002, 0x00004, 0x00008,
0x00000, 0x00010, 0x00020, 0x00040, 0x00080, 0x00100, 0x00200, 0x00400,
0x00000, 0x00800, 0x01000, 0x02000, 0x04000, 0x08000, 0x10000, 0x20000,
0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000, 0x00000,
}

◆ hamm24err

const signed char hamm24err[64]
Initial value:
=
{
0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1,
}

◆ hamm24par

const unsigned char hamm24par[3][256]

◆ hamm24val

const unsigned char hamm24val[256]
Initial value:
=
{
0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1,
2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 4, 4, 4, 4, 5, 5, 5, 5,
6, 6, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 7, 7, 7, 7,
8, 8, 8, 8, 9, 9, 9, 9, 8, 8, 8, 8, 9, 9, 9, 9,
10, 10, 10, 10, 11, 11, 11, 11, 10, 10, 10, 10, 11, 11, 11, 11,
12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 12, 13, 13, 13, 13,
14, 14, 14, 14, 15, 15, 15, 15, 14, 14, 14, 14, 15, 15, 15, 15,
0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1,
2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 4, 4, 4, 4, 5, 5, 5, 5,
6, 6, 6, 6, 7, 7, 7, 7, 6, 6, 6, 6, 7, 7, 7, 7,
8, 8, 8, 8, 9, 9, 9, 9, 8, 8, 8, 8, 9, 9, 9, 9,
10, 10, 10, 10, 11, 11, 11, 11, 10, 10, 10, 10, 11, 11, 11, 11,
12, 12, 12, 12, 13, 13, 13, 13, 12, 12, 12, 12, 13, 13, 13, 13,
14, 14, 14, 14, 15, 15, 15, 15, 14, 14, 14, 14, 15, 15, 15, 15
}

◆ MapTblBG

const unsigned char MapTblBG[] = { 8, 16, 8, 16, 8, 16, 24 }

◆ MapTblFG

const unsigned char MapTblFG[] = { 0, 0, 8, 8, 16, 16, 16 }