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

Go to the source code of this file.

Macros

#define DEBUG_XDS   0
 

Functions

static void init_xds_program_type (CC608ProgramType &xds_program_type)
 
static bool IsPrintable (char c)
 
static char Printable (char c)
 
static constexpr int PIL_TIME (int day, int mon, int hour, int min)
 
static void DumpPIL (int pil)
 
static bool is_better (const QString &newStr, const QString &oldStr)
 

Variables

static const std::array< const int, 16 > rowdata
 
static const std::array< const QChar, 16 > specialchar
 
static const std::array< const QChar, 32 > extendedchar2
 
static const std::array< const QChar, 32 > extendedchar3
 
static std::array< const int, 16 > b1_to_service
 

Macro Definition Documentation

◆ DEBUG_XDS

#define DEBUG_XDS   0

Definition at line 20 of file cc608decoder.cpp.

Function Documentation

◆ init_xds_program_type()

static void init_xds_program_type ( CC608ProgramType xds_program_type)
static

Definition at line 1445 of file cc608decoder.cpp.

Referenced by CC608Decoder::CC608Decoder().

◆ IsPrintable()

static bool IsPrintable ( char  c)
static

Definition at line 832 of file cc608decoder.cpp.

Referenced by Printable().

◆ Printable()

static char Printable ( char  c)
static

Definition at line 837 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ PIL_TIME()

static constexpr int PIL_TIME ( int  day,
int  mon,
int  hour,
int  min 
)
staticconstexpr

Definition at line 854 of file cc608decoder.cpp.

Referenced by DumpPIL().

◆ DumpPIL()

static void DumpPIL ( int  pil)
static

Definition at line 857 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 std::array<const int,16> 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 std::array<const QChar,16> specialchar
static
Initial value:
=
{
QLatin1Char(0xAE), QLatin1Char(0xB0), QLatin1Char(0xBD), QLatin1Char(0xBF),
QChar(0x2122), QLatin1Char(0xA2), QLatin1Char(0xA3), QChar(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 std::array<const QChar,32> extendedchar2
static
Initial value:
=
{
QLatin1Char(0xC1), QLatin1Char(0xC9), QLatin1Char(0xD3), QLatin1Char(0xDA),
QLatin1Char(0xDC), QLatin1Char(0xFC), QLatin1Char('`'), QLatin1Char(0xA1),
QLatin1Char('*'), QLatin1Char('\''), QChar(0x2014), QLatin1Char(0xA9),
QChar(0x2120), QLatin1Char(0xB7), QChar(0x201C), QChar(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 std::array<const QChar,32> 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),
QChar(0x250C), QChar(0x2510), QChar(0x2514), QChar(0x2518)
}

Definition at line 89 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatCCField().

◆ b1_to_service

std::array<const int,16> b1_to_service
static
Initial value:
{ -1,
0, 0,
1, 1,
2, 2,
3, 3,
4, 4,
5, 5,
6, 6,
-1,
}

Definition at line 1111 of file cc608decoder.cpp.

Referenced by CC608Decoder::XDSDecode().