MythTV master
Macros | Functions | Variables
cc608decoder.cpp File Reference
#include "captions/cc608decoder.h"
#include <algorithm>
#include <cstdint>
#include <vector>
#include <QStringList>
#include <QCoreApplication>
#include "libmythbase/mythlogging.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 (uint8_t c)
 
static int8_t Printable (uint8_t 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 uint8_t, 256 > vbi_bit_reverse
 
static const std::array< const std::string, 8 > formats
 
static const std::array< const std::string, 4 > subtitles
 
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 17 of file cc608decoder.cpp.

Function Documentation

◆ DumpPIL()

static void DumpPIL ( int  pil)
static

Definition at line 926 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().

◆ init_xds_program_type()

static void init_xds_program_type ( CC608ProgramType xds_program_type)
static

Definition at line 1520 of file cc608decoder.cpp.

Referenced by CC608Decoder::CC608Decoder().

◆ is_better()

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

◆ IsPrintable()

static bool IsPrintable ( uint8_t  c)
static

Definition at line 901 of file cc608decoder.cpp.

Referenced by Printable().

◆ PIL_TIME()

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

Definition at line 923 of file cc608decoder.cpp.

Referenced by DumpPIL().

◆ Printable()

static int8_t Printable ( uint8_t  c)
static

Definition at line 906 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().

Variable Documentation

◆ 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 1179 of file cc608decoder.cpp.

Referenced by CC608Decoder::XDSDecode().

◆ extendedchar2

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

Definition at line 130 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatControlCode().

◆ extendedchar3

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

Definition at line 142 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatControlCode().

◆ formats

const std::array<const std::string, 8> formats
static

◆ 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 116 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatControlCode().

◆ specialchar

const std::array<const QChar,16> specialchar
static
Initial value:
=
{
QChar(0xAE), QChar(0xB0), QChar(0xBD), QChar(0xBF),
QChar(0x2122), QChar(0xA2), QChar(0xA3), QChar(0x266A),
QChar(0xE0), QChar(' '), QChar(0xE8), QChar(0xE2),
QChar(0xEA), QChar(0xEE), QChar(0xF4), QChar(0xFB)
}

Definition at line 122 of file cc608decoder.cpp.

Referenced by CC608Decoder::FormatControlCode().

◆ subtitles

const std::array<const std::string,4> subtitles
static
Initial value:
{
"none",
"in active image area",
"out of active image area",
"?"
}

Definition at line 67 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeWSS().

◆ vbi_bit_reverse

const std::array<const uint8_t,256> vbi_bit_reverse
static

Definition at line 19 of file cc608decoder.cpp.

Referenced by CC608Decoder::DecodeVPS().