MythTV  master
Classes | Functions | Variables
lang.cpp File Reference
#include <array>
#include <cstring>
#include "vt.h"
#include "lang.h"
Include dependency graph for lang.cpp:

Go to the source code of this file.

Classes

struct  mark
 

Functions

void lang_init (void)
 
void conv2latin (unsigned char *p, int n, int lang)
 
void init_enhance (struct enhance *eh)
 
void add_enhance (struct enhance *eh, int dcode, std::array< unsigned int, 13 > &data)
 
void do_enhancements (struct enhance *eh, struct vt_page *vtp)
 

Variables

int latin1 = -1
 
static std::array< uint8_t, 256 > lang_char
 
static const std::array< const mark, 16 > marks
 
static const std::string g2map_latin1
 
static const std::string g2map_latin2
 

Function Documentation

◆ lang_init()

void lang_init ( void  )

Definition at line 95 of file lang.cpp.

Referenced by vbi_open().

◆ conv2latin()

void conv2latin ( unsigned char *  p,
int  n,
int  lang 
)

Definition at line 106 of file lang.cpp.

Referenced by vt_line().

◆ init_enhance()

void init_enhance ( struct enhance eh)

Definition at line 127 of file lang.cpp.

Referenced by vt_line().

◆ add_enhance()

void add_enhance ( struct enhance eh,
int  dcode,
std::array< unsigned int, 13 > &  data 
)

Definition at line 133 of file lang.cpp.

Referenced by vt_line().

◆ do_enhancements()

void do_enhancements ( struct enhance eh,
struct vt_page vtp 
)

Definition at line 145 of file lang.cpp.

Referenced by vbi_send_page().

Variable Documentation

◆ latin1

int latin1 = -1

Definition at line 6 of file lang.cpp.

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

◆ lang_char

std::array<uint8_t,256> lang_char
static

Definition at line 8 of file lang.cpp.

Referenced by conv2latin(), and lang_init().

◆ marks

const std::array<const mark,16> marks
static

◆ g2map_latin1

const std::string g2map_latin1
static
Initial value:
=
"\x20\xA1\xA2\xA3\x24\xA5\x23\xA7\xA4\x27\x22\xAB\x20\x20\x20\x20"
"\xB0\xB1\xB2\xB3\xD7\xB5\xB6\xB7\xF7\x27\x22\xBB\xBC\xBD\xBE\xBF"
"\x20\x60\xB4\x5E\x7E\x20\x20\x20\xA8\x2e\xB0\xB8\x5F\x22\x20\x20"
"\x5F\xB9\xAE\xA9\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\xC6\xD0\xAA\x48\x20\x49\x4C\x4C\xD8\x20\xBA\xDE\x54\x4E\x6E"
"\x4B\xE6\x64\xF0\x68\x69\x69\x6C\x6C\xF8\x20\xDF\xFE\x74\x6E\x7f"

Definition at line 74 of file lang.cpp.

Referenced by do_enhancements().

◆ g2map_latin2

const std::string g2map_latin2
static
Initial value:
=
"\x20\x69\x63\x4C\x24\x59\x23\xA7\xA4\x27\x22\x3C\x20\x20\x20\x20"
"\xB0\x20\x20\x20\xD7\x75\x20\x20\xF7\x27\x22\x3E\x20\x20\x20\x20"
"\x20\x60\xB4\x5E\x7E\x20\xA2\xFF\xA8\x2E\xB0\xB8\x5F\xBD\xB2\xB7"
"\x2D\x20\x52\x43\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
"\x20\x20\xD0\x61\x48\x20\x69\x4C\xA3\x4F\x20\x6F\x70\x54\x4E\x6e"
"\x4B\x20\xF0\x64\x68\x69\x69\x6C\xB3\x6F\x20\xDF\x70\x74\x6e\x7f"

Definition at line 83 of file lang.cpp.

Referenced by do_enhancements().