|
MythTV
0.26-pre
|
#include <mythccextractorplayer.h>
Classes | |
| class | Window |
| Keeps cc708 windows (1-8) for all streams & services (which ids are the keys). More... | |
Public Member Functions | |
| MythCCExtractorPlayer (PlayerFlags flags, bool showProgress, const QString &fileName) | |
| ~MythCCExtractorPlayer () | |
| bool | run (void) |
| virtual CC708Reader * | GetCC708Reader (uint id=0) |
| virtual CC608Reader * | GetCC608Reader (uint id=0) |
| virtual SubtitleReader * | GetSubReader (uint id=0) |
| virtual TeletextReader * | GetTeletextReader (uint id=0) |
Protected Types | |
| typedef QHash< uint, QMap< int, Window > > | WindowsOnService |
Protected Attributes | |
| CC608Info | m_cc608_info |
| CC708Info | m_cc708_info |
| TeletextInfo | m_ttx_info |
| DVBSubInfo | m_dvbsub_info |
| QHash< uint, WindowsOnService > | m_cc708_windows |
| double | m_curTime |
| Keeps track for decoding time to make timestamps for subtitles. | |
| uint64_t | m_myFramesPlayed |
| bool | m_showProgress |
| QString | m_fileName |
| QDir | m_workingDir |
| QString | m_baseName |
Private Types | |
| enum | { kProcessNormal = 0, kProcessFinalize = 1 } |
Private Member Functions | |
| void | IngestSubtitle (QList< OneSubtitle > &, const QStringList &) |
| Adds new subtitle, finishes last if needed. | |
| void | IngestSubtitle (QList< OneSubtitle > &, const OneSubtitle &) |
| Adds new subtitle, finishes last if needed. | |
| void | Ingest608Captions (void) |
| void | Process608Captions (uint flags) |
| void | Ingest708Captions (void) |
| void | Ingest708Caption (uint streamId, uint serviceIdx, uint windowIdx, uint start_row, uint start_column, const CC708Window &win, const vector< CC708String * > &content) |
| void | Process708Captions (uint flags) |
| void | IngestTeletext (void) |
| void | ProcessTeletext (void) |
| void | IngestDVBSubtitles (void) |
| void | ProcessDVBSubtitles (uint flags) |
| void | OnGotNewFrame (void) |
| Call it when you got new video frame to process subtitles if any. | |
Definition at line 117 of file mythccextractorplayer.h.
typedef QHash<uint, QMap<int, Window> > MythCCExtractorPlayer::WindowsOnService [protected] |
Definition at line 169 of file mythccextractorplayer.h.
anonymous enum [private] |
Definition at line 135 of file mythccextractorplayer.h.
| MythCCExtractorPlayer::MythCCExtractorPlayer | ( | PlayerFlags | flags, |
| bool | showProgress, | ||
| const QString & | fileName | ||
| ) |
Definition at line 50 of file mythccextractorplayer.cpp.
| MythCCExtractorPlayer::~MythCCExtractorPlayer | ( | ) | [inline] |
Definition at line 122 of file mythccextractorplayer.h.
Definition at line 118 of file mythccextractorplayer.cpp.
Referenced by RunCCExtract().
| CC708Reader * MythCCExtractorPlayer::GetCC708Reader | ( | uint | id = 0 | ) | [virtual] |
Reimplemented from MythPlayer.
Definition at line 772 of file mythccextractorplayer.cpp.
| CC608Reader * MythCCExtractorPlayer::GetCC608Reader | ( | uint | id = 0 | ) | [virtual] |
Reimplemented from MythPlayer.
Definition at line 783 of file mythccextractorplayer.cpp.
| SubtitleReader * MythCCExtractorPlayer::GetSubReader | ( | uint | id = 0 | ) | [virtual] |
Reimplemented from MythPlayer.
Definition at line 800 of file mythccextractorplayer.cpp.
| TeletextReader * MythCCExtractorPlayer::GetTeletextReader | ( | uint | id = 0 | ) | [virtual] |
Reimplemented from MythPlayer.
Definition at line 793 of file mythccextractorplayer.cpp.
| void MythCCExtractorPlayer::IngestSubtitle | ( | QList< OneSubtitle > & | list, |
| const QStringList & | content | ||
| ) | [private] |
Adds new subtitle, finishes last if needed.
| content | Text content of new subtitle (may be empty). |
| list | Queue of subtitles we modify. |
Definition at line 207 of file mythccextractorplayer.cpp.
Referenced by Ingest608Captions(), Ingest708Caption(), IngestDVBSubtitles(), and IngestTeletext().
| void MythCCExtractorPlayer::IngestSubtitle | ( | QList< OneSubtitle > & | list, |
| const OneSubtitle & | content | ||
| ) | [private] |
Adds new subtitle, finishes last if needed.
This is a version for DVB graphical subtitles only.
| content | Content of the new subtitle (may be empty). We're going to use it's img & start_time fields. |
Definition at line 249 of file mythccextractorplayer.cpp.
| void MythCCExtractorPlayer::Ingest608Captions | ( | void | ) | [private] |
Definition at line 284 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame().
| void MythCCExtractorPlayer::Process608Captions | ( | uint | flags | ) | [private] |
Definition at line 336 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame(), and run().
| void MythCCExtractorPlayer::Ingest708Captions | ( | void | ) | [private] |
Definition at line 397 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame().
| void MythCCExtractorPlayer::Ingest708Caption | ( | uint | streamId, |
| uint | serviceIdx, | ||
| uint | windowIdx, | ||
| uint | start_row, | ||
| uint | start_column, | ||
| const CC708Window & | win, | ||
| const vector< CC708String * > & | content | ||
| ) | [private] |
Definition at line 428 of file mythccextractorplayer.cpp.
Referenced by Ingest708Captions().
| void MythCCExtractorPlayer::Process708Captions | ( | uint | flags | ) | [private] |
Definition at line 465 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame(), and run().
| void MythCCExtractorPlayer::IngestTeletext | ( | void | ) | [private] |
Definition at line 539 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame().
| void MythCCExtractorPlayer::ProcessTeletext | ( | void | ) | [private] |
Definition at line 565 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame().
| void MythCCExtractorPlayer::IngestDVBSubtitles | ( | void | ) | [private] |
Definition at line 615 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame().
| void MythCCExtractorPlayer::ProcessDVBSubtitles | ( | uint | flags | ) | [private] |
Definition at line 713 of file mythccextractorplayer.cpp.
Referenced by OnGotNewFrame(), and run().
| void MythCCExtractorPlayer::OnGotNewFrame | ( | void | ) | [private] |
Call it when you got new video frame to process subtitles if any.
Definition at line 70 of file mythccextractorplayer.cpp.
Referenced by run().
CC608Info MythCCExtractorPlayer::m_cc608_info [protected] |
Definition at line 155 of file mythccextractorplayer.h.
Referenced by GetCC608Reader(), Ingest608Captions(), Process608Captions(), and ProcessTeletext().
CC708Info MythCCExtractorPlayer::m_cc708_info [protected] |
Definition at line 156 of file mythccextractorplayer.h.
Referenced by GetCC708Reader(), Ingest708Caption(), Ingest708Captions(), and Process708Captions().
TeletextInfo MythCCExtractorPlayer::m_ttx_info [protected] |
Definition at line 157 of file mythccextractorplayer.h.
Referenced by GetTeletextReader(), IngestTeletext(), and ProcessTeletext().
DVBSubInfo MythCCExtractorPlayer::m_dvbsub_info [protected] |
Definition at line 158 of file mythccextractorplayer.h.
Referenced by GetSubReader(), IngestDVBSubtitles(), and ProcessDVBSubtitles().
QHash<uint, WindowsOnService > MythCCExtractorPlayer::m_cc708_windows [protected] |
Definition at line 170 of file mythccextractorplayer.h.
Referenced by Ingest708Caption().
double MythCCExtractorPlayer::m_curTime [protected] |
Keeps track for decoding time to make timestamps for subtitles.
Definition at line 173 of file mythccextractorplayer.h.
Referenced by IngestSubtitle(), OnGotNewFrame(), and run().
uint64_t MythCCExtractorPlayer::m_myFramesPlayed [protected] |
Definition at line 174 of file mythccextractorplayer.h.
Referenced by OnGotNewFrame(), and run().
bool MythCCExtractorPlayer::m_showProgress [protected] |
Definition at line 175 of file mythccextractorplayer.h.
Referenced by run().
QString MythCCExtractorPlayer::m_fileName [protected] |
Definition at line 176 of file mythccextractorplayer.h.
Referenced by MythCCExtractorPlayer(), and run().
QDir MythCCExtractorPlayer::m_workingDir [protected] |
Definition at line 177 of file mythccextractorplayer.h.
Referenced by MythCCExtractorPlayer(), Process608Captions(), Process708Captions(), ProcessDVBSubtitles(), and ProcessTeletext().
QString MythCCExtractorPlayer::m_baseName [protected] |
Definition at line 178 of file mythccextractorplayer.h.
Referenced by MythCCExtractorPlayer(), Process608Captions(), Process708Captions(), ProcessDVBSubtitles(), and ProcessTeletext().
1.7.6.1