MythTV master
|
#include <cstdio>
#include <cstdlib>
#include "libmythbase/mythlogging.h"
#include "captions/cc708reader.h"
#include "captions/cc708decoder.h"
Go to the source code of this file.
Macros | |
#define | LOC QString("CC708: ") |
#define | DEBUG_CAPTIONS 0 |
#define | DEBUG_CC_SERVICE 0 |
#define | DEBUG_CC_SERVICE_2 0 |
#define | DEBUG_CC_SERVICE_BLOCK 0 |
#define | DEBUG_CC_RAWPACKET 0 |
#define | DEBUG_CC_VALIDPACKET 0 |
#define | DEBUG_CC_DECODE 0 |
#define | DEBUG_CC_PARSE 0 |
#define | SEND_STR |
Typedefs | |
using | cc_table = std::array< const uint16_t, 0x60 > |
Enumerations | |
enum | kCCTypes : std::uint8_t { NTSC_CC_f1 = 0 , NTSC_CC_f2 = 1 , DTVCC_PACKET_DATA = 2 , DTVCC_PACKET_START = 3 } |
enum | C0 : std::uint8_t { NUL = 0x00 , ETX = 0x03 , BS = 0x08 , FF = 0x0C , CR = 0x0D , HCR = 0x0E , EXT1 = 0x10 , P16 = 0x18 } |
enum | C1 : std::uint8_t { CW0 =0x80 , CW1 =0x81 , CW2 =0x82 , CW3 =0x83 , CW4 =0x84 , CW5 =0x85 , CW6 =0x86 , CW7 =0x87 , CLW =0x88 , DSW =0x89 , HDW =0x8A , TGW =0x8B , DLW =0x8C , DLY =0x8D , DLC =0x8E , RST =0x8F , SPA =0x90 , SPC =0x91 , SPL =0x92 , SWA =0x97 , DF0 =0x98 , DF1 =0x99 , DF2 =0x9A , DF3 =0x9B , DF4 =0x9C , DF5 =0x9D , DF6 =0x9E , DF7 =0x9F } |
Functions | |
static void | parse_cc_packet (CC708Reader *cb_cbs, CaptionPacket *pkt, cc708_seen_times &last_seen) |
static void | append_character (CC708Reader *cc, uint service_num, short ch) |
static void | parse_cc_service_stream (CC708Reader *cc, uint service_num) |
static int | handle_cc_c0_ext1_p16 (CC708Reader *cc, uint service_num, int i) |
static int | handle_cc_c1 (CC708Reader *cc, uint service_num, int i) |
static int | handle_cc_c2 (CC708Reader *cc, uint service_num, int i) |
static int | handle_cc_c3 (CC708Reader *cc, uint service_num, int i) |
static bool | rightsize_buf (CC708Reader *cc, uint service_num, uint block_size) |
static void | append_cc (CC708Reader *cc, uint service_num, const unsigned char *blk_buf, int block_size) |
Variables | |
const std::array< const std::string, 4 > | cc_types |
const cc_table | CCtableG0 |
const cc_table | CCtableG1 |
const cc_table | CCtableG2 |
const cc_table | CCtableG3 |
#define DEBUG_CAPTIONS 0 |
Definition at line 13 of file cc708decoder.cpp.
#define DEBUG_CC_DECODE 0 |
Definition at line 19 of file cc708decoder.cpp.
#define DEBUG_CC_PARSE 0 |
Definition at line 20 of file cc708decoder.cpp.
#define DEBUG_CC_RAWPACKET 0 |
Definition at line 17 of file cc708decoder.cpp.
#define DEBUG_CC_SERVICE 0 |
Definition at line 14 of file cc708decoder.cpp.
#define DEBUG_CC_SERVICE_2 0 |
Definition at line 15 of file cc708decoder.cpp.
#define DEBUG_CC_SERVICE_BLOCK 0 |
Definition at line 16 of file cc708decoder.cpp.
#define DEBUG_CC_VALIDPACKET 0 |
Definition at line 18 of file cc708decoder.cpp.
#define LOC QString("CC708: ") |
Definition at line 11 of file cc708decoder.cpp.
#define SEND_STR |
Definition at line 124 of file cc708decoder.cpp.
Definition at line 111 of file cc708decoder.cpp.
enum C0 : std::uint8_t |
Enumerator | |
---|---|
NUL | |
ETX | |
BS | |
FF | |
CR | |
HCR | |
EXT1 | |
P16 |
Definition at line 91 of file cc708decoder.cpp.
enum C1 : std::uint8_t |
Enumerator | |
---|---|
CW0 | |
CW1 | |
CW2 | |
CW3 | |
CW4 | |
CW5 | |
CW6 | |
CW7 | |
CLW | |
DSW | |
HDW | |
TGW | |
DLW | |
DLY | |
DLC | |
RST | |
SPA | |
SPC | |
SPL | |
SWA | |
DF0 | |
DF1 | |
DF2 | |
DF3 | |
DF4 | |
DF5 | |
DF6 | |
DF7 |
Definition at line 103 of file cc708decoder.cpp.
enum kCCTypes : std::uint8_t |
Enumerator | |
---|---|
NTSC_CC_f1 | |
NTSC_CC_f2 | |
DTVCC_PACKET_DATA | |
DTVCC_PACKET_START |
Definition at line 22 of file cc708decoder.cpp.
|
static |
Definition at line 607 of file cc708decoder.cpp.
Referenced by parse_cc_packet().
|
static |
Definition at line 717 of file cc708decoder.cpp.
Referenced by handle_cc_c0_ext1_p16(), and parse_cc_service_stream().
|
static |
Definition at line 311 of file cc708decoder.cpp.
Referenced by parse_cc_service_stream().
|
static |
Definition at line 380 of file cc708decoder.cpp.
Referenced by parse_cc_service_stream().
|
static |
Definition at line 516 of file cc708decoder.cpp.
Referenced by handle_cc_c0_ext1_p16().
|
static |
Definition at line 543 of file cc708decoder.cpp.
Referenced by handle_cc_c0_ext1_p16().
|
static |
Definition at line 632 of file cc708decoder.cpp.
Referenced by CC708Decoder::decode_cc_data().
|
static |
Definition at line 135 of file cc708decoder.cpp.
Referenced by append_cc().
|
static |
Definition at line 571 of file cc708decoder.cpp.
Referenced by append_cc().
const std::array<const std::string, 4> cc_types |
Definition at line 30 of file cc708decoder.cpp.
const cc_table CCtableG0 |
Definition at line 743 of file cc708decoder.cpp.
Referenced by parse_cc_service_stream().
const cc_table CCtableG1 |
Definition at line 763 of file cc708decoder.cpp.
Referenced by parse_cc_service_stream().
const cc_table CCtableG2 |
Definition at line 798 of file cc708decoder.cpp.
Referenced by handle_cc_c0_ext1_p16().
const cc_table CCtableG3 |
Definition at line 847 of file cc708decoder.cpp.
Referenced by handle_cc_c0_ext1_p16().