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

Represents one subtitle record. More...

#include <mythccextractorplayer.h>

Public Member Functions

 OneSubtitle ()=default
 

Public Attributes

std::chrono::milliseconds m_startTime { 0 }
 Time we have to start showing subtitle, msec. More...
 
std::chrono::milliseconds m_length { -1ms }
 Time we have to show subtitle, msec. More...
 
bool m_isText { true }
 Is this a text subtitle. More...
 
QStringList m_text
 Lines of text of subtitles. More...
 
QImage m_img
 Image of subtitle. More...
 
QPoint m_imgShift { 0,0 }
 Shift of image on the screen. More...
 

Static Public Attributes

static constexpr std::chrono::milliseconds kDefaultLength { 750ms }
 

Detailed Description

Represents one subtitle record.

Definition at line 29 of file mythccextractorplayer.h.

Constructor & Destructor Documentation

◆ OneSubtitle()

OneSubtitle::OneSubtitle ( )
default

Member Data Documentation

◆ m_startTime

std::chrono::milliseconds OneSubtitle::m_startTime { 0 }

◆ m_length

std::chrono::milliseconds OneSubtitle::m_length { -1ms }

◆ m_isText

bool OneSubtitle::m_isText { true }

Is this a text subtitle.

Definition at line 37 of file mythccextractorplayer.h.

◆ m_text

QStringList OneSubtitle::m_text

Lines of text of subtitles.

Definition at line 39 of file mythccextractorplayer.h.

Referenced by SRTWriter::AddSubtitle(), and MythCCExtractorPlayer::IngestSubtitle().

◆ m_img

QImage OneSubtitle::m_img

◆ m_imgShift

QPoint OneSubtitle::m_imgShift { 0,0 }

Shift of image on the screen.

Definition at line 43 of file mythccextractorplayer.h.

Referenced by MythCCExtractorPlayer::IngestDVBSubtitles().

◆ kDefaultLength

constexpr std::chrono::milliseconds OneSubtitle::kDefaultLength { 750ms }
staticconstexpr

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