Go to the documentation of this file.
3 #ifndef FIREWIRESIGNALMONITOR_H
4 #define FIREWIRESIGNALMONITOR_H
28 void run(
void)
override;
44 void Stop(
void)
override;
57 void AddData(
const unsigned char *data,
uint len)
override;
78 #endif // FIREWIRESIGNALMONITOR_H
void start(QThread::Priority p=QThread::InheritPriority)
Tell MThread to start running the thread in the near future.
static QMutex s_patKeysLock
static const uint64_t kFWSigMon_WaitForPower
A QElapsedTimer based timer to replace use of QTime as a timer.
static QHash< void *, uint > s_patKeys
bool wait(std::chrono::milliseconds time=std::chrono::milliseconds::max())
Wait for the MThread to exit, with a maximum timeout.
void RunTableMonitor(void)
A PMT table maps a program described in the ProgramAssociationTable to various PID's which describe t...
~FirewireSignalMonitor() override
Stops signal monitoring and table monitoring threads.
void HandlePAT(const ProgramAssociationTable *pat) override
static constexpr std::chrono::milliseconds kPowerTimeout
FirewireSignalMonitor(void)
void Stop(void) override
Stop signal monitoring and table monitoring threads.
bool m_stbNeedsToWaitForPat
~FirewireTableMonitorThread() override
bool m_stbNeedsToWaitForPower
FirewireChannel Copyright (c) 2005 by Jim Westfall and Dave Abrahams Distributed as part of MythTV un...
FirewireTableMonitorThread * m_tableMonitorThread
MythTimer m_stbWaitForPatTimer
void run(void) override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
The Program Association Table lists all the programs in a stream, and is always found on PID 0.
void AddData(const unsigned char *data, uint len) override
Callback function to add MPEG2 TS data.
void HandlePMT(uint pnum, const ProgramMapTable *pmt) override
std::vector< unsigned char > m_buffer
This is a wrapper around QThread that does several additional things.
This class is intended to detect the presence of needed tables.
FirewireSignalMonitor * m_parent
volatile bool m_dtvMonitorRunning
MythTimer m_stbWaitForPowerTimer
FirewireTableMonitorThread(FirewireSignalMonitor *p)
static constexpr std::chrono::milliseconds kBufferTimeout
void UpdateValues(void) override
Fills in frontend stats and emits status Qt signals.
bool SupportsTSMonitoring(void)