22 using namespace std::chrono_literals;
36 OutputEvent(std::chrono::seconds s,
unsigned long w,
int b,
int f,
int p,
int c) :
37 MythEvent(Info), m_elaspedSeconds(s), m_writtenBytes(w),
38 m_brate(b), m_freq(f), m_prec(
p), m_chan(c) {}
42 QByteArray
tmp = e.toUtf8();
43 m_errorMsg =
new QString(
tmp.constData());
53 const std::chrono::seconds &
elapsedSeconds()
const {
return m_elaspedSeconds; }
54 const unsigned long &
writtenBytes()
const {
return m_writtenBytes; }
55 const int &
bitrate()
const {
return m_brate; }
72 m_elaspedSeconds(o.m_elaspedSeconds),
73 m_writtenBytes(o.m_writtenBytes),
74 m_brate(o.m_brate), m_freq(o.m_freq),
75 m_prec(o.m_prec), m_chan(o.m_chan)
90 QString *m_errorMsg {
nullptr};
92 std::chrono::seconds m_elaspedSeconds {0s};
93 unsigned long m_writtenBytes {0};
118 void error(
const QString &e);
119 void dispatchVisual(uchar *b,
unsigned long b_len,
120 std::chrono::milliseconds timecode,
int chan,
int prec);
121 void prepareVisuals();
129 unsigned int m_bufsize {0};