MythTV
master
|
#include <QFontMetrics>
#include "libmythbase/mythlogging.h"
#include "libmythui/mythfontproperties.h"
#include "libmythui/mythpainter.h"
#include "libmythui/mythuiimage.h"
#include "libmythui/mythuishape.h"
#include "libmythui/mythuisimpletext.h"
#include "captions/subtitlescreen.h"
Go to the source code of this file.
Classes | |
class | SubWrapper |
class | SubSimpleText |
class | SubShape |
class | SubImage |
class | SubtitleFormat |
Macros | |
#define | LOC QString("Subtitles: ") |
#define | LOC_WARN QString("Subtitles Warning: ") |
Functions | |
static const QString | kSubProvider ("provider") |
static const QString | kSubFileName ("osd_subtitle.xml") |
static const QString | kSubWindowName ("osd_subtitle") |
static const QString | kSubFamily608 ("608") |
static const QString | kSubFamily708 ("708") |
static const QString | kSubFamilyText ("text") |
static const QString | kSubFamilyAV ("AV") |
static const QString | kSubFamilyTeletext ("teletext") |
static const QString | kSubAttrItalics ("italics") |
static const QString | kSubAttrBold ("bold") |
static const QString | kSubAttrUnderline ("underline") |
static const QString | kSubAttrPixelsize ("pixelsize") |
static const QString | kSubAttrColor ("color") |
static const QString | kSubAttrBGfill ("bgfill") |
static const QString | kSubAttrShadow ("shadow") |
static const QString | kSubAttrShadowoffset ("shadowoffset") |
static const QString | kSubAttrShadowcolor ("shadowcolor") |
static const QString | kSubAttrShadowalpha ("shadowalpha") |
static const QString | kSubAttrOutline ("outline") |
static const QString | kSubAttrOutlinecolor ("outlinecolor") |
static const QString | kSubAttrOutlinesize ("outlinesize") |
static const QString | kSubAttrOutlinealpha ("outlinealpha") |
static QString | srtColorString (const QColor &color) |
static QString | fontToString (MythFontProperties *f) |
static QColor | differentColor (const QColor &color) |
static QString | extract_cc608 (QString &text, int &color, bool &isItalic, bool &isUnderline) |
Extract everything from the text buffer up until the next format control character. More... | |
static QSize | CalcShadowOffsetPadding (MythFontProperties *mythfont) |
static void | myth_libass_log (int level, const char *fmt, va_list vl, void *) |
Variables | |
static const float | LINE_SPACING = (20.0 / 17.0) |
static const float | PAD_WIDTH = 0.5 |
static const float | PAD_HEIGHT = 0.04 |
#define LOC QString("Subtitles: ") |
Definition at line 12 of file subtitlescreen.cpp.
#define LOC_WARN QString("Subtitles Warning: ") |
Definition at line 13 of file subtitlescreen.cpp.
|
static |
Referenced by SubtitleFormat::CreateProviderDefault().
|
static |
Referenced by SubtitleFormat::Load().
|
static |
Referenced by SubtitleFormat::Load().
|
static |
Referenced by SubtitleFormat::CreateProviderDefault(), and SubtitleScreen::EnableSubtitles().
|
static |
|
static |
Referenced by SubtitleFormat::CreateProviderDefault(), and SubtitleScreen::EnableSubtitles().
|
static |
Referenced by SubtitleScreen::EnableSubtitles(), and SubtitleScreen::SetZoom().
|
static |
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetBackground().
|
static |
Referenced by SubtitleFormat::Diff().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Referenced by SubtitleFormat::Diff(), and SubtitleFormat::GetFont().
|
static |
Definition at line 216 of file subtitlescreen.cpp.
Referenced by fontToString(), SubtitleFormat::GetBackground(), FormattedTextSubtitleSRT::Init(), FormattedTextChunk::ToLogString(), and FormattedTextSubtitle::ToSRT().
|
static |
Definition at line 224 of file subtitlescreen.cpp.
Referenced by SubtitleFormat::GetFont(), and SubtitleFormat::Load().
|
static |
Definition at line 433 of file subtitlescreen.cpp.
Referenced by SubtitleFormat::Complement().
|
static |
Extract everything from the text buffer up until the next format control character.
Return that substring, and remove it from the input string. Bogus control characters are left unchanged. If the buffer starts with a valid control character, the output parameters are corresondingly updated (and the control character is stripped).
Definition at line 1136 of file subtitlescreen.cpp.
Referenced by FormattedTextSubtitle608::Init().
|
static |
Definition at line 1630 of file subtitlescreen.cpp.
Referenced by SubtitleScreen::CalcPadding(), and SubtitleScreen::CalcTextSize().
|
static |
Definition at line 2370 of file subtitlescreen.cpp.
Referenced by SubtitleScreen::InitialiseAssLibrary().
|
static |
Definition at line 788 of file subtitlescreen.cpp.
Referenced by FormattedTextSubtitle608::Init(), and FormattedTextSubtitle::Layout().
|
static |
Definition at line 789 of file subtitlescreen.cpp.
Referenced by SubtitleScreen::CalcPadding().
|
static |
Definition at line 790 of file subtitlescreen.cpp.
Referenced by SubtitleScreen::CalcTextSize().