subtitlescreen.cpp File Reference

Go to the source code of this file.

Classes

class  SubtitleFormat

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 (QColor color)
static QString fontToString (MythFontProperties *f)
static QColor differentColor (const QColor &color)
static QString extract_cc608 (QString &text, bool teletextmode, int &color, bool &isItalic, bool &isUnderline)
 Extract everything from the text buffer up until the next format control character.
static QSize CalcShadowOffsetPadding (MythFontProperties *mythfont)
static void myth_libass_log (int level, const char *fmt, va_list vl, void *ctx)

Variables

static const float PAD_WIDTH = 0.5
static const float PAD_HEIGHT = 0.04
static const float LINE_SPACING = (20.0 / 17.0)

Function Documentation

static const QString kSubProvider ( "provider"   )  [static]
static const QString kSubFileName ( "osd_subtitle.xml"   )  [static]

Referenced by SubtitleFormat::Load().

static const QString kSubWindowName ( "osd_subtitle"   )  [static]

Referenced by SubtitleFormat::Load().

static const QString kSubFamily608 ( "608"   )  [static]
static const QString kSubFamily708 ( "708"   )  [static]
static const QString kSubFamilyText ( "text"   )  [static]
static const QString kSubFamilyAV ( "AV"   )  [static]
static const QString kSubFamilyTeletext ( "teletext"   )  [static]
static const QString kSubAttrItalics ( "italics"   )  [static]
static const QString kSubAttrBold ( "bold"   )  [static]
static const QString kSubAttrUnderline ( "underline"   )  [static]
static const QString kSubAttrPixelsize ( "pixelsize"   )  [static]
static const QString kSubAttrColor ( "color"   )  [static]
static const QString kSubAttrBGfill ( "bgfill"   )  [static]
static const QString kSubAttrShadow ( "shadow"   )  [static]
static const QString kSubAttrShadowoffset ( "shadowoffset"   )  [static]
static const QString kSubAttrShadowcolor ( "shadowcolor"   )  [static]
static const QString kSubAttrShadowalpha ( "shadowalpha"   )  [static]
static const QString kSubAttrOutline ( "outline"   )  [static]
static const QString kSubAttrOutlinecolor ( "outlinecolor"   )  [static]
static const QString kSubAttrOutlinesize ( "outlinesize"   )  [static]
static const QString kSubAttrOutlinealpha ( "outlinealpha"   )  [static]
static QString srtColorString ( QColor  color  )  [static]
static QString fontToString ( MythFontProperties f  )  [static]

Definition at line 133 of file subtitlescreen.cpp.

Referenced by SubtitleFormat::GetFont(), and SubtitleFormat::Load().

static QColor differentColor ( const QColor &  color  )  [static]

Definition at line 231 of file subtitlescreen.cpp.

Referenced by SubtitleFormat::Complement().

static QString extract_cc608 ( QString &  text,
bool  teletextmode,
int &  color,
bool isItalic,
bool isUnderline 
) [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 1202 of file subtitlescreen.cpp.

Referenced by FormattedTextSubtitle::InitFromCC608().

static QSize CalcShadowOffsetPadding ( MythFontProperties mythfont  )  [static]
static void myth_libass_log ( int  level,
const char *  fmt,
va_list  vl,
void *  ctx 
) [static]

Definition at line 2084 of file subtitlescreen.cpp.

Referenced by SubtitleScreen::InitialiseAssLibrary().


Variable Documentation

const float PAD_WIDTH = 0.5 [static]

Definition at line 517 of file subtitlescreen.cpp.

Referenced by SubtitleScreen::CalcPadding().

const float PAD_HEIGHT = 0.04 [static]

Definition at line 518 of file subtitlescreen.cpp.

Referenced by SubtitleScreen::CalcTextSize().

const float LINE_SPACING = (20.0 / 17.0) [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:49 2012 for MythTV by  doxygen 1.6.3