MythTV  master
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
DVBChannel Class Reference

Provides interface to the tuning hardware when using DVB drivers. More...

#include <dvbchannel.h>

Inheritance diagram for DVBChannel:
Inheritance graph
[legend]
Collaboration diagram for DVBChannel:
Collaboration graph
[legend]

Public Member Functions

 DVBChannel (const QString &device, TVRec *parent=nullptr)
 
 ~DVBChannel ()
 
bool Open (void) override
 Opens the channel changing hardware for use. More...
 
void Close (void) override
 Closes the channel changing hardware to use. More...
 
bool Init (QString &startchannel, bool setchan) override
 
void SetPMT (const ProgramMapTable *)
 Tells the Conditional Access Module which streams we wish to decode. More...
 
void SetTimeOffset (double offset)
 Tells the Conditional Access Module the offset from the computers utc time to dvb time. More...
 
void SetSlowTuning (uint how_slow_in_ms)
 
bool IsOpen (void) const override
 Reports whether channel is already open. More...
 
int GetFd (void) const override
 Returns file descriptor, -1 if it does not exist. More...
 
bool IsTuningParamsProbeSupported (void) const
 Returns true iff tuning info probing is working. More...
 
QString GetDevice (void) const override
 Returns String representing device, useful for debugging. More...
 
QString GetCardNum (void) const
 Returns DVB device number, used to construct filenames for DVB devices. More...
 
QString GetFrontendName (void) const
 Returns frontend name as reported by driver. More...
 
bool IsMaster (void) const override
 Returns true if this is the first of a number of multi-rec devs. More...
 
bool HasCRCBug (void) const
 Returns true iff we have a faulty DVB driver that munges PMT. More...
 
uint GetMinSignalMonitorDelay (void) const
 
const DiSEqCDevRotorGetRotor (void) const
 Returns rotor object if it exists, nullptr otherwise. More...
 
bool HasLock (bool *ok=nullptr) const
 Returns true iff we have a signal carrier lock. More...
 
double GetSignalStrength (bool *ok=nullptr) const
 Returns signal strength in the range [0.0..1.0] (non-calibrated). More...
 
double GetSNR (bool *ok=nullptr) const
 Returns signal/noise in the range [0..1.0]. More...
 
double GetBitErrorRate (bool *ok=nullptr) const
 Returns # of corrected bits since last call. First call undefined. More...
 
double GetUncorrectedBlockCount (bool *ok=nullptr) const
 Returns # of uncorrected blocks since last call. First call undefined. More...
 
bool SwitchToInput (int newcapchannel, bool setstarting)
 
bool Tune (const DTVMultiplex &tuning) override
 This performs the actual frequency tuning and in some cases input switching. More...
 
bool Tune (const DTVMultiplex &tuning, bool force_reset=false, bool same_input=false)
 Tunes the card to a frequency but does not deal with PIDs. More...
 
bool Retune (void) override
 
bool ProbeTuningParams (DTVMultiplex &tuning) const
 Fetches DTVMultiplex params from driver. More...
 
virtual bool Tune (const DTVMultiplex &tuning)=0
 This performs the actual frequency tuning and in some cases input switching. More...
 
virtual bool Tune (const IPTVTuningData &, bool)
 Performs IPTV Tuning. Only implemented by IPTVChannel. More...
 
virtual bool Tune (const QString &)
 Leave it up to the implementation to map the channnum appropriately. More...
 
bool Tune (const QString &freqid, int finetune) override
 This tunes on the frequency Identification parameter for hardware that supports it. More...
 
virtual bool Tune (uint64_t frequency)
 
- Public Member Functions inherited from DTVChannel
 DTVChannel (TVRec *parent)
 
virtual ~DTVChannel ()
 
bool SetChannelByString (const QString &chan) override
 
void SetFormat (const QString &format) override
 
QString GetFormat (void)
 
virtual bool TuneMultiplex (uint mplexid, const QString &inputname)
 To be used by the channel scanner and possibly the EIT scanner. More...
 
virtual bool Tune (const IPTVTuningData &, bool)
 Performs IPTV Tuning. Only implemented by IPTVChannel. More...
 
virtual bool Tune (const QString &)
 Leave it up to the implementation to map the channnum appropriately. More...
 
virtual bool EnterPowerSavingMode (void)
 Enters power saving mode if the card supports it. More...
 
bool Tune (const QString &freqid, int finetune) override
 This tunes on the frequency Identification parameter for hardware that supports it. More...
 
virtual bool Tune (uint64_t frequency)
 
int GetProgramNumber (void) const
 Returns program number in PAT, -1 if unknown. More...
 
uint GetMajorChannel (void) const
 Returns major channel, 0 if unknown. More...
 
uint GetMinorChannel (void) const
 Returns minor channel, 0 if unknown. More...
 
uint GetOriginalNetworkID (void) const
 Returns DVB original_network_id, 0 if unknown. More...
 
uint GetTransportID (void) const
 Returns DVB transport_stream_id, 0 if unknown. More...
 
QString GetSIStandard (void) const
 Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable. More...
 
QString GetSuggestedTuningMode (bool is_live_tv) const
 Returns suggested tuning mode: "mpeg", "dvb", or "atsc". More...
 
QString GetTuningMode (void) const
 Returns tuning mode last set by SetTuningMode(). More...
 
virtual vector< DTVTunerTypeGetTunerTypes (void) const
 Returns a vector of supported tuning types. More...
 
void GetCachedPids (pid_cache_t &pid_cache) const
 Returns cached MPEG PIDs for last tuned channel. More...
 
void RegisterForMaster (const QString &key)
 
void DeregisterForMaster (const QString &key)
 
virtual bool IsPIDTuningSupported (void) const
 
virtual bool IsIPTV (void) const
 
bool HasGeneratedPAT (void) const
 
bool HasGeneratedPMT (void) const
 
const ProgramAssociationTableGetGeneratedPAT (void) const
 
const ProgramMapTableGetGeneratedPMT (void) const
 
void SetTuningMode (const QString &tuning_mode)
 Sets tuning mode: "mpeg", "dvb", "atsc", etc. More...
 
void SaveCachedPids (const pid_cache_t &pid_cache) const
 Saves MPEG PIDs to cache to database. More...
 
- Public Member Functions inherited from ChannelBase
 ChannelBase (TVRec *parent)
 
virtual ~ChannelBase (void)
 
virtual bool IsTunable (const QString &channum) const
 
virtual int SetFreqTable (const QString &)
 
virtual void SetFd (int fd)
 Sets file descriptor. More...
 
virtual bool IsExternalChannelChangeInUse (void)
 
virtual uint GetNextChannel (uint chanid, ChannelChangeDirection direction) const
 
virtual uint GetNextChannel (const QString &channum, ChannelChangeDirection direction) const
 
virtual QString GetChannelName (void) const
 
virtual int GetInputID (void) const
 
virtual QString GetInputName (void) const
 
virtual uint GetSourceID (void) const
 
bool IsCommercialFree (void) const
 Returns true iff commercial detection is not required. More...
 
virtual void Renumber (uint sourceid, const QString &oldChanNum, const QString &newChanNum)
 Changes a channum if we have it cached anywhere. More...
 
virtual bool InitializeInput (void)
 Fills in input map from DB. More...
 
virtual void StoreInputChannels (void)
 Saves current channel as the default channel for the current input. More...
 
virtual bool InitPictureAttributes (void)
 
virtual int GetPictureAttribute (PictureAttribute) const
 
virtual int ChangePictureAttribute (PictureAdjustType, PictureAttribute, bool)
 
bool CheckChannel (const QString &channum) const
 
void SetInputID (uint _inputid)
 
int GetMajorID (void)
 

Private Types

typedef DVBChannelDVBChannelP
 
typedef const DVBChannelDVBChannelCP
 

Private Member Functions

bool Open (DVBChannel *)
 
void Close (DVBChannel *)
 
int GetChanID (void) const override
 Returns Channel ID. More...
 
void CheckOptions (DTVMultiplex &t) const override
 Checks tuning for problems, and tries to fix them. More...
 
void CheckFrequency (uint64_t frequency) const
 Checks tuning frequency. More...
 
bool CheckModulation (DTVModulation modulation) const
 Return true iff modulation is supported modulation on the frontend. More...
 
bool CheckCodeRate (DTVCodeRate rate) const
 Return true iff rate is supported rate on the frontend. More...
 
DVBChannelGetMasterLock (void)
 
const DVBChannelGetMasterLock (void) const
 
double GetSignalStrengthDVBv5 (bool *ok) const
 Get Signal strength from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB. More...
 
double GetSNRDVBv5 (bool *ok) const
 Get SNR from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB. More...
 
double GetBitErrorRateDVBv5 (bool *ok) const
 Get Bit Error Rate from the DVBv5 interface. More...
 
double GetUncorrectedBlockCountDVBv5 (bool *ok) const
 Get Uncorrected Block Count from the DVBv5 interface. More...
 

Static Private Member Functions

static void ReturnMasterLock (DVBChannelP &dvbm)
 
static void ReturnMasterLock (DVBChannelCP &dvbm)
 

Private Attributes

IsOpenMap m_is_open
 
DiSEqCDev m_diseqc_dev
 
DiSEqCDevSettings m_diseqc_settings
 
DiSEqCDevTreem_diseqc_tree {nullptr}
 
DVBCamm_dvbcam {nullptr}
 Used to decrypt encrypted streams. More...
 
QString m_frontend_name
 
uint64_t m_capabilities {0}
 
uint64_t m_ext_modulations {0}
 
uint64_t m_frequency_minimum {0}
 
uint64_t m_frequency_maximum {0}
 
uint m_symbol_rate_minimum {0}
 
uint m_symbol_rate_maximum {0}
 
QMutex m_tune_lock
 
QMutex m_hw_lock {QMutex::Recursive}
 
DTVMultiplex m_desired_tuning
 Last tuning options Tune() attempted to send to hardware. More...
 
DTVMultiplex m_prev_tuning
 Last tuning options Tune() succesfully sent to hardware. More...
 
uint m_last_lnb_dev_id {(uint)~0x0}
 
uint m_tuning_delay {0}
 Extra delay to add for broken drivers. More...
 
uint m_sigmon_delay {25}
 Minimum delay between FE_LOCK checks. More...
 
bool m_first_tune {true}
 Used to force hardware reset. More...
 
int m_fd_frontend {-1}
 File descriptor for tuning hardware. More...
 
QString m_device
 DVB Device. More...
 
bool m_has_crc_bug {false}
 true iff our driver munges PMT More...
 
QMutex m_tune_delay_lock
 

Static Private Attributes

static QDateTime s_last_tuning = QDateTime::currentDateTime()
 

Additional Inherited Members

- Public Types inherited from DTVChannel
typedef DTVChannelDTVChannelP
 
- Static Public Member Functions inherited from DTVChannel
static DTVChannelGetMasterLock (const QString &key)
 
static void ReturnMasterLock (DTVChannelP &)
 
- Static Public Member Functions inherited from ChannelBase
static ChannelBaseCreateChannel (TVRec *tvrec, const GeneralDBOptions &genOpt, const DVBDBOptions &dvbOpt, const FireWireDBOptions &fwOpt, const QString &startchannel, bool enter_power_save_mode, QString &rbFileExt, bool setchan)
 
- Protected Types inherited from DTVChannel
typedef QMap< QString, QList< DTVChannel * > > MasterMap
 
- Protected Member Functions inherited from DTVChannel
void SetSIStandard (const QString &)
 Sets PSIP table standard: MPEG, DVB, ATSC, or OpenCable. More...
 
void SetDTVInfo (uint atsc_major, uint atsc_minor, uint dvb_orig_netid, uint mpeg_tsid, int mpeg_pnum)
 
void ClearDTVInfo (void)
 
void HandleScriptEnd (bool ok) override
 
- Protected Member Functions inherited from ChannelBase
virtual bool IsInputAvailable (uint &mplexid_restriction, uint &chanid_restriction) const
 Switches to another input on hardware, and sets the channel is setstarting is true. More...
 
virtual bool IsExternalChannelChangeSupported (void)
 
bool KillScript (void)
 
void HandleScript (const QString &freqid)
 
uint GetScriptStatus (bool holding_lock=false)
 
bool ChangeExternalChannel (const QString &changer, const QString &freqid)
 
bool ChangeInternalChannel (const QString &freqid, uint cardinputid)
 
- Protected Attributes inherited from DTVChannel
QMutex m_dtvinfo_lock
 
DTVTunerType m_tunerType {DTVTunerType::kTunerTypeUnknown}
 
QString m_sistandard {"mpeg"}
 PSIP table standard: MPEG, DVB, ATSC, OpenCable. More...
 
QString m_tuningMode
 
QString m_tvFormat
 
int m_currentProgramNum {-1}
 
uint m_currentATSCMajorChannel {0}
 
uint m_currentATSCMinorChannel {0}
 
uint m_currentTransportID {0}
 
uint m_currentOriginalNetworkID {0}
 
ProgramAssociationTablem_genPAT {nullptr}
 This is a generated PAT for RAW pid tuning. More...
 
ProgramMapTablem_genPMT {nullptr}
 This is a generated PMT for RAW pid tuning. More...
 
- Protected Attributes inherited from ChannelBase
TVRecm_pParent {nullptr}
 
QString m_curchannelname
 
bool m_commfree {false}
 
uint m_inputid {0}
 
uint m_sourceid {0}
 
QString m_name
 
QString m_startChanNum
 
QString m_externalChanger
 
QString m_tuneToChannel
 
ChannelInfoList m_channels
 channels across all inputs More...
 
QMutex m_system_lock
 
MythSystemLegacym_system {nullptr}
 
uint m_system_status {0}
 These get mapped from the GENERIC_EXIT_* to these values for use with the signalmonitor code. More...
 
- Static Protected Attributes inherited from DTVChannel
static QReadWriteLock s_master_map_lock
 
static MasterMap s_master_map
 

Detailed Description

Provides interface to the tuning hardware when using DVB drivers.

Bug:
Only supports single input cards.

Definition at line 29 of file dvbchannel.h.

Member Typedef Documentation

◆ DVBChannelP

Definition at line 105 of file dvbchannel.h.

◆ DVBChannelCP

typedef const DVBChannel* DVBChannel::DVBChannelCP
private

Definition at line 109 of file dvbchannel.h.

Constructor & Destructor Documentation

◆ DVBChannel()

DVBChannel::DVBChannel ( const QString &  device,
TVRec parent = nullptr 
)

Definition at line 75 of file dvbchannel.cpp.

◆ ~DVBChannel()

DVBChannel::~DVBChannel ( )

Definition at line 100 of file dvbchannel.cpp.

Member Function Documentation

◆ Open() [1/2]

bool DVBChannel::Open ( void  )
inlineoverridevirtual

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 35 of file dvbchannel.h.

Referenced by Init(), and Open().

◆ Close() [1/2]

void DVBChannel::Close ( void  )
inlineoverridevirtual

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 37 of file dvbchannel.h.

Referenced by Close(), Open(), and ~DVBChannel().

◆ Init()

bool DVBChannel::Init ( QString &  startchannel,
bool  setchan 
)
overridevirtual

Reimplemented from ChannelBase.

Definition at line 321 of file dvbchannel.cpp.

◆ SetPMT()

void DVBChannel::SetPMT ( const ProgramMapTable pmt)

Tells the Conditional Access Module which streams we wish to decode.

Definition at line 494 of file dvbchannel.cpp.

Referenced by DVBSignalMonitor::HandlePMT(), DVBRecorder::SetCAMPMT(), and ChannelScanSM::TestNextProgramEncryption().

◆ SetTimeOffset()

void DVBChannel::SetTimeOffset ( double  offset)

Tells the Conditional Access Module the offset from the computers utc time to dvb time.

Definition at line 506 of file dvbchannel.cpp.

Referenced by DVBSignalMonitor::HandleSTT(), DVBSignalMonitor::HandleTDT(), and DVBRecorder::UpdateCAMTimeOffset().

◆ SetSlowTuning()

void DVBChannel::SetSlowTuning ( uint  how_slow_in_ms)
inline

Definition at line 45 of file dvbchannel.h.

Referenced by ChannelBase::CreateChannel().

◆ IsOpen()

bool DVBChannel::IsOpen ( void  ) const
overridevirtual

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 313 of file dvbchannel.cpp.

Referenced by Init().

◆ GetFd()

int DVBChannel::GetFd ( void  ) const
inlineoverridevirtual

Returns file descriptor, -1 if it does not exist.

Reimplemented from ChannelBase.

Definition at line 50 of file dvbchannel.h.

◆ IsTuningParamsProbeSupported()

bool DVBChannel::IsTuningParamsProbeSupported ( void  ) const

Returns true iff tuning info probing is working.

Definition at line 849 of file dvbchannel.cpp.

Referenced by IsTuningParamsProbeSupported().

◆ GetDevice()

QString DVBChannel::GetDevice ( void  ) const
inlineoverridevirtual

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 54 of file dvbchannel.h.

◆ GetCardNum()

QString DVBChannel::GetCardNum ( void  ) const
inline

Returns DVB device number, used to construct filenames for DVB devices.

Definition at line 57 of file dvbchannel.h.

Referenced by DVBSignalMonitor::DVBSignalMonitor().

◆ GetFrontendName()

QString DVBChannel::GetFrontendName ( void  ) const
inline

Returns frontend name as reported by driver.

Definition at line 59 of file dvbchannel.h.

◆ IsMaster()

bool DVBChannel::IsMaster ( void  ) const
overridevirtual

Returns true if this is the first of a number of multi-rec devs.

Reimplemented from DTVChannel.

Definition at line 1389 of file dvbchannel.cpp.

◆ HasCRCBug()

bool DVBChannel::HasCRCBug ( void  ) const
inline

Returns true iff we have a faulty DVB driver that munges PMT.

Definition at line 62 of file dvbchannel.h.

◆ GetMinSignalMonitorDelay()

uint DVBChannel::GetMinSignalMonitorDelay ( void  ) const
inline

Definition at line 63 of file dvbchannel.h.

Referenced by DVBSignalMonitor::DVBSignalMonitor().

◆ GetRotor()

const DiSEqCDevRotor * DVBChannel::GetRotor ( void  ) const

◆ HasLock()

bool DVBChannel::HasLock ( bool ok = nullptr) const

Returns true iff we have a signal carrier lock.

Definition at line 1008 of file dvbchannel.cpp.

Referenced by HasLock(), and DVBSignalMonitor::UpdateValues().

◆ GetSignalStrength()

double DVBChannel::GetSignalStrength ( bool ok = nullptr) const

Returns signal strength in the range [0.0..1.0] (non-calibrated).

Definition at line 1091 of file dvbchannel.cpp.

Referenced by GetSignalStrength(), and DVBSignalMonitor::UpdateValues().

◆ GetSNR()

double DVBChannel::GetSNR ( bool ok = nullptr) const

Returns signal/noise in the range [0..1.0].

Some drivers report the actual ratio, while others report the dB, but in this case some weak signals may report a very high S/N since negative dB are not supported by MythTV or the 4.0 version of the DVB API due to the large number of drivers that ignored the fact that this was a signed number in the 3.0 API.

Definition at line 1174 of file dvbchannel.cpp.

Referenced by GetSNR(), and DVBSignalMonitor::UpdateValues().

◆ GetBitErrorRate()

double DVBChannel::GetBitErrorRate ( bool ok = nullptr) const

Returns # of corrected bits since last call. First call undefined.

Definition at line 1254 of file dvbchannel.cpp.

Referenced by GetBitErrorRate(), and DVBSignalMonitor::UpdateValues().

◆ GetUncorrectedBlockCount()

double DVBChannel::GetUncorrectedBlockCount ( bool ok = nullptr) const

Returns # of uncorrected blocks since last call. First call undefined.

Definition at line 1319 of file dvbchannel.cpp.

Referenced by GetUncorrectedBlockCount(), and DVBSignalMonitor::UpdateValues().

◆ SwitchToInput()

bool DVBChannel::SwitchToInput ( int  newcapchannel,
bool  setstarting 
)

◆ Tune() [1/7]

bool DVBChannel::Tune ( const DTVMultiplex tuning)
overridevirtual

This performs the actual frequency tuning and in some cases input switching.

In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.

Implements DTVChannel.

Definition at line 512 of file dvbchannel.cpp.

Referenced by Retune(), and Tune().

◆ Tune() [2/7]

bool DVBChannel::Tune ( const DTVMultiplex tuning,
bool  force_reset = false,
bool  same_input = false 
)

Tunes the card to a frequency but does not deal with PIDs.

This is used by DVB Channel Scanner, the EIT Parser, and by TVRec.

Parameters
tuningInfo on transport to tune to
force_resetIf true, frequency tuning is done even if it should not be needed.
same_inputOptional, doesn't change input (for retuning).
Returns
true on success, false on failure

Definition at line 641 of file dvbchannel.cpp.

◆ Retune()

bool DVBChannel::Retune ( void  )
overridevirtual

Reimplemented from ChannelBase.

Definition at line 841 of file dvbchannel.cpp.

Referenced by DVBStreamHandler::RetuneMonitor().

◆ ProbeTuningParams()

bool DVBChannel::ProbeTuningParams ( DTVMultiplex tuning) const

Fetches DTVMultiplex params from driver.

Note: Only updates tuning on success.

Returns
true on success, false on failure

Definition at line 895 of file dvbchannel.cpp.

Referenced by ProbeTuningParams().

◆ Open() [2/2]

bool DVBChannel::Open ( DVBChannel who)
private

Definition at line 181 of file dvbchannel.cpp.

◆ Close() [2/2]

void DVBChannel::Close ( DVBChannel who)
private

Definition at line 142 of file dvbchannel.cpp.

◆ GetChanID()

int DVBChannel::GetChanID ( void  ) const
overrideprivatevirtual

Returns Channel ID.

Bug:
This only works if there is only one input on the card.

Reimplemented from ChannelBase.

Definition at line 953 of file dvbchannel.cpp.

◆ CheckOptions()

void DVBChannel::CheckOptions ( DTVMultiplex ) const
overrideprivatevirtual

Checks tuning for problems, and tries to fix them.

Reimplemented from DTVChannel.

Definition at line 345 of file dvbchannel.cpp.

◆ CheckFrequency()

void DVBChannel::CheckFrequency ( uint64_t  frequency) const
private

Checks tuning frequency.

Definition at line 332 of file dvbchannel.cpp.

Referenced by CheckOptions(), and Tune().

◆ CheckModulation()

bool DVBChannel::CheckModulation ( DTVModulation  modulation) const
private

Return true iff modulation is supported modulation on the frontend.

Definition at line 469 of file dvbchannel.cpp.

Referenced by CheckOptions().

◆ CheckCodeRate()

bool DVBChannel::CheckCodeRate ( DTVCodeRate  rate) const
private

Return true iff rate is supported rate on the frontend.

Definition at line 450 of file dvbchannel.cpp.

Referenced by CheckOptions().

◆ GetMasterLock() [1/2]

DVBChannel * DVBChannel::GetMasterLock ( void  )
private

◆ ReturnMasterLock() [1/2]

void DVBChannel::ReturnMasterLock ( DVBChannelP dvbm)
staticprivate

◆ GetMasterLock() [2/2]

const DVBChannel * DVBChannel::GetMasterLock ( void  ) const
private

Definition at line 1368 of file dvbchannel.cpp.

◆ ReturnMasterLock() [2/2]

static void DVBChannel::ReturnMasterLock ( DVBChannelCP dvbm)
staticprivate

◆ GetSignalStrengthDVBv5()

double DVBChannel::GetSignalStrengthDVBv5 ( bool ok) const
private

Get Signal strength from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB.

Parameters
okset to true if provided and value exists
Returns
linear signal strength in [0.0-1.0]

Definition at line 1036 of file dvbchannel.cpp.

Referenced by GetSignalStrength().

◆ GetSNRDVBv5()

double DVBChannel::GetSNRDVBv5 ( bool ok) const
private

Get SNR from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB.

Parameters
okset to true if provided and value exists
Returns
linear SNR in [0.0-1.0]

Definition at line 1123 of file dvbchannel.cpp.

Referenced by GetSNR().

◆ GetBitErrorRateDVBv5()

double DVBChannel::GetBitErrorRateDVBv5 ( bool ok) const
private

Get Bit Error Rate from the DVBv5 interface.

Parameters
okset to true if provided and value exists
Returns
bit error rate

Definition at line 1206 of file dvbchannel.cpp.

Referenced by GetBitErrorRate().

◆ GetUncorrectedBlockCountDVBv5()

double DVBChannel::GetUncorrectedBlockCountDVBv5 ( bool ok) const
private

Get Uncorrected Block Count from the DVBv5 interface.

Parameters
okset to true if provided and value exists
Returns
block count

Definition at line 1284 of file dvbchannel.cpp.

Referenced by GetUncorrectedBlockCount().

◆ Tune() [3/7]

virtual bool DTVChannel::Tune

This performs the actual frequency tuning and in some cases input switching.

In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.

◆ Tune() [4/7]

virtual bool DTVChannel::Tune
inline

Performs IPTV Tuning. Only implemented by IPTVChannel.

Definition at line 59 of file dtvchannel.h.

◆ Tune() [5/7]

virtual bool DTVChannel::Tune
inline

Leave it up to the implementation to map the channnum appropriately.

Used by the ExternalRecorder.

Definition at line 64 of file dtvchannel.h.

◆ Tune() [6/7]

bool DTVChannel::Tune
inlineoverride

This tunes on the frequency Identification parameter for hardware that supports it.

This is only called when there is no frequency set. This is used to implement "Channel Numbers" in analog tuning scenarios and to implement "Virtual Channels" in the OCUR and Firewire tuners.

Definition at line 76 of file dtvchannel.h.

◆ Tune() [7/7]

virtual bool DTVChannel::Tune
inline

Definition at line 82 of file dtvchannel.h.

Member Data Documentation

◆ m_is_open

IsOpenMap DVBChannel::m_is_open
private

Definition at line 133 of file dvbchannel.h.

Referenced by Close(), IsOpen(), Open(), and ~DVBChannel().

◆ m_diseqc_dev

DiSEqCDev DVBChannel::m_diseqc_dev
private

Definition at line 136 of file dvbchannel.h.

Referenced by Open().

◆ m_diseqc_settings

DiSEqCDevSettings DVBChannel::m_diseqc_settings
private

Definition at line 137 of file dvbchannel.h.

Referenced by GetRotor(), Open(), and Tune().

◆ m_diseqc_tree

DiSEqCDevTree* DVBChannel::m_diseqc_tree {nullptr}
private

◆ m_dvbcam

DVBCam* DVBChannel::m_dvbcam {nullptr}
private

Used to decrypt encrypted streams.

Definition at line 140 of file dvbchannel.h.

Referenced by Close(), DVBChannel(), SetPMT(), SetTimeOffset(), and ~DVBChannel().

◆ m_frontend_name

QString DVBChannel::m_frontend_name
private

Definition at line 143 of file dvbchannel.h.

Referenced by GetFrontendName(), and Open().

◆ m_capabilities

uint64_t DVBChannel::m_capabilities {0}
private

Definition at line 144 of file dvbchannel.h.

Referenced by CheckCodeRate(), CheckModulation(), CheckOptions(), Open(), and Tune().

◆ m_ext_modulations

uint64_t DVBChannel::m_ext_modulations {0}
private

Definition at line 145 of file dvbchannel.h.

Referenced by Open().

◆ m_frequency_minimum

uint64_t DVBChannel::m_frequency_minimum {0}
private

Definition at line 146 of file dvbchannel.h.

Referenced by CheckFrequency(), and Open().

◆ m_frequency_maximum

uint64_t DVBChannel::m_frequency_maximum {0}
private

Definition at line 147 of file dvbchannel.h.

Referenced by CheckFrequency(), and Open().

◆ m_symbol_rate_minimum

uint DVBChannel::m_symbol_rate_minimum {0}
private

Definition at line 148 of file dvbchannel.h.

Referenced by CheckOptions(), and Open().

◆ m_symbol_rate_maximum

uint DVBChannel::m_symbol_rate_maximum {0}
private

Definition at line 149 of file dvbchannel.h.

Referenced by CheckOptions(), and Open().

◆ m_tune_lock

QMutex DVBChannel::m_tune_lock
mutableprivate

Definition at line 152 of file dvbchannel.h.

Referenced by Tune().

◆ m_hw_lock

QMutex DVBChannel::m_hw_lock {QMutex::Recursive}
mutableprivate

◆ m_desired_tuning

DTVMultiplex DVBChannel::m_desired_tuning
private

Last tuning options Tune() attempted to send to hardware.

Definition at line 155 of file dvbchannel.h.

Referenced by Retune(), and Tune().

◆ m_prev_tuning

DTVMultiplex DVBChannel::m_prev_tuning
private

Last tuning options Tune() succesfully sent to hardware.

Definition at line 157 of file dvbchannel.h.

Referenced by Tune().

◆ m_last_lnb_dev_id

uint DVBChannel::m_last_lnb_dev_id {(uint)~0x0}
private

Definition at line 159 of file dvbchannel.h.

Referenced by Tune().

◆ m_tuning_delay

uint DVBChannel::m_tuning_delay {0}
private

Extra delay to add for broken drivers.

Definition at line 162 of file dvbchannel.h.

Referenced by SetSlowTuning(), and Tune().

◆ m_sigmon_delay

uint DVBChannel::m_sigmon_delay {25}
private

Minimum delay between FE_LOCK checks.

Definition at line 164 of file dvbchannel.h.

Referenced by DVBChannel(), and GetMinSignalMonitorDelay().

◆ m_first_tune

bool DVBChannel::m_first_tune {true}
private

Used to force hardware reset.

Definition at line 166 of file dvbchannel.h.

Referenced by Open(), and Tune().

◆ m_fd_frontend

int DVBChannel::m_fd_frontend {-1}
private

◆ m_device

QString DVBChannel::m_device
private

DVB Device.

Definition at line 171 of file dvbchannel.h.

Referenced by DVBChannel(), GetCardNum(), GetDevice(), GetMasterLock(), Open(), and ~DVBChannel().

◆ m_has_crc_bug

bool DVBChannel::m_has_crc_bug {false}
private

true iff our driver munges PMT

Definition at line 173 of file dvbchannel.h.

Referenced by DVBChannel(), and HasCRCBug().

◆ s_last_tuning

QDateTime DVBChannel::s_last_tuning = QDateTime::currentDateTime()
staticprivate

Definition at line 175 of file dvbchannel.h.

Referenced by Tune().

◆ m_tune_delay_lock

QMutex DVBChannel::m_tune_delay_lock
private

Definition at line 176 of file dvbchannel.h.

Referenced by Tune().


The documentation for this class was generated from the following files: