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

#include <subtitlereader.h>

Collaboration diagram for SubtitleReader:
Collaboration graph
[legend]

Public Member Functions

 SubtitleReader ()=default
 
 ~SubtitleReader ()
 
void EnableAVSubtitles (bool enable)
 
void EnableTextSubtitles (bool enable)
 
void EnableRawTextSubtitles (bool enable)
 
AVSubtitlesGetAVSubtitles (void)
 
bool AddAVSubtitle (AVSubtitle &subtitle, bool fix_position, bool allow_forced)
 
void ClearAVSubtitles (void)
 
TextSubtitlesGetTextSubtitles (void)
 
bool HasTextSubtitles (void)
 
void LoadExternalSubtitles (const QString &subtitleFileName, bool isInProgress)
 
QStringList GetRawTextSubtitles (uint64_t &duration)
 
void AddRawTextSubtitle (const QStringList &list, uint64_t duration)
 
void ClearRawTextSubtitles (void)
 

Static Public Member Functions

static void FreeAVSubtitle (AVSubtitle &sub)
 

Private Attributes

AVSubtitles m_avSubtitles
 
bool m_avSubtitlesEnabled {false}
 
TextSubtitles m_textSubtitles
 
bool m_textSubtitlesEnabled {false}
 
RawTextSubs m_rawTextSubtitles
 
bool m_rawTextSubtitlesEnabled {false}
 

Detailed Description

Definition at line 32 of file subtitlereader.h.

Constructor & Destructor Documentation

◆ SubtitleReader()

SubtitleReader::SubtitleReader ( )
default

◆ ~SubtitleReader()

SubtitleReader::~SubtitleReader ( )

Definition at line 4 of file subtitlereader.cpp.

Member Function Documentation

◆ EnableAVSubtitles()

void SubtitleReader::EnableAVSubtitles ( bool  enable)

Definition at line 11 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ EnableTextSubtitles()

void SubtitleReader::EnableTextSubtitles ( bool  enable)

Definition at line 16 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ EnableRawTextSubtitles()

void SubtitleReader::EnableRawTextSubtitles ( bool  enable)

Definition at line 21 of file subtitlereader.cpp.

Referenced by SubtitleScreen::EnableSubtitles().

◆ GetAVSubtitles()

AVSubtitles* SubtitleReader::GetAVSubtitles ( void  )
inline

Definition at line 42 of file subtitlereader.h.

Referenced by SubtitleScreen::DisplayAVSubtitles().

◆ AddAVSubtitle()

bool SubtitleReader::AddAVSubtitle ( AVSubtitle &  subtitle,
bool  fix_position,
bool  allow_forced 
)

Definition at line 26 of file subtitlereader.cpp.

Referenced by AvFormatDecoder::ProcessSubtitlePacket().

◆ ClearAVSubtitles()

void SubtitleReader::ClearAVSubtitles ( void  )

◆ FreeAVSubtitle()

void SubtitleReader::FreeAVSubtitle ( AVSubtitle &  sub)
static

◆ GetTextSubtitles()

TextSubtitles* SubtitleReader::GetTextSubtitles ( void  )
inline

Definition at line 48 of file subtitlereader.h.

Referenced by SubtitleScreen::DisplayTextSubtitles().

◆ HasTextSubtitles()

bool SubtitleReader::HasTextSubtitles ( void  )

Definition at line 95 of file subtitlereader.cpp.

◆ LoadExternalSubtitles()

void SubtitleReader::LoadExternalSubtitles ( const QString &  subtitleFileName,
bool  isInProgress 
)

Definition at line 87 of file subtitlereader.cpp.

Referenced by PlayerContext::CreatePlayer(), and MythPlayer::JumpToProgram().

◆ GetRawTextSubtitles()

QStringList SubtitleReader::GetRawTextSubtitles ( uint64_t &  duration)

Definition at line 100 of file subtitlereader.cpp.

Referenced by SubtitleScreen::DisplayRawTextSubtitles().

◆ AddRawTextSubtitle()

void SubtitleReader::AddRawTextSubtitle ( const QStringList &  list,
uint64_t  duration 
)

Definition at line 112 of file subtitlereader.cpp.

Referenced by AvFormatDecoder::ProcessRawTextPacket().

◆ ClearRawTextSubtitles()

void SubtitleReader::ClearRawTextSubtitles ( void  )

Member Data Documentation

◆ m_avSubtitles

AVSubtitles SubtitleReader::m_avSubtitles
private

Definition at line 57 of file subtitlereader.h.

Referenced by AddAVSubtitle(), ClearAVSubtitles(), and GetAVSubtitles().

◆ m_avSubtitlesEnabled

bool SubtitleReader::m_avSubtitlesEnabled {false}
private

Definition at line 58 of file subtitlereader.h.

Referenced by AddAVSubtitle(), and EnableAVSubtitles().

◆ m_textSubtitles

TextSubtitles SubtitleReader::m_textSubtitles
private

◆ m_textSubtitlesEnabled

bool SubtitleReader::m_textSubtitlesEnabled {false}
private

Definition at line 60 of file subtitlereader.h.

Referenced by EnableTextSubtitles().

◆ m_rawTextSubtitles

RawTextSubs SubtitleReader::m_rawTextSubtitles
private

Definition at line 61 of file subtitlereader.h.

Referenced by AddRawTextSubtitle(), ClearRawTextSubtitles(), and GetRawTextSubtitles().

◆ m_rawTextSubtitlesEnabled

bool SubtitleReader::m_rawTextSubtitlesEnabled {false}
private

Definition at line 62 of file subtitlereader.h.

Referenced by AddRawTextSubtitle(), and EnableRawTextSubtitles().


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