Description of a frame of Sub Station Alpha (SSA/ASS) subtitles.
More...
|
static QString | rgbToSubRip (quint32 color) |
| Convert a color code in RGB format into a SubRip color specification. More...
|
|
static quint64 | toTimestamp (const QString &value) |
| Convert an SSA/ASS timestamp specification to a value in milliseconds. More...
|
|
Description of a frame of Sub Station Alpha (SSA/ASS) subtitles.
◆ QtlSubStationAlphaFrame()
Constructor.
- Parameters
-
[in] | definition | Definition the frame as in a "Dialogue:" line in a SSA/ASS file. |
[in] | format | List of style fields, as in a "Format:" line, with normalized names. |
[in] | styles | Map of style definitions, using normalized names as key. |
◆ getInfo()
QString QtlSubStationAlphaFrame::getInfo |
( |
const QString & |
name, |
|
|
const QString & |
defaultValue = QString() |
|
) |
| const |
Get one field of the dialog.
- Parameters
-
[in] | name | Field name, as specified in the "Format:" line. |
[in] | defaultValue | Default value if the field is not found. |
- Returns
- The field value as a string.
◆ showTimestamp()
quint64 QtlSubStationAlphaFrame::showTimestamp |
( |
| ) |
const |
|
inline |
Show frame at this timestamp (in ms from start of stream).
- Returns
- The start time in milliseconds.
◆ hideTimestamp()
quint64 QtlSubStationAlphaFrame::hideTimestamp |
( |
| ) |
const |
|
inline |
Hide frame at this timestamp (in ms from start of stream).
- Returns
- The end time in milliseconds.
◆ text()
QString QtlSubStationAlphaFrame::text |
( |
| ) |
const |
|
inline |
The text of this subtitle frame in SSA/ASS format.
- Returns
- The text of this subtitle frame in SSA/ASS format.
◆ toSubRip()
QStringList QtlSubStationAlphaFrame::toSubRip |
( |
bool |
useHtmlTags = true | ) |
const |
Convert the text of this subtitle frame in SubRip format.
- Parameters
-
[in] | useHtmlTags | If true, add the HTML SubRip extensions. |
- Returns
- The text of this subtitle frame in SubRip format. Never empty, there is at least one string.
◆ toTimestamp()
quint64 QtlSubStationAlphaFrame::toTimestamp |
( |
const QString & |
value | ) |
|
|
staticprivate |
Convert an SSA/ASS timestamp specification to a value in milliseconds.
- Parameters
-
[in] | value | SSA/ASS timestamp specification. |
- Returns
- Value in milliseconds or 0 if incorrect.
◆ rgbToSubRip()
QString QtlSubStationAlphaFrame::rgbToSubRip |
( |
quint32 |
color | ) |
|
|
staticprivate |
Convert a color code in RGB format into a SubRip color specification.
- Parameters
-
[in] | color | Color code in RGB format. |
- Returns
- Corresponding SubRip color specification.
◆ _text
QString QtlSubStationAlphaFrame::_text |
|
private |
Subtitle text, in SSA/ASS format.
◆ _style
◆ _start
quint64 QtlSubStationAlphaFrame::_start |
|
private |
Show frame at this timestamp (in ms from start of stream).
◆ _end
quint64 QtlSubStationAlphaFrame::_end |
|
private |
Hide frame at this timestamp (in ms from start of stream).
◆ _info
QMap<QString,QString> QtlSubStationAlphaFrame::_info |
|
private |
Map of info, using normalized names as keys.
The documentation for this class was generated from the following files: