#include <cc608decoder.h>
Public Member Functions | |
| CC608Decoder (CC608Input *ccr) | |
| ~CC608Decoder () | |
| void | FormatCC (int tc, int code1, int code2) |
| void | FormatCCField (int tc, int field, int data) |
| int | FalseDup (int tc, int field, int data) |
| void | DecodeVPS (const unsigned char *buf) |
| void | DecodeWSS (const unsigned char *buf) |
| void | SetIgnoreTimecode (bool val) |
| uint | GetRatingSystems (bool future) const |
| uint | GetRating (uint i, bool future) const |
| QString | GetRatingString (uint i, bool future) const |
| QString | GetProgramName (bool future) const |
| QString | GetProgramType (bool future) const |
| QString | GetXDS (const QString &key) const |
| void | GetServices (uint seconds, bool[4]) const |
Static Public Member Functions | |
| static QString | ToASCII (const QString &cc608, bool suppress_unknown) |
Private Member Functions | |
| QChar | CharCC (int code) const |
| void | ResetCC (int mode) |
| void | BufferCC (int mode, int len, int clr) |
| int | NewRowCC (int mode, int len) |
| QString | XDSDecodeString (const vector< unsigned char > &, uint string, uint end) const |
| void | XDSDecode (int field, int b1, int b2) |
| bool | XDSPacketParseProgram (const vector< unsigned char > &xds_buf, bool future) |
| bool | XDSPacketParseChannel (const vector< unsigned char > &xds_buf) |
| void | XDSPacketParse (const vector< unsigned char > &xds_buf) |
| bool | XDSPacketCRC (const vector< unsigned char > &xds_buf) |
Private Attributes | |
| CC608Input * | reader |
| bool | ignore_time_code |
| time_t | last_seen [4] |
| int | badvbi [2] |
| int | lasttc [2] |
| int | lastcode [2] |
| int | lastcodetc [2] |
| int | ccmode [2] |
| int | xds [2] |
| int | txtmode [4] |
| int | lastrow [8] |
| int | newrow [8] |
| int | newcol [8] |
| int | newattr [8] |
| int | timecode [8] |
| int | row [8] |
| int | col [8] |
| int | rowcount [8] |
| int | style [8] |
| int | linecont [8] |
| int | resumetext [8] |
| int | lastclr [8] |
| QString | ccbuf [8] |
| QChar | stdchar [128] |
| unsigned char * | rbuf |
| int | last_format_tc [2] |
| int | last_format_data [2] |
| char | vps_pr_label [20] |
| char | vps_label [20] |
| int | vps_l |
| uint | wss_flags |
| bool | wss_valid |
| vector< unsigned char > | xds_buf |
| uint | xds_crc_passed |
| uint | xds_crc_failed |
| QMutex | xds_lock |
| uint | xds_rating_systems [2] |
| uint | xds_rating [2][4] |
| QString | xds_program_name [2] |
| vector< uint > | xds_program_type [2] |
| QString | xds_net_call |
| QString | xds_net_name |
| uint | xds_tsid |
| QString | xds_program_type_string [96] |
Definition at line 41 of file cc608decoder.h.
| CC608Decoder::CC608Decoder | ( | CC608Input * | ccr | ) |
Definition at line 20 of file cc608decoder.cpp.
| CC608Decoder::~CC608Decoder | ( | void | ) |
Definition at line 90 of file cc608decoder.cpp.
| void CC608Decoder::FormatCC | ( | int | tc, | |
| int | code1, | |||
| int | code2 | |||
| ) |
Definition at line 96 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::DecodeDTVCC(), and NuppelVideoRecorder::FormatCC().
| void CC608Decoder::FormatCCField | ( | int | tc, | |
| int | field, | |||
| int | data | |||
| ) |
Definition at line 139 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::DecodeDTVCC(), FormatCC(), and AvFormatDecoder::ProcessVBIDataPacket().
| int CC608Decoder::FalseDup | ( | int | tc, | |
| int | field, | |||
| int | data | |||
| ) |
Definition at line 573 of file cc608decoder.cpp.
Referenced by FormatCCField().
| void CC608Decoder::DecodeVPS | ( | const unsigned char * | buf | ) |
Definition at line 907 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::ProcessVBIDataPacket().
| void CC608Decoder::DecodeWSS | ( | const unsigned char * | buf | ) |
Definition at line 947 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::ProcessVBIDataPacket().
| void CC608Decoder::SetIgnoreTimecode | ( | bool | val | ) | [inline] |
Definition at line 54 of file cc608decoder.h.
Referenced by AvFormatDecoder::AvFormatDecoder().
Definition at line 1032 of file cc608decoder.cpp.
Referenced by GetXDS().
Definition at line 1038 of file cc608decoder.cpp.
Referenced by GetRatingString(), and XDSPacketParseProgram().
Definition at line 1044 of file cc608decoder.cpp.
Referenced by GetXDS(), and XDSPacketParseProgram().
| QString CC608Decoder::GetProgramName | ( | bool | future | ) | const |
Definition at line 1084 of file cc608decoder.cpp.
Referenced by GetXDS(), and XDSPacketParseProgram().
| QString CC608Decoder::GetProgramType | ( | bool | future | ) | const |
Definition at line 1092 of file cc608decoder.cpp.
Referenced by GetXDS(), and XDSPacketParseProgram().
| QString CC608Decoder::GetXDS | ( | const QString & | key | ) | const |
Definition at line 1109 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::GetXDS().
Definition at line 102 of file cc608decoder.cpp.
Referenced by AvFormatDecoder::UpdateCaptionTracksFromStreams().
| QString CC608Decoder::ToASCII | ( | const QString & | cc608, | |
| bool | suppress_unknown | |||
| ) | [static] |
Definition at line 659 of file cc608decoder.cpp.
Referenced by BufferCC().
| QChar CC608Decoder::CharCC | ( | int | code | ) | const [inline, private] |
Definition at line 69 of file cc608decoder.h.
Referenced by FormatCCField(), XDSDecode(), and XDSDecodeString().
| void CC608Decoder::ResetCC | ( | int | mode | ) | [private] |
Definition at line 643 of file cc608decoder.cpp.
Referenced by FormatCCField().
| void CC608Decoder::BufferCC | ( | int | mode, | |
| int | len, | |||
| int | clr | |||
| ) | [private] |
Definition at line 695 of file cc608decoder.cpp.
Referenced by FormatCCField(), and NewRowCC().
| int CC608Decoder::NewRowCC | ( | int | mode, | |
| int | len | |||
| ) | [private] |
Definition at line 758 of file cc608decoder.cpp.
Referenced by FormatCCField().
| QString CC608Decoder::XDSDecodeString | ( | const vector< unsigned char > & | buf, | |
| uint | string, | |||
| uint | end | |||
| ) | const [private] |
Definition at line 987 of file cc608decoder.cpp.
Referenced by XDSPacketParse(), XDSPacketParseChannel(), and XDSPacketParseProgram().
| void CC608Decoder::XDSDecode | ( | int | field, | |
| int | b1, | |||
| int | b2 | |||
| ) | [private] |
Definition at line 1155 of file cc608decoder.cpp.
Referenced by FormatCCField().
| bool CC608Decoder::XDSPacketParseProgram | ( | const vector< unsigned char > & | xds_buf, | |
| bool | future | |||
| ) | [private] |
Definition at line 1239 of file cc608decoder.cpp.
Referenced by XDSPacketParse().
| bool CC608Decoder::XDSPacketParseChannel | ( | const vector< unsigned char > & | xds_buf | ) | [private] |
Definition at line 1400 of file cc608decoder.cpp.
Referenced by XDSPacketParse().
| void CC608Decoder::XDSPacketParse | ( | const vector< unsigned char > & | xds_buf | ) | [private] |
Definition at line 1184 of file cc608decoder.cpp.
Referenced by XDSDecode().
| bool CC608Decoder::XDSPacketCRC | ( | const vector< unsigned char > & | xds_buf | ) | [private] |
Definition at line 1218 of file cc608decoder.cpp.
Referenced by XDSDecode().
CC608Input* CC608Decoder::reader [private] |
Definition at line 84 of file cc608decoder.h.
Referenced by BufferCC().
bool CC608Decoder::ignore_time_code [private] |
Definition at line 86 of file cc608decoder.h.
Referenced by FalseDup(), FormatCCField(), and SetIgnoreTimecode().
time_t CC608Decoder::last_seen[4] [private] |
Definition at line 88 of file cc608decoder.h.
Referenced by BufferCC(), and GetServices().
int CC608Decoder::badvbi[2] [private] |
Definition at line 91 of file cc608decoder.h.
Referenced by CC608Decoder(), FalseDup(), and FormatCCField().
int CC608Decoder::lasttc[2] [private] |
Definition at line 92 of file cc608decoder.h.
Referenced by CC608Decoder(), FalseDup(), and FormatCCField().
int CC608Decoder::lastcode[2] [private] |
Definition at line 93 of file cc608decoder.h.
Referenced by CC608Decoder(), FalseDup(), and FormatCCField().
int CC608Decoder::lastcodetc[2] [private] |
Definition at line 94 of file cc608decoder.h.
Referenced by CC608Decoder(), FalseDup(), and FormatCCField().
int CC608Decoder::ccmode[2] [private] |
Definition at line 95 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), and FormatCCField().
int CC608Decoder::xds[2] [private] |
Definition at line 96 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), and XDSDecode().
int CC608Decoder::txtmode[4] [private] |
Definition at line 97 of file cc608decoder.h.
Referenced by CC608Decoder(), and FormatCCField().
int CC608Decoder::lastrow[8] [private] |
Definition at line 100 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), and NewRowCC().
int CC608Decoder::newrow[8] [private] |
Definition at line 101 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), and NewRowCC().
int CC608Decoder::newcol[8] [private] |
Definition at line 102 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), and NewRowCC().
int CC608Decoder::newattr[8] [private] |
Definition at line 103 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), and NewRowCC().
int CC608Decoder::timecode[8] [private] |
Definition at line 104 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), and FormatCCField().
int CC608Decoder::row[8] [private] |
Definition at line 105 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), NewRowCC(), and ResetCC().
int CC608Decoder::col[8] [private] |
Definition at line 106 of file cc608decoder.h.
Referenced by CC608Decoder(), FormatCCField(), NewRowCC(), and ResetCC().
int CC608Decoder::rowcount[8] [private] |
Definition at line 107 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), and ResetCC().
int CC608Decoder::style[8] [private] |
Definition at line 108 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), and NewRowCC().
int CC608Decoder::linecont[8] [private] |
Definition at line 109 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), NewRowCC(), and ResetCC().
int CC608Decoder::resumetext[8] [private] |
Definition at line 110 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), and ResetCC().
int CC608Decoder::lastclr[8] [private] |
Definition at line 111 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), and ResetCC().
QString CC608Decoder::ccbuf[8] [private] |
Definition at line 112 of file cc608decoder.h.
Referenced by BufferCC(), CC608Decoder(), FormatCCField(), NewRowCC(), and ResetCC().
QChar CC608Decoder::stdchar[128] [private] |
Definition at line 115 of file cc608decoder.h.
Referenced by CC608Decoder(), and CharCC().
unsigned char* CC608Decoder::rbuf [private] |
Definition at line 118 of file cc608decoder.h.
Referenced by BufferCC(), and ~CC608Decoder().
int CC608Decoder::last_format_tc[2] [private] |
Definition at line 119 of file cc608decoder.h.
Referenced by CC608Decoder(), and FormatCCField().
int CC608Decoder::last_format_data[2] [private] |
Definition at line 120 of file cc608decoder.h.
Referenced by CC608Decoder(), and FormatCCField().
char CC608Decoder::vps_pr_label[20] [private] |
Definition at line 123 of file cc608decoder.h.
Referenced by CC608Decoder(), and DecodeVPS().
char CC608Decoder::vps_label[20] [private] |
Definition at line 124 of file cc608decoder.h.
Referenced by CC608Decoder(), and DecodeVPS().
int CC608Decoder::vps_l [private] |
Definition at line 125 of file cc608decoder.h.
Referenced by DecodeVPS().
uint CC608Decoder::wss_flags [private] |
Definition at line 128 of file cc608decoder.h.
Referenced by DecodeWSS().
bool CC608Decoder::wss_valid [private] |
Definition at line 129 of file cc608decoder.h.
Referenced by DecodeWSS().
vector<unsigned char> CC608Decoder::xds_buf [private] |
Definition at line 131 of file cc608decoder.h.
Referenced by XDSDecode().
uint CC608Decoder::xds_crc_passed [private] |
Definition at line 132 of file cc608decoder.h.
Referenced by XDSPacketCRC().
uint CC608Decoder::xds_crc_failed [private] |
Definition at line 133 of file cc608decoder.h.
Referenced by XDSPacketCRC().
QMutex CC608Decoder::xds_lock [mutable, private] |
Definition at line 135 of file cc608decoder.h.
Referenced by GetProgramName(), GetProgramType(), GetRating(), GetRatingString(), GetRatingSystems(), GetXDS(), and XDSPacketParse().
uint CC608Decoder::xds_rating_systems[2] [private] |
Definition at line 136 of file cc608decoder.h.
Referenced by CC608Decoder(), GetRatingSystems(), and XDSPacketParseProgram().
uint CC608Decoder::xds_rating[2][4] [private] |
Definition at line 137 of file cc608decoder.h.
Referenced by CC608Decoder(), GetRating(), GetRatingString(), and XDSPacketParseProgram().
QString CC608Decoder::xds_program_name[2] [private] |
Definition at line 138 of file cc608decoder.h.
Referenced by CC608Decoder(), GetProgramName(), and XDSPacketParseProgram().
vector<uint> CC608Decoder::xds_program_type[2] [private] |
Definition at line 139 of file cc608decoder.h.
Referenced by GetProgramType(), and XDSPacketParseProgram().
QString CC608Decoder::xds_net_call [private] |
Definition at line 141 of file cc608decoder.h.
Referenced by GetXDS(), and XDSPacketParseChannel().
QString CC608Decoder::xds_net_name [private] |
Definition at line 142 of file cc608decoder.h.
Referenced by GetXDS(), and XDSPacketParseChannel().
uint CC608Decoder::xds_tsid [private] |
Definition at line 143 of file cc608decoder.h.
Referenced by GetXDS(), and XDSPacketParseChannel().
QString CC608Decoder::xds_program_type_string[96] [private] |
Definition at line 145 of file cc608decoder.h.
Referenced by CC608Decoder(), and GetProgramType().
1.6.3