MythTV  0.26-pre
Classes | Public Member Functions | Protected Types | Protected Attributes | Private Types | Private Member Functions
MythCCExtractorPlayer Class Reference

#include <mythccextractorplayer.h>

Inheritance diagram for MythCCExtractorPlayer:
MythPlayer

List of all members.

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 CC708ReaderGetCC708Reader (uint id=0)
virtual CC608ReaderGetCC608Reader (uint id=0)
virtual SubtitleReaderGetSubReader (uint id=0)
virtual TeletextReaderGetTeletextReader (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, WindowsOnServicem_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.

Detailed Description

Definition at line 117 of file mythccextractorplayer.h.


Member Typedef Documentation

typedef QHash<uint, QMap<int, Window> > MythCCExtractorPlayer::WindowsOnService [protected]

Definition at line 169 of file mythccextractorplayer.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
kProcessNormal 
kProcessFinalize 

Definition at line 135 of file mythccextractorplayer.h.


Constructor & Destructor Documentation

MythCCExtractorPlayer::MythCCExtractorPlayer ( PlayerFlags  flags,
bool  showProgress,
const QString &  fileName 
)

Definition at line 50 of file mythccextractorplayer.cpp.

Definition at line 122 of file mythccextractorplayer.h.


Member Function Documentation

Definition at line 118 of file mythccextractorplayer.cpp.

Referenced by RunCCExtract().

Reimplemented from MythPlayer.

Definition at line 772 of file mythccextractorplayer.cpp.

Reimplemented from MythPlayer.

Definition at line 783 of file mythccextractorplayer.cpp.

Reimplemented from MythPlayer.

Definition at line 800 of file mythccextractorplayer.cpp.

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.

Parameters:
contentText content of new subtitle (may be empty).
listQueue 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.

Parameters:
contentContent 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.

Definition at line 284 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame().

Definition at line 336 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame(), and run().

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().

Definition at line 465 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame(), and run().

Definition at line 539 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame().

Definition at line 565 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame().

Definition at line 615 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame().

Definition at line 713 of file mythccextractorplayer.cpp.

Referenced by OnGotNewFrame(), and run().

Call it when you got new video frame to process subtitles if any.

Definition at line 70 of file mythccextractorplayer.cpp.

Referenced by run().


Member Data Documentation

Definition at line 157 of file mythccextractorplayer.h.

Referenced by GetTeletextReader(), IngestTeletext(), and ProcessTeletext().

Definition at line 158 of file mythccextractorplayer.h.

Referenced by GetSubReader(), IngestDVBSubtitles(), and ProcessDVBSubtitles().

Definition at line 170 of file mythccextractorplayer.h.

Referenced by Ingest708Caption().

Keeps track for decoding time to make timestamps for subtitles.

Definition at line 173 of file mythccextractorplayer.h.

Referenced by IngestSubtitle(), OnGotNewFrame(), and run().

Definition at line 174 of file mythccextractorplayer.h.

Referenced by OnGotNewFrame(), and run().

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().

QString MythCCExtractorPlayer::m_baseName [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends