#include <cc608reader.h>
Public Member Functions | |
| CC608Reader (MythPlayer *parent) | |
| ~CC608Reader () | |
| void | SetTTPageNum (int page) |
| void | SetEnabled (bool enable) |
| void | FlushTxtBuffers (void) |
| CC608Buffer * | GetOutputText (bool &changed, int &streamIdx) |
| CC608Buffer * | GetOutputText (bool &changed) |
| void | SetMode (int mode) |
| void | ClearBuffers (bool input, bool output, int outputStreamIdx=-1) |
| void | AddTextData (unsigned char *buf, int len, int64_t timecode, char type) |
| void | TranscodeWriteText (void(*func)(void *, unsigned char *, int, int, int), void *ptr) |
Private Member Functions | |
| int | Update (unsigned char *inpos) |
| void | Update608Text (vector< CC608Text * > *ccbuf, int replace=0, int scroll=0, bool scroll_prsv=false, int scroll_yoff=0, int scroll_ymax=15, int streamIdx=CC_CC1) |
| int | NumInputBuffers (bool need_to_lock=true) |
Private Attributes | |
| MythPlayer * | m_parent |
| bool | m_enabled |
| int | m_readPosition |
| int | m_writePosition |
| QMutex | m_inputBufLock |
| int | m_maxTextSize |
| TextContainer | m_inputBuffers [MAXTBUFFER+1] |
| int | m_ccMode |
| int | m_ccPageNum |
| CC608StateTracker | m_state [MAXOUTBUFFERS] |
Definition at line 82 of file cc608reader.h.
| CC608Reader::CC608Reader | ( | MythPlayer * | parent | ) |
Definition at line 11 of file cc608reader.cpp.
| CC608Reader::~CC608Reader | ( | ) |
Definition at line 22 of file cc608reader.cpp.
| void CC608Reader::SetTTPageNum | ( | int | page | ) | [inline] |
Definition at line 88 of file cc608reader.h.
Referenced by MythPlayer::MythPlayer(), and MythPlayer::SetTeletextPage().
| void CC608Reader::SetEnabled | ( | bool | enable | ) | [inline] |
Definition at line 89 of file cc608reader.h.
Referenced by SubtitleScreen::EnableSubtitles().
| void CC608Reader::FlushTxtBuffers | ( | void | ) |
Definition at line 35 of file cc608reader.cpp.
Referenced by Transcode::TranscodeFile().
| CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed, | |
| int & | streamIdx | |||
| ) |
Definition at line 59 of file cc608reader.cpp.
Referenced by SubtitleScreen::DisplayCC608Subtitles(), and GetOutputText().
| CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed | ) |
Definition at line 41 of file cc608reader.cpp.
| void CC608Reader::SetMode | ( | int | mode | ) |
Definition at line 155 of file cc608reader.cpp.
Referenced by MythPlayer::SetTrack().
Definition at line 449 of file cc608reader.cpp.
Referenced by SubtitleScreen::ClearNonDisplayedSubtitles(), GetOutputText(), Update(), and ~CC608Reader().
| void CC608Reader::AddTextData | ( | unsigned char * | buf, | |
| int | len, | |||
| int64_t | timecode, | |||
| char | type | |||
| ) | [virtual] |
Implements CC608Input.
Definition at line 496 of file cc608reader.cpp.
Referenced by NuppelDecoder::GetFrame().
| void CC608Reader::TranscodeWriteText | ( | void(*)(void *, unsigned char *, int, int, int) | func, | |
| void * | ptr | |||
| ) |
Definition at line 333 of file cc608reader.cpp.
| int CC608Reader::Update | ( | unsigned char * | inpos | ) | [private] |
Definition at line 165 of file cc608reader.cpp.
Referenced by GetOutputText().
| void CC608Reader::Update608Text | ( | vector< CC608Text * > * | ccbuf, | |
| int | replace = 0, |
|||
| int | scroll = 0, |
|||
| bool | scroll_prsv = false, |
|||
| int | scroll_yoff = 0, |
|||
| int | scroll_ymax = 15, |
|||
| int | streamIdx = CC_CC1 | |||
| ) | [private] |
Definition at line 357 of file cc608reader.cpp.
Referenced by Update().
| int CC608Reader::NumInputBuffers | ( | bool | need_to_lock = true |
) | [private] |
Definition at line 478 of file cc608reader.cpp.
Referenced by AddTextData(), GetOutputText(), and TranscodeWriteText().
MythPlayer* CC608Reader::m_parent [private] |
Definition at line 110 of file cc608reader.h.
Referenced by AddTextData(), and GetOutputText().
bool CC608Reader::m_enabled [private] |
Definition at line 111 of file cc608reader.h.
Referenced by AddTextData(), and GetOutputText().
int CC608Reader::m_readPosition [private] |
Definition at line 113 of file cc608reader.h.
Referenced by AddTextData(), ClearBuffers(), FlushTxtBuffers(), GetOutputText(), NumInputBuffers(), and TranscodeWriteText().
int CC608Reader::m_writePosition [private] |
Definition at line 114 of file cc608reader.h.
Referenced by ClearBuffers(), FlushTxtBuffers(), GetOutputText(), and NumInputBuffers().
QMutex CC608Reader::m_inputBufLock [private] |
Definition at line 115 of file cc608reader.h.
Referenced by AddTextData(), ClearBuffers(), FlushTxtBuffers(), GetOutputText(), NumInputBuffers(), and TranscodeWriteText().
int CC608Reader::m_maxTextSize [private] |
Definition at line 116 of file cc608reader.h.
Referenced by AddTextData(), CC608Reader(), and ClearBuffers().
TextContainer CC608Reader::m_inputBuffers[MAXTBUFFER+1] [private] |
Definition at line 117 of file cc608reader.h.
Referenced by AddTextData(), CC608Reader(), ClearBuffers(), GetOutputText(), TranscodeWriteText(), and ~CC608Reader().
int CC608Reader::m_ccMode [private] |
Definition at line 118 of file cc608reader.h.
Referenced by GetOutputText(), and SetMode().
int CC608Reader::m_ccPageNum [private] |
Definition at line 119 of file cc608reader.h.
Referenced by GetOutputText().
CC608StateTracker CC608Reader::m_state[MAXOUTBUFFERS] [private] |
Definition at line 121 of file cc608reader.h.
Referenced by ClearBuffers(), GetOutputText(), Update(), and Update608Text().
1.6.3