MythTV  master
Macros | Functions | Variables
cc608decoder.cpp File Reference
#include <algorithm>
#include <QStringList>
#include <QCoreApplication>
#include "format.h"
#include "cc608decoder.h"
#include "mythcontext.h"
#include "mythlogging.h"
#include "vbilut.h"
Include dependency graph for cc608decoder.cpp:

Go to the source code of this file.

Macros

#define DEBUG_XDS   0
 
#define _PIL_(day, mon, hour, min)   (((day) << 15) + ((mon) << 11) + ((hour) << 6) + ((min) << 0))
 

Functions

static void init_xds_program_type (QString xds_program_type[96])
 
static bool IsPrintable (char c)
 
static char Printable (char c)
 
static void DumpPIL (int pil)
 
static bool is_better (const QString &newStr, const QString &oldStr)
 

Variables

static const int rowdata []
 
static const QChar specialchar []
 
static const QChar extendedchar2 []
 
static const QChar extendedchar3 []
 
static int b1_to_service [16]
 

Macro Definition Documentation

◆ DEBUG_XDS

#define DEBUG_XDS   0

Definition at line 19 of file cc608decoder.cpp.

◆ _PIL_

#define _PIL_ (   day,
  mon,
  hour,
  min 
)    (((day) << 15) + ((mon) << 11) + ((hour) << 6) + ((min) << 0))

Function Documentation

◆ init_xds_program_type()

static void init_xds_program_type ( QString  xds_program_type[96])
static

Definition at line 1442 of file cc608decoder.cpp.

Referenced by CC608Decoder::CC608Decoder().

◆ IsPrintable()

static bool IsPrintable ( char  c)
static

Definition at line 821 of file cc608decoder.cpp.

Referenced by Printable().

◆ Printable()

static char Printable ( char  c)
static

Definition at line 826 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ DumpPIL()

static void DumpPIL ( int  pil)
static

Definition at line 843 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ is_better()

static bool is_better ( const QString &  newStr,
const QString &  oldStr 
)
static

Variable Documentation

◆ rowdata

const int rowdata[]
static
Initial value:
=
{
11, -1, 1, 2, 3, 4, 12, 13,
14, 15, 5, 6, 7, 8, 9, 10
}

Definition at line 63 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatCCField().

◆ specialchar

const QChar specialchar[]
static
Initial value:
=
{
QLatin1Char(0xAE), QLatin1Char(0xB0), QLatin1Char(0xBD), QLatin1Char(0xBF),
0x2122, QLatin1Char(0xA2), QLatin1Char(0xA3), 0x266A,
QLatin1Char(0xE0), QLatin1Char(' '), QLatin1Char(0xE8), QLatin1Char(0xE2),
QLatin1Char(0xEA), QLatin1Char(0xEE), QLatin1Char(0xF4), QLatin1Char(0xFB)
}

Definition at line 69 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatCCField().

◆ extendedchar2

const QChar extendedchar2[]
static
Initial value:
=
{
QLatin1Char(0xC1), QLatin1Char(0xC9), QLatin1Char(0xD3), QLatin1Char(0xDA),
QLatin1Char(0xDC), QLatin1Char(0xFC), QLatin1Char('`'), QLatin1Char(0xA1),
QLatin1Char('*'), QLatin1Char('\''), 0x2014, QLatin1Char(0xA9),
0x2120, QLatin1Char(0xB7), 0x201C, 0x201D,
QLatin1Char(0xC0), QLatin1Char(0xC2), QLatin1Char(0xC7), QLatin1Char(0xC8),
QLatin1Char(0xCA), QLatin1Char(0xCB), QLatin1Char(0xEB), QLatin1Char(0xCE),
QLatin1Char(0xCF), QLatin1Char(0xEF), QLatin1Char(0xD4), QLatin1Char(0xD9),
QLatin1Char(0xF9), QLatin1Char(0xDB), QLatin1Char(0xAB), QLatin1Char(0xBB)
}

Definition at line 77 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatCCField().

◆ extendedchar3

const QChar extendedchar3[]
static
Initial value:
=
{
QLatin1Char(0xC3), QLatin1Char(0xE3), QLatin1Char(0xCD), QLatin1Char(0xCC),
QLatin1Char(0xEC), QLatin1Char(0xD2), QLatin1Char(0xF2), QLatin1Char(0xD5),
QLatin1Char(0xF5), QLatin1Char('{'), QLatin1Char('}'), QLatin1Char('\\'),
QLatin1Char('^'), QLatin1Char('_'), QLatin1Char(0xA6), QLatin1Char('~'),
QLatin1Char(0xC4), QLatin1Char(0xE4), QLatin1Char(0xD6), QLatin1Char(0xF6),
QLatin1Char(0xDF), QLatin1Char(0xA5), QLatin1Char(0xA4), QLatin1Char('|'),
QLatin1Char(0xC5), QLatin1Char(0xE5), QLatin1Char(0xD8), QLatin1Char(0xF8),
0x250C, 0x2510, 0x2514, 0x2518
}

Definition at line 89 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatCCField().

◆ b1_to_service

int b1_to_service[16]
static
Initial value:
=
{ -1,
0, 0,
1, 1,
2, 2,
3, 3,
4, 4,
5, 5,
6, 6,
-1,
}

Definition at line 1103 of file cc608decoder.cpp.

Referenced by CC608Decoder::XDSDecode().