MythTV
master
|
#include <libmythtv/captions/cc608reader.h>
Public Member Functions | |
CC608Reader (MythPlayer *parent) | |
~CC608Reader () override | |
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, std::chrono::milliseconds timecode, char type) override |
void | TranscodeWriteText (CC608WriteFn func, void *ptr) |
![]() | |
virtual | ~CC608Input ()=default |
Private Member Functions | |
int | Update (unsigned char *inpos) |
void | Update608Text (std::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 {nullptr} |
bool | m_enabled {false} |
int | m_readPosition {0} |
int | m_writePosition {0} |
QMutex | m_inputBufLock |
int | m_maxTextSize {0} |
std::array< TextContainer, MAXTBUFFER+1 > | m_inputBuffers {} |
int | m_ccMode {CC_CC1} |
int | m_ccPageNum {0x888} |
std::array< CC608StateTracker, MAXOUTBUFFERS > | m_state |
Definition at line 78 of file cc608reader.h.
|
explicit |
Definition at line 6 of file cc608reader.cpp.
|
override |
Definition at line 14 of file cc608reader.cpp.
|
inline |
Definition at line 84 of file cc608reader.h.
Referenced by MythPlayer::MythPlayer(), and MythPlayerCaptionsUI::SetTeletextPage().
|
inline |
Definition at line 85 of file cc608reader.h.
Referenced by SubtitleScreen::EnableSubtitles().
void CC608Reader::FlushTxtBuffers | ( | void | ) |
Definition at line 27 of file cc608reader.cpp.
CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed, |
int & | streamIdx | ||
) |
Definition at line 51 of file cc608reader.cpp.
Referenced by SubtitleScreen::DisplayCC608Subtitles(), and GetOutputText().
CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed | ) |
Definition at line 33 of file cc608reader.cpp.
void CC608Reader::SetMode | ( | int | mode | ) |
Definition at line 148 of file cc608reader.cpp.
Referenced by MythPlayerCaptionsUI::SetTrack().
Definition at line 447 of file cc608reader.cpp.
Referenced by SubtitleScreen::ClearNonDisplayedSubtitles(), GetOutputText(), Update(), and ~CC608Reader().
|
overridevirtual |
Implements CC608Input.
Definition at line 494 of file cc608reader.cpp.
void CC608Reader::TranscodeWriteText | ( | CC608WriteFn | func, |
void * | ptr | ||
) |
Definition at line 326 of file cc608reader.cpp.
|
private |
Definition at line 160 of file cc608reader.cpp.
Referenced by GetOutputText().
|
private |
Definition at line 348 of file cc608reader.cpp.
Referenced by Update().
Definition at line 476 of file cc608reader.cpp.
Referenced by AddTextData(), GetOutputText(), and TranscodeWriteText().
|
private |
Definition at line 104 of file cc608reader.h.
Referenced by AddTextData(), and GetOutputText().
Definition at line 105 of file cc608reader.h.
Referenced by AddTextData(), and GetOutputText().
|
private |
Definition at line 107 of file cc608reader.h.
Referenced by AddTextData(), ClearBuffers(), FlushTxtBuffers(), GetOutputText(), NumInputBuffers(), and TranscodeWriteText().
|
private |
Definition at line 108 of file cc608reader.h.
Referenced by ClearBuffers(), FlushTxtBuffers(), GetOutputText(), and NumInputBuffers().
|
private |
Definition at line 109 of file cc608reader.h.
Referenced by AddTextData(), ClearBuffers(), FlushTxtBuffers(), GetOutputText(), NumInputBuffers(), and TranscodeWriteText().
|
private |
Definition at line 110 of file cc608reader.h.
Referenced by AddTextData(), CC608Reader(), and ClearBuffers().
|
private |
Definition at line 111 of file cc608reader.h.
Referenced by AddTextData(), CC608Reader(), ClearBuffers(), GetOutputText(), TranscodeWriteText(), and ~CC608Reader().
|
private |
Definition at line 112 of file cc608reader.h.
Referenced by GetOutputText(), and SetMode().
|
private |
Definition at line 113 of file cc608reader.h.
Referenced by GetOutputText().
|
private |
Definition at line 115 of file cc608reader.h.
Referenced by ClearBuffers(), GetOutputText(), Update(), and Update608Text().