#include <SubtitleTrack.h>
Signals | |
| void | sourceChanged () |
| void | positionChanged () |
| void | eventsChanged () |
Public Member Functions | |
| SubtitleTrack (QObject *parent=nullptr) | |
| QUrl | source () const |
| A local file; empty for none. | |
| void | setSource (const QUrl &source) |
| qint64 | position () const |
| Milliseconds from the start of the recording. | |
| void | setPosition (qint64 position) |
| int | playResX () const |
| int | playResY () const |
| double | fontSize () const |
| QVariantList | events () const |
A recording's telemetry subtitle file, read for display over the video: the events shown at the playback position, in the file's own coordinates (playResX × playResY).
Reads the Advanced SubStation Alpha subset SubtitleWriter writes: the Default style's font size, alignment and margins, and Dialogue events with {\anN} and {\pos(x,y)} overrides and \N line breaks. Other override tags are dropped.
Definition at line 16 of file SubtitleTrack.h.
|
explicit |
Definition at line 63 of file SubtitleTrack.cc.
|
inline |
The events shown at position(), in the file's order, each as a map: "text" (lines apart by '
'), "x" and "y", the point the text is anchored at, and "alignment", which side of the text the point is on, numbered as a numeric keypad (1 bottom left ... 9 top right).
Definition at line 50 of file SubtitleTrack.h.
|
signal |
|
inline |
Definition at line 45 of file SubtitleTrack.h.
|
inline |
Definition at line 41 of file SubtitleTrack.h.
|
inline |
Definition at line 43 of file SubtitleTrack.h.
|
inline |
Milliseconds from the start of the recording.
Definition at line 37 of file SubtitleTrack.h.
Referenced by setPosition().
|
signal |
Referenced by setPosition().
| void SubtitleTrack::setPosition | ( | qint64 | position | ) |
Definition at line 88 of file SubtitleTrack.cc.
References position(), and positionChanged().
| void SubtitleTrack::setSource | ( | const QUrl & | source | ) |
Definition at line 67 of file SubtitleTrack.cc.
References source(), and sourceChanged().
|
inline |
A local file; empty for none.
Definition at line 32 of file SubtitleTrack.h.
Referenced by setSource().
|
signal |
Referenced by setSource().