|
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) |
Public Member Functions inherited from CC608Input | |
| virtual | ~CC608Input ()=default |
| virtual void | AddTextData (unsigned char *buf, int len, std::chrono::milliseconds timecode, char type)=0 |
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 9 of file cc608reader.cpp.
|
override |
Definition at line 17 of file cc608reader.cpp.
|
overridevirtual |
Implements CC608Input.
Definition at line 497 of file cc608reader.cpp.
Definition at line 450 of file cc608reader.cpp.
Referenced by SubtitleScreen::ClearNonDisplayedSubtitles(), GetOutputText(), Update(), and ~CC608Reader().
| void CC608Reader::FlushTxtBuffers | ( | void | ) |
Definition at line 30 of file cc608reader.cpp.
| CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed | ) |
Definition at line 36 of file cc608reader.cpp.
| CC608Buffer * CC608Reader::GetOutputText | ( | bool & | changed, |
| int & | streamIdx | ||
| ) |
Definition at line 54 of file cc608reader.cpp.
Referenced by SubtitleScreen::DisplayCC608Subtitles(), and GetOutputText().
Definition at line 479 of file cc608reader.cpp.
Referenced by AddTextData(), GetOutputText(), and TranscodeWriteText().
|
inline |
Definition at line 85 of file cc608reader.h.
Referenced by SubtitleScreen::EnableSubtitles().
| void CC608Reader::SetMode | ( | int | mode | ) |
Definition at line 151 of file cc608reader.cpp.
Referenced by MythPlayerCaptionsUI::SetTrack().
|
inline |
Definition at line 84 of file cc608reader.h.
Referenced by MythPlayer::MythPlayer(), and MythPlayerCaptionsUI::SetTeletextPage().
| void CC608Reader::TranscodeWriteText | ( | CC608WriteFn | func, |
| void * | ptr | ||
| ) |
Definition at line 329 of file cc608reader.cpp.
|
private |
Definition at line 163 of file cc608reader.cpp.
Referenced by GetOutputText().
|
private |
Definition at line 351 of file cc608reader.cpp.
Referenced by Update().
|
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().
Definition at line 105 of file cc608reader.h.
Referenced by AddTextData(), and GetOutputText().
|
private |
Definition at line 111 of file cc608reader.h.
Referenced by AddTextData(), CC608Reader(), ClearBuffers(), GetOutputText(), TranscodeWriteText(), and ~CC608Reader().
|
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 104 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 115 of file cc608reader.h.
Referenced by ClearBuffers(), GetOutputText(), Update(), and Update608Text().
|
private |
Definition at line 108 of file cc608reader.h.
Referenced by ClearBuffers(), FlushTxtBuffers(), GetOutputText(), and NumInputBuffers().