MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CC608Reader Class Reference

#include <cc608reader.h>

Inheritance diagram for CC608Reader:
Inheritance graph
[legend]
Collaboration diagram for CC608Reader:
Collaboration graph
[legend]

Public Member Functions

 CC608Reader (MythPlayer *parent)
 
 ~CC608Reader ()
 
void SetTTPageNum (int page)
 
void SetEnabled (bool enable)
 
void FlushTxtBuffers (void)
 
CC608BufferGetOutputText (bool &changed, int &streamIdx)
 
CC608BufferGetOutputText (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) override
 
void TranscodeWriteText (void(*func)(void *, unsigned char *, int, int, int), void *ptr)
 
- Public Member Functions inherited from CC608Input
virtual ~CC608Input ()=default
 

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

MythPlayerm_parent {nullptr}
 
bool m_enabled {false}
 
int m_readPosition {0}
 
int m_writePosition {0}
 
QMutex m_inputBufLock
 
int m_maxTextSize {0}
 
TextContainer m_inputBuffers [MAXTBUFFER+1]
 
int m_ccMode {CC_CC1}
 
int m_ccPageNum {0x888}
 
CC608StateTracker m_state [MAXOUTBUFFERS]
 

Detailed Description

Definition at line 80 of file cc608reader.h.

Constructor & Destructor Documentation

◆ CC608Reader()

CC608Reader::CC608Reader ( MythPlayer parent)
explicit

Definition at line 11 of file cc608reader.cpp.

◆ ~CC608Reader()

CC608Reader::~CC608Reader ( )

Definition at line 20 of file cc608reader.cpp.

Member Function Documentation

◆ SetTTPageNum()

void CC608Reader::SetTTPageNum ( int  page)
inline

Definition at line 86 of file cc608reader.h.

Referenced by MythPlayer::MythPlayer(), and MythPlayer::SetTeletextPage().

◆ SetEnabled()

void CC608Reader::SetEnabled ( bool  enable)
inline

Definition at line 87 of file cc608reader.h.

Referenced by SubtitleScreen::EnableSubtitles().

◆ FlushTxtBuffers()

void CC608Reader::FlushTxtBuffers ( void  )

Definition at line 33 of file cc608reader.cpp.

Referenced by Transcode::TranscodeFile().

◆ GetOutputText() [1/2]

CC608Buffer * CC608Reader::GetOutputText ( bool changed,
int &  streamIdx 
)

Definition at line 57 of file cc608reader.cpp.

Referenced by SubtitleScreen::DisplayCC608Subtitles(), and GetOutputText().

◆ GetOutputText() [2/2]

CC608Buffer * CC608Reader::GetOutputText ( bool changed)

Definition at line 39 of file cc608reader.cpp.

◆ SetMode()

void CC608Reader::SetMode ( int  mode)

Definition at line 154 of file cc608reader.cpp.

Referenced by MythPlayer::SetTrack().

◆ ClearBuffers()

void CC608Reader::ClearBuffers ( bool  input,
bool  output,
int  outputStreamIdx = -1 
)

◆ AddTextData()

void CC608Reader::AddTextData ( unsigned char *  buf,
int  len,
int64_t  timecode,
char  type 
)
overridevirtual

Implements CC608Input.

Definition at line 495 of file cc608reader.cpp.

Referenced by NuppelDecoder::GetFrame().

◆ TranscodeWriteText()

void CC608Reader::TranscodeWriteText ( void(*)(void *, unsigned char *, int, int, int)  func,
void *  ptr 
)

Definition at line 332 of file cc608reader.cpp.

◆ Update()

int CC608Reader::Update ( unsigned char *  inpos)
private

Definition at line 164 of file cc608reader.cpp.

Referenced by GetOutputText().

◆ Update608Text()

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 356 of file cc608reader.cpp.

Referenced by Update().

◆ NumInputBuffers()

int CC608Reader::NumInputBuffers ( bool  need_to_lock = true)
private

Definition at line 477 of file cc608reader.cpp.

Referenced by AddTextData(), GetOutputText(), and TranscodeWriteText().

Member Data Documentation

◆ m_parent

MythPlayer* CC608Reader::m_parent {nullptr}
private

Definition at line 108 of file cc608reader.h.

Referenced by AddTextData(), and GetOutputText().

◆ m_enabled

bool CC608Reader::m_enabled {false}
private

Definition at line 109 of file cc608reader.h.

Referenced by AddTextData(), and GetOutputText().

◆ m_readPosition

int CC608Reader::m_readPosition {0}
private

◆ m_writePosition

int CC608Reader::m_writePosition {0}
private

Definition at line 112 of file cc608reader.h.

Referenced by ClearBuffers(), FlushTxtBuffers(), GetOutputText(), and NumInputBuffers().

◆ m_inputBufLock

QMutex CC608Reader::m_inputBufLock
private

◆ m_maxTextSize

int CC608Reader::m_maxTextSize {0}
private

Definition at line 114 of file cc608reader.h.

Referenced by AddTextData(), CC608Reader(), and ClearBuffers().

◆ m_inputBuffers

TextContainer CC608Reader::m_inputBuffers[MAXTBUFFER+1]
private

◆ m_ccMode

int CC608Reader::m_ccMode {CC_CC1}
private

Definition at line 116 of file cc608reader.h.

Referenced by GetOutputText(), and SetMode().

◆ m_ccPageNum

int CC608Reader::m_ccPageNum {0x888}
private

Definition at line 117 of file cc608reader.h.

Referenced by GetOutputText().

◆ m_state

CC608StateTracker CC608Reader::m_state[MAXOUTBUFFERS]
private

Definition at line 119 of file cc608reader.h.

Referenced by ClearBuffers(), GetOutputText(), Update(), and Update608Text().


The documentation for this class was generated from the following files: