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

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, unsigned int *data)
 
void do_enhancements (struct enhance *eh, struct vt_page *vtp)
 

Variables

int latin1 = -1
 
static unsigned char lang_char [256]
 
static struct mark marks [16]
 
static unsigned char g2map_latin1 []
 
static unsigned char g2map_latin2 []
 

Function Documentation

◆ lang_init()

void lang_init ( void  )

Definition at line 93 of file lang.c.

Referenced by vbi_open().

◆ conv2latin()

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

Definition at line 104 of file lang.c.

Referenced by vt_line().

◆ init_enhance()

void init_enhance ( struct enhance eh)

Definition at line 125 of file lang.c.

Referenced by vt_line().

◆ add_enhance()

void add_enhance ( struct enhance eh,
int  dcode,
unsigned int *  data 
)

Definition at line 131 of file lang.c.

Referenced by vt_line().

◆ do_enhancements()

void do_enhancements ( struct enhance eh,
struct vt_page vtp 
)

Definition at line 143 of file lang.c.

Referenced by vbi_send_page().

Variable Documentation

◆ latin1

int latin1 = -1

Definition at line 5 of file lang.c.

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

◆ lang_char

unsigned char lang_char[256]
static

Definition at line 7 of file lang.c.

Referenced by conv2latin(), and lang_init().

◆ marks

struct mark marks[16]
static

◆ g2map_latin1

unsigned char 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 72 of file lang.c.

Referenced by do_enhancements().

◆ g2map_latin2

unsigned char 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 81 of file lang.c.

Referenced by do_enhancements().