Blame view
VideoFrame.h
856 Bytes
3f2992b2c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#ifndef VIDEOFRAME_H #define VIDEOFRAME_H #include <QString> #include <QVector> #include "Segment.h" class VideoFrame: public Segment { public: enum SpeakerSource { Ref, Hyp1, Hyp2 }; VideoFrame(Segment *parentSegment); VideoFrame(int id, qint64 position, Segment *parentSegment, Segment::Source source = Segment::Manual, const QString &sub = QString()); ~VideoFrame(); void read(const QJsonObject &json); void write(QJsonObject &json) const; QString display() const; int getNumber() const; QString getSub() const; QString getSpeaker(VideoFrame::SpeakerSource source) const; void setSub(const QString &sub); void setSpeaker(const QString &speaker, VideoFrame::SpeakerSource source); void clearSpeaker(VideoFrame::SpeakerSource source); private: int m_id; QString m_sub; QVector<QString> *m_speaker; }; #endif |