MythTV  master
analogsignalmonitor.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 // Copyright (c) 2005, Daniel Thor Kristjansson
3 
4 #ifndef ANALOG_SIGNAL_MONITOR_H
5 #define ANALOG_SIGNAL_MONITOR_H
6 
7 // MythTV headers
8 #include "signalmonitor.h"
9 
10 class V4LChannel;
11 
13 {
14  public:
15  AnalogSignalMonitor(int db_cardnum, V4LChannel *_channel,
16  bool _release_stream,
17  uint64_t _flags = kSigMon_WaitForSig);
18 
19  void UpdateValues(void) override; // SignalMonitor
20 
21  private:
22  bool VerifyHDPVRaudio(int videofd);
23  bool handleHDPVR(int videofd);
24 
25  bool m_usingV4l2 {false};
26  QString m_card;
27  QString m_driver;
28  uint32_t m_version {0};
30  std::chrono::milliseconds m_stableTime {2s};
33  int m_logIdx {40};
34 };
35 
36 #endif // ANALOG_SIGNAL_MONITOR_H
AnalogSignalMonitor::m_logIdx
int m_logIdx
Definition: analogsignalmonitor.h:33
AnalogSignalMonitor::m_stableTime
std::chrono::milliseconds m_stableTime
Definition: analogsignalmonitor.h:30
MythTimer
A QElapsedTimer based timer to replace use of QTime as a timer.
Definition: mythtimer.h:13
signalmonitor.h
AnalogSignalMonitor::m_lockCnt
uint m_lockCnt
Definition: analogsignalmonitor.h:31
AnalogSignalMonitor::m_card
QString m_card
Definition: analogsignalmonitor.h:26
AnalogSignalMonitor::m_timer
MythTimer m_timer
Definition: analogsignalmonitor.h:32
AnalogSignalMonitor::AnalogSignalMonitor
AnalogSignalMonitor(int db_cardnum, V4LChannel *_channel, bool _release_stream, uint64_t _flags=kSigMon_WaitForSig)
Definition: analogsignalmonitor.cpp:20
SignalMonitor::kSigMon_WaitForSig
static const uint64_t kSigMon_WaitForSig
Definition: signalmonitor.h:189
AnalogSignalMonitor::UpdateValues
void UpdateValues(void) override
This should be overridden to actually do signal monitoring.
Definition: analogsignalmonitor.cpp:158
AnalogSignalMonitor::m_width
uint m_width
Definition: analogsignalmonitor.h:29
AnalogSignalMonitor::handleHDPVR
bool handleHDPVR(int videofd)
Definition: analogsignalmonitor.cpp:113
AnalogSignalMonitor
Definition: analogsignalmonitor.h:12
uint
unsigned int uint
Definition: compat.h:140
SignalMonitor
Signal monitoring base class.
Definition: signalmonitor.h:34
AnalogSignalMonitor::m_usingV4l2
bool m_usingV4l2
Definition: analogsignalmonitor.h:25
AnalogSignalMonitor::VerifyHDPVRaudio
bool VerifyHDPVRaudio(int videofd)
Definition: analogsignalmonitor.cpp:39
AnalogSignalMonitor::m_version
uint32_t m_version
Definition: analogsignalmonitor.h:28
V4LChannel
Implements tuning for TV cards using the V4L driver API, both versions 1 and 2.
Definition: v4lchannel.h:30
AnalogSignalMonitor::m_driver
QString m_driver
Definition: analogsignalmonitor.h:27