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

Collection of helper utilities for input DB use. More...

#include <cardutil.h>

Public Types

enum  INPUT_TYPES {
  ERROR_OPEN = 0, ERROR_UNKNOWN = 1, ERROR_PROBE = 2, QPSK = 3,
  DVBS = 3, QAM = 4, DVBC = 4, OFDM = 5,
  DVBT = 5, ATSC = 6, V4L = 7, MPEG = 8,
  FIREWIRE = 9, HDHOMERUN = 10, FREEBOX = 11, HDPVR = 12,
  DVBS2 = 13, IMPORT = 14, DEMO = 15, ASI = 16,
  CETON = 17, EXTERNAL = 18, VBOX = 19, DVBT2 = 20,
  V4L2ENC = 21
}
 all the different inputs More...
 
typedef QMap< QString, QString > InputTypes
 

Static Public Member Functions

static enum INPUT_TYPES toInputType (const QString &name)
 
static bool IsEncoder (const QString &rawtype)
 
static bool IsV4L (const QString &rawtype)
 
static bool IsChannelChangeDiscontinuous (const QString &rawtype)
 
static bool IsUnscanable (const QString &rawtype)
 
static QString GetScanableInputTypes (void)
 
static bool IsCableCardPresent (uint inputid, const QString &inputType)
 
static bool IsEITCapable (const QString &rawtype)
 
static bool IsTunerSharingCapable (const QString &rawtype)
 
static bool HasTuner (const QString &rawtype, const QString &device)
 
static bool IsTunerShared (uint inputidA, uint inputidB)
 
static bool IsTuningDigital (const QString &rawtype)
 
static bool IsTuningAnalog (const QString &rawtype)
 
static bool IsTuningVirtual (const QString &rawtype)
 
static bool IsSingleInputType (const QString &rawtype)
 
static bool IsChannelReusable (const QString &rawtype)
 
static bool IsVBoxPresent (uint inputid)
 
static int CreateCaptureCard (const QString &videodevice, const QString &audiodevice, const QString &vbidevice, const QString &inputtype, const uint audioratelimit, const QString &hostname, const uint dvb_swfilter, const uint dvb_sat_type, bool dvb_wait_for_seqstart, bool skipbtaudio, bool dvb_on_demand, const uint dvb_diseqc_type, const uint firewire_speed, const QString &firewire_model, const uint firewire_connection, const uint signal_timeout, const uint channel_timeout, const uint dvb_tuning_delay, const uint contrast, const uint brightness, const uint colour, const uint hue, const uint diseqcid, bool dvb_eitscan)
 
static bool DeleteInput (uint inputid)
 
static bool DeleteAllInputs (void)
 
static vector< uintGetInputList (void)
 
static vector< uintGetSchedInputList (void)
 
static vector< uintGetLiveTVInputList (void)
 
static uint GetFirstInputID (const QString &videodevice)
 Convenience function for GetInputIDs() More...
 
static vector< uintGetInputIDs (const QString &videodevice=QString(), const QString &rawtype=QString(), const QString &inputname=QString(), QString hostname=QString())
 Returns all inputids of inputs that uses the specified videodevice if specified, and optionally rawtype and a non-local hostname. More...
 
static uint GetChildInputCount (uint inputid)
 
static vector< uintGetChildInputIDs (uint inputid)
 
static bool IsInputTypePresent (const QString &rawtype, QString hostname=QString())
 Returns true if the input type is present and connected to an input. More...
 
static InputTypes GetInputTypes (void)
 
static QStringList GetInputTypeNames (uint sourceid)
 Get a list of card input types for a source id. More...
 
static QStringList GetVideoDevices (const QString &rawtype, QString hostname=QString())
 Returns the videodevices of the matching inputs, duplicates removed. More...
 
static QString GetRawInputType (uint inputid)
 
static QString GetVideoDevice (uint inputid)
 
static QString GetAudioDevice (uint inputid)
 
static QString GetVBIDevice (uint inputid)
 
static QString GetDeliverySystemFromDB (uint inputid)
 
static QString GetHostname (uint inputid)
 
static int GetValueInt (const QString &col, uint inputid)
 
static bool SetValue (const QString &col, uint inputid, int val)
 
static bool SetValue (const QString &col, uint inputid, const QString &val)
 
static bool SetStartChannel (uint inputid, const QString &channum)
 
static int CreateCardInput (const uint inputid, const uint sourceid, const QString &inputname, const QString &externalcommand, const QString &changer_device, const QString &changer_model, const QString &hostname, const QString &tunechan, const QString &startchan, const QString &displayname, bool dishnet_eit, const uint recpriority, const uint quicktune, const uint schedorder, const uint livetvorder)
 
static vector< uintGetInputIDs (uint sourceid)
 
static bool GetInputInfo (InputInfo &input, vector< uint > *groupids=nullptr)
 
static QList< InputInfoGetAllInputInfo ()
 
static QString GetInputName (uint inputid)
 
static QString GetStartingChannel (uint inputid)
 
static QString GetDisplayName (uint inputid)
 
static uint GetSourceID (uint inputid)
 
static uint CreateInputGroup (const QString &name)
 
static uint CreateDeviceInputGroup (uint inputid, const QString &type, const QString &host, const QString &device)
 
static uint GetDeviceInputGroup (uint inputid)
 
static bool LinkInputGroup (uint inputid, uint inputgroupid)
 
static bool UnlinkInputGroup (uint inputid, uint inputgroupid)
 
static vector< uintGetInputGroups (uint inputid)
 
static vector< uintGetGroupInputIDs (uint inputgroupid)
 
static vector< uintGetConflictingInputs (uint inputid)
 
static QString GetDeviceLabel (const QString &inputtype, const QString &videodevice)
 
static QString GetDeviceLabel (uint inputid)
 
static QString ProbeSubTypeName (uint inputid)
 
static QStringList ProbeVideoInputs (const QString &device, const QString &inputtype=QString())
 
static QStringList ProbeAudioInputs (const QString &device, const QString &inputtype=QString())
 
static void GetDeviceInputNames (const QString &device, const QString &inputtype, QStringList &inputs)
 
static QStringList ProbeVideoDevices (const QString &rawtype)
 
static void ClearVideoDeviceCache ()
 
static uint CloneCard (uint src_inputid, uint dst_inputid)
 
static uint AddChildInput (uint parentid)
 
static QString GetFirewireChangerNode (uint inputid)
 
static QString GetFirewireChangerModel (uint inputid)
 
static bool GetTimeouts (uint inputid, uint &signal_timeout, uint &channel_timeout)
 
static bool IgnoreEncrypted (uint inputid, const QString &inputname)
 
static bool TVOnly (uint inputid, const QString &inputname)
 
static bool IsInNeedOfExternalInputConf (uint inputid)
 
static uint GetQuickTuning (uint inputid, const QString &input_name)
 
static bool IsDVB (uint inputid)
 Returns true if the input is a DVB input. More...
 
static bool IsDVBInputType (const QString &inputType)
 Returns true iff the input_type is one of the DVB types. More...
 
static QStringList ProbeDeliverySystems (const QString &device)
 
static QStringList ProbeDeliverySystems (int fd_frontend)
 
static QString ProbeDefaultDeliverySystem (const QString &device)
 
static QString ProbeDVBType (const QString &device)
 
static QString ProbeDVBFrontendName (const QString &device)
 Returns the input type from the video device. More...
 
static bool HasDVBCRCBug (const QString &device)
 Returns true if and only if the device munges PAT/PMT tables, and then doesn't fix the CRC. More...
 
static uint GetMinSignalMonitoringDelay (const QString &device)
 
static DTVTunerType ConvertToTunerType (DTVModulationSystem delsys)
 
static DTVTunerType GetTunerType (uint inputid)
 
static DTVTunerType ProbeTunerType (int fd_frontend)
 
static DTVTunerType ProbeTunerType (const QString &device)
 
static DTVModulationSystem GetDeliverySystem (uint inputid)
 
static DTVModulationSystem ProbeCurrentDeliverySystem (const QString &device)
 
static DTVModulationSystem ProbeCurrentDeliverySystem (int fd_frontend)
 
static DTVModulationSystem ProbeBestDeliverySystem (int fd)
 
static DTVModulationSystem GetOrProbeDeliverySystem (uint inputid, int fd)
 
static int SetDefaultDeliverySystem (uint inputid, int fd)
 
static int SetDeliverySystem (uint inputid)
 
static int SetDeliverySystem (uint inputid, DTVModulationSystem delsys)
 
static int SetDeliverySystem (uint inputid, int fd)
 
static int SetDeliverySystem (uint inputid, DTVModulationSystem delsys, int fd)
 
static int OpenVideoDevice (int inputid)
 
static int OpenVideoDevice (const QString &device)
 
static QString GetDeviceName (dvb_dev_type_t, const QString &device)
 
static InputNames GetConfiguredDVBInputs (const QString &device)
 
static bool hasV4L2 (int videofd)
 
static bool GetV4LInfo (int videofd, QString &input, QString &driver, uint32_t &version, uint32_t &capabilities)
 
static bool GetV4LInfo (int videofd, QString &input, QString &driver)
 
static InputNames ProbeV4LVideoInputs (int videofd, bool &ok)
 
static InputNames ProbeV4LAudioInputs (int videofd, bool &ok)
 
static bool HDHRdoesDVB (const QString &device)
 
static QString GetHDHRdesc (const QString &device)
 
static QString GetVBoxdesc (const QString &id, const QString &ip, const QString &tunerNo, const QString &tunerType)
 
static int GetASIDeviceNumber (const QString &device, QString *error=nullptr)
 
static uint GetASIBufferSize (uint device_num, QString *error=nullptr)
 
static uint GetASINumBuffers (uint device_num, QString *error=nullptr)
 
static int GetASIMode (uint device_num, QString *error=nullptr)
 
static bool SetASIMode (uint device_num, uint mode, QString *error=nullptr)
 

Static Private Member Functions

static QStringList ProbeV4LVideoInputs (const QString &device)
 
static QStringList ProbeV4LAudioInputs (const QString &device)
 
static QStringList ProbeDVBInputs (const QString &device)
 

Static Private Attributes

static QMap< QString, QStringList > s_videoDeviceCache
 

Detailed Description

Collection of helper utilities for input DB use.

Definition at line 40 of file cardutil.h.

Member Typedef Documentation

◆ InputTypes

typedef QMap<QString, QString> CardUtil::InputTypes

Definition at line 43 of file cardutil.h.

Member Enumeration Documentation

◆ INPUT_TYPES

all the different inputs

Enumerator
ERROR_OPEN 
ERROR_UNKNOWN 
ERROR_PROBE 
QPSK 
DVBS 
QAM 
DVBC 
OFDM 
DVBT 
ATSC 
V4L 
MPEG 
FIREWIRE 
HDHOMERUN 
FREEBOX 
HDPVR 
DVBS2 
IMPORT 
DEMO 
ASI 
CETON 
EXTERNAL 
VBOX 
DVBT2 
V4L2ENC 

Definition at line 46 of file cardutil.h.

Member Function Documentation

◆ toInputType()

static enum INPUT_TYPES CardUtil::toInputType ( const QString &  name)
inlinestatic

◆ IsEncoder()

static bool CardUtil::IsEncoder ( const QString &  rawtype)
inlinestatic

◆ IsV4L()

static bool CardUtil::IsV4L ( const QString &  rawtype)
inlinestatic

◆ IsChannelChangeDiscontinuous()

static bool CardUtil::IsChannelChangeDiscontinuous ( const QString &  rawtype)
inlinestatic

Definition at line 138 of file cardutil.h.

Referenced by LiveTVChain::DoGetNextProgram().

◆ IsUnscanable()

static bool CardUtil::IsUnscanable ( const QString &  rawtype)
inlinestatic

◆ GetScanableInputTypes()

QString CardUtil::GetScanableInputTypes ( void  )
static

Definition at line 58 of file cardutil.cpp.

Referenced by ScanWizard::SetupConfig().

◆ IsCableCardPresent()

bool CardUtil::IsCableCardPresent ( uint  inputid,
const QString &  inputType 
)
static

Definition at line 117 of file cardutil.cpp.

Referenced by SourceUtil::IsCableCardPresent(), and CardInput::sourceFetch().

◆ IsEITCapable()

static bool CardUtil::IsEITCapable ( const QString &  rawtype)
inlinestatic

Definition at line 156 of file cardutil.h.

Referenced by TVRec::run(), and ChannelOptionsCommon::sourceChanged().

◆ IsTunerSharingCapable()

static bool CardUtil::IsTunerSharingCapable ( const QString &  rawtype)
inlinestatic

Definition at line 162 of file cardutil.h.

Referenced by CardInput::CardInput(), CloneCard(), IsTunerShared(), and CaptureCard::Save().

◆ HasTuner()

bool CardUtil::HasTuner ( const QString &  rawtype,
const QString &  device 
)
static

Definition at line 228 of file cardutil.cpp.

Referenced by CardInput::CardInput().

◆ IsTunerShared()

bool CardUtil::IsTunerShared ( uint  inputidA,
uint  inputidB 
)
static

Definition at line 253 of file cardutil.cpp.

Referenced by TV::ShowOSDAskAllow().

◆ IsTuningDigital()

static bool CardUtil::IsTuningDigital ( const QString &  rawtype)
inlinestatic

Definition at line 174 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsTuningAnalog()

static bool CardUtil::IsTuningAnalog ( const QString &  rawtype)
inlinestatic

Definition at line 182 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsTuningVirtual()

static bool CardUtil::IsTuningVirtual ( const QString &  rawtype)
inlinestatic

Definition at line 189 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsSingleInputType()

static bool CardUtil::IsSingleInputType ( const QString &  rawtype)
inlinestatic

Definition at line 196 of file cardutil.h.

◆ IsChannelReusable()

static bool CardUtil::IsChannelReusable ( const QString &  rawtype)
inlinestatic

Definition at line 206 of file cardutil.h.

◆ IsVBoxPresent()

static bool CardUtil::IsVBoxPresent ( uint  inputid)
static

Referenced by TVRec::CreateChannel().

◆ CreateCaptureCard()

static int CardUtil::CreateCaptureCard ( const QString &  videodevice,
const QString &  audiodevice,
const QString &  vbidevice,
const QString &  inputtype,
const uint  audioratelimit,
const QString &  hostname,
const uint  dvb_swfilter,
const uint  dvb_sat_type,
bool  dvb_wait_for_seqstart,
bool  skipbtaudio,
bool  dvb_on_demand,
const uint  dvb_diseqc_type,
const uint  firewire_speed,
const QString &  firewire_model,
const uint  firewire_connection,
const uint  signal_timeout,
const uint  channel_timeout,
const uint  dvb_tuning_delay,
const uint  contrast,
const uint  brightness,
const uint  colour,
const uint  hue,
const uint  diseqcid,
bool  dvb_eitscan 
)
static

Referenced by Capture::AddCaptureCard().

◆ DeleteInput()

static bool CardUtil::DeleteInput ( uint  inputid)
static

◆ DeleteAllInputs()

static bool CardUtil::DeleteAllInputs ( void  )
static

◆ GetInputList()

static vector<uint> CardUtil::GetInputList ( void  )
static

◆ GetSchedInputList()

static vector<uint> CardUtil::GetSchedInputList ( void  )
static

Referenced by SchedOptMixin::Load().

◆ GetLiveTVInputList()

static vector<uint> CardUtil::GetLiveTVInputList ( void  )
static

◆ GetFirstInputID()

static uint CardUtil::GetFirstInputID ( const QString &  videodevice)
inlinestatic

Convenience function for GetInputIDs()

Definition at line 247 of file cardutil.h.

Referenced by ChannelBase::InitializeInput().

◆ GetInputIDs() [1/2]

vector< uint > CardUtil::GetInputIDs ( const QString &  videodevice = QString(),
const QString &  rawtype = QString(),
const QString &  inputname = QString(),
QString  hostname = QString() 
)
static

Returns all inputids of inputs that uses the specified videodevice if specified, and optionally rawtype and a non-local hostname.

The result is ordered from smallest to largest.

Parameters
videodeviceVideo device we want input ids for
rawtypeInput type as used in DB or empty string for any type
inputnameThe name of the input card.
hostnameHost on which device resides, only required if said host is not the localhost

Definition at line 1244 of file cardutil.cpp.

Referenced by SourceUtil::IsCableCardPresent(), and main().

◆ GetChildInputCount()

uint CardUtil::GetChildInputCount ( uint  inputid)
static

Definition at line 1288 of file cardutil.cpp.

◆ GetChildInputIDs()

vector< uint > CardUtil::GetChildInputIDs ( uint  inputid)
static

Definition at line 1312 of file cardutil.cpp.

Referenced by Scheduler::InitInputInfoMap(), CaptureCard::Save(), and CardInput::Save().

◆ IsInputTypePresent()

bool CardUtil::IsInputTypePresent ( const QString &  rawtype,
QString  hostname = QString() 
)
static

Returns true if the input type is present and connected to an input.

Parameters
rawtypeInput type as used in DB or empty string for all inputs
hostnameHost to check, or empty string for current host

Definition at line 300 of file cardutil.cpp.

◆ GetInputTypes()

CardUtil::InputTypes CardUtil::GetInputTypes ( void  )
static

◆ GetInputTypeNames()

QStringList CardUtil::GetInputTypeNames ( uint  sourceid)
static

Get a list of card input types for a source id.

Parameters
sourceid[in] source id.
Returns
QStringList of card types for that source

Definition at line 379 of file cardutil.cpp.

Referenced by ChannelWizard::ChannelWizard().

◆ GetVideoDevices()

QStringList CardUtil::GetVideoDevices ( const QString &  rawtype,
QString  hostname = QString() 
)
static

Returns the videodevices of the matching inputs, duplicates removed.

Parameters
rawtypeInput type as used in DB or empty string for all inputids
hostnameHost to check, or empty string for current host

Definition at line 407 of file cardutil.cpp.

Referenced by VBoxConfigurationGroup::FillDeviceList(), DVBCardNum::fillSelections(), and ASIDevice::fillSelections().

◆ GetRawInputType()

static QString CardUtil::GetRawInputType ( uint  inputid)
inlinestatic

◆ GetVideoDevice()

static QString CardUtil::GetVideoDevice ( uint  inputid)
inlinestatic

◆ GetAudioDevice()

static QString CardUtil::GetAudioDevice ( uint  inputid)
inlinestatic

Definition at line 275 of file cardutil.h.

Referenced by TunerCardAudioInput::TunerCardAudioInput().

◆ GetVBIDevice()

static QString CardUtil::GetVBIDevice ( uint  inputid)
inlinestatic

Definition at line 277 of file cardutil.h.

Referenced by SendMythSystemRecEvent().

◆ GetDeliverySystemFromDB()

static QString CardUtil::GetDeliverySystemFromDB ( uint  inputid)
inlinestatic

Definition at line 279 of file cardutil.h.

Referenced by CardInput::CardInput(), and GetDeliverySystem().

◆ GetHostname()

static QString CardUtil::GetHostname ( uint  inputid)
inlinestatic

Definition at line 282 of file cardutil.h.

Referenced by MainServer::HandleAddChildInput().

◆ GetValueInt()

static int CardUtil::GetValueInt ( const QString &  col,
uint  inputid 
)
inlinestatic

◆ SetValue() [1/2]

static bool CardUtil::SetValue ( const QString &  col,
uint  inputid,
int  val 
)
inlinestatic

Definition at line 287 of file cardutil.h.

Referenced by V4LChannel::ChangePictureAttribute().

◆ SetValue() [2/2]

static bool CardUtil::SetValue ( const QString &  col,
uint  inputid,
const QString &  val 
)
inlinestatic

Definition at line 290 of file cardutil.h.

◆ SetStartChannel()

bool CardUtil::SetStartChannel ( uint  inputid,
const QString &  channum 
)
static

Definition at line 1585 of file cardutil.cpp.

Referenced by MythPlayer::OpenFile(), and TV::SwitchInputs().

◆ CreateCardInput()

int CardUtil::CreateCardInput ( const uint  inputid,
const uint  sourceid,
const QString &  inputname,
const QString &  externalcommand,
const QString &  changer_device,
const QString &  changer_model,
const QString &  hostname,
const QString &  tunechan,
const QString &  startchan,
const QString &  displayname,
bool  dishnet_eit,
const uint  recpriority,
const uint  quicktune,
const uint  schedorder,
const uint  livetvorder 
)
static

Definition at line 1744 of file cardutil.cpp.

Referenced by Capture::AddCardInput().

◆ GetInputIDs() [2/2]

vector< uint > CardUtil::GetInputIDs ( uint  sourceid)
static

Definition at line 1561 of file cardutil.cpp.

◆ GetInputInfo()

bool CardUtil::GetInputInfo ( InputInfo input,
vector< uint > *  groupids = nullptr 
)
static

Definition at line 1603 of file cardutil.cpp.

Referenced by GetInputName(), MainServer::HandleGetFreeInputInfo(), and TVRec::IsBusy().

◆ GetAllInputInfo()

QList< InputInfo > CardUtil::GetAllInputInfo ( )
static

Definition at line 1643 of file cardutil.cpp.

Referenced by Dvr::GetEncoderList(), and Dvr::GetInputList().

◆ GetInputName()

QString CardUtil::GetInputName ( uint  inputid)
static

Definition at line 1677 of file cardutil.cpp.

Referenced by main(), and TVRec::TuningGetChanNum().

◆ GetStartingChannel()

QString CardUtil::GetStartingChannel ( uint  inputid)
static

◆ GetDisplayName()

QString CardUtil::GetDisplayName ( uint  inputid)
static

◆ GetSourceID()

uint CardUtil::GetSourceID ( uint  inputid)
static

◆ CreateInputGroup()

uint CardUtil::CreateInputGroup ( const QString &  name)
static

◆ CreateDeviceInputGroup()

uint CardUtil::CreateDeviceInputGroup ( uint  inputid,
const QString &  type,
const QString &  host,
const QString &  device 
)
static

Definition at line 1846 of file cardutil.cpp.

Referenced by CaptureCard::Save().

◆ GetDeviceInputGroup()

uint CardUtil::GetDeviceInputGroup ( uint  inputid)
static

Definition at line 1859 of file cardutil.cpp.

Referenced by CaptureCard::Save().

◆ LinkInputGroup()

bool CardUtil::LinkInputGroup ( uint  inputid,
uint  inputgroupid 
)
static

◆ UnlinkInputGroup()

bool CardUtil::UnlinkInputGroup ( uint  inputid,
uint  inputgroupid 
)
static

◆ GetInputGroups()

vector< uint > CardUtil::GetInputGroups ( uint  inputid)
static

Definition at line 1954 of file cardutil.cpp.

Referenced by clone_capturecard(), GetInputInfo(), and TV::ShowOSDAskAllow().

◆ GetGroupInputIDs()

vector< uint > CardUtil::GetGroupInputIDs ( uint  inputgroupid)
static

Definition at line 1980 of file cardutil.cpp.

◆ GetConflictingInputs()

vector< uint > CardUtil::GetConflictingInputs ( uint  inputid)
static

◆ GetDeviceLabel() [1/2]

static QString CardUtil::GetDeviceLabel ( const QString &  inputtype,
const QString &  videodevice 
)
static

◆ GetDeviceLabel() [2/2]

static QString CardUtil::GetDeviceLabel ( uint  inputid)
static

◆ ProbeSubTypeName()

QString CardUtil::ProbeSubTypeName ( uint  inputid)
static

Definition at line 901 of file cardutil.cpp.

Referenced by get_cardtype(), ScanWizard::SetInput(), and ScanTypeSetting::SetInput().

◆ ProbeVideoInputs()

static QStringList CardUtil::ProbeVideoInputs ( const QString &  device,
const QString &  inputtype = QString() 
)
static

◆ ProbeAudioInputs()

static QStringList CardUtil::ProbeAudioInputs ( const QString &  device,
const QString &  inputtype = QString() 
)
static

◆ GetDeviceInputNames()

static void CardUtil::GetDeviceInputNames ( const QString &  device,
const QString &  inputtype,
QStringList &  inputs 
)
static

◆ ProbeVideoDevices()

QStringList CardUtil::ProbeVideoDevices ( const QString &  rawtype)
static

◆ ClearVideoDeviceCache()

void CardUtil::ClearVideoDeviceCache ( )
static

Definition at line 452 of file cardutil.cpp.

Referenced by CaptureCard::fillSelections().

◆ CloneCard()

uint CardUtil::CloneCard ( uint  src_inputid,
uint  dst_inputid 
)
static

Definition at line 1489 of file cardutil.cpp.

Referenced by AddChildInput(), CaptureCard::Save(), and CardInput::Save().

◆ AddChildInput()

uint CardUtil::AddChildInput ( uint  parentid)
static

Definition at line 1499 of file cardutil.cpp.

Referenced by MainServer::HandleAddChildInput().

◆ GetFirewireChangerNode()

QString CardUtil::GetFirewireChangerNode ( uint  inputid)
static

Definition at line 1527 of file cardutil.cpp.

Referenced by ChannelBase::ChangeInternalChannel().

◆ GetFirewireChangerModel()

QString CardUtil::GetFirewireChangerModel ( uint  inputid)
static

Definition at line 1544 of file cardutil.cpp.

Referenced by ChannelBase::ChangeInternalChannel().

◆ GetTimeouts()

bool CardUtil::GetTimeouts ( uint  inputid,
uint signal_timeout,
uint channel_timeout 
)
static

Definition at line 2048 of file cardutil.cpp.

Referenced by ChannelScanner::PreScanCommon().

◆ IgnoreEncrypted()

static bool CardUtil::IgnoreEncrypted ( uint  inputid,
const QString &  inputname 
)
static

◆ TVOnly()

static bool CardUtil::TVOnly ( uint  inputid,
const QString &  inputname 
)
static

◆ IsInNeedOfExternalInputConf()

bool CardUtil::IsInNeedOfExternalInputConf ( uint  inputid)
static

Definition at line 2070 of file cardutil.cpp.

Referenced by CardInput::CardInput().

◆ GetQuickTuning()

uint CardUtil::GetQuickTuning ( uint  inputid,
const QString &  input_name 
)
static

Definition at line 2082 of file cardutil.cpp.

Referenced by DTVChannel::GetSuggestedTuningMode().

◆ IsDVB()

static bool CardUtil::IsDVB ( uint  inputid)
inlinestatic

Returns true if the input is a DVB input.

Definition at line 374 of file cardutil.h.

◆ IsDVBInputType()

bool CardUtil::IsDVBInputType ( const QString &  inputType)
static

Returns true iff the input_type is one of the DVB types.

Definition at line 950 of file cardutil.cpp.

Referenced by SignalMonitor::Init().

◆ ProbeDeliverySystems() [1/2]

QStringList CardUtil::ProbeDeliverySystems ( const QString &  device)
static

Definition at line 577 of file cardutil.cpp.

Referenced by ProbeBestDeliverySystem(), and DVBConfigurationGroup::probeCard().

◆ ProbeDeliverySystems() [2/2]

QStringList CardUtil::ProbeDeliverySystems ( int  fd_frontend)
static

Definition at line 628 of file cardutil.cpp.

◆ ProbeDefaultDeliverySystem()

QString CardUtil::ProbeDefaultDeliverySystem ( const QString &  device)
static

Definition at line 657 of file cardutil.cpp.

Referenced by DVBConfigurationGroup::probeCard().

◆ ProbeDVBType()

QString CardUtil::ProbeDVBType ( const QString &  device)
static

◆ ProbeDVBFrontendName()

QString CardUtil::ProbeDVBFrontendName ( const QString &  device)
static

Returns the input type from the video device.

Definition at line 696 of file cardutil.cpp.

Referenced by GetMinSignalMonitoringDelay(), HasDVBCRCBug(), and DVBConfigurationGroup::probeCard().

◆ HasDVBCRCBug()

bool CardUtil::HasDVBCRCBug ( const QString &  device)
static

Returns true if and only if the device munges PAT/PMT tables, and then doesn't fix the CRC.

Currently the list of broken DVB hardware and drivers includes: "VLSI VES1x93 DVB-S", and "ST STV0299 DVB-S"

Note: "DST DVB-S" was on this list but has been verified to not mess up the PAT using Linux 2.6.18.1.

Note: "Philips TDA10046H DVB-T" was on this list but has been verified to not mess up the PMT with a recent kernel and firmware (See https://code.mythtv.org/trac/ticket/3541).

Parameters
deviceOpen DVB frontend device file descriptor to be checked
Returns
true iff the device munges tables, so that they fail a CRC check.

Definition at line 743 of file cardutil.cpp.

Referenced by DVBChannel::DVBChannel().

◆ GetMinSignalMonitoringDelay()

uint CardUtil::GetMinSignalMonitoringDelay ( const QString &  device)
static

Definition at line 750 of file cardutil.cpp.

Referenced by DVBChannel::DVBChannel().

◆ ConvertToTunerType()

DTVTunerType CardUtil::ConvertToTunerType ( DTVModulationSystem  delsys)
static

Definition at line 760 of file cardutil.cpp.

Referenced by GetTunerType(), ProbeSubTypeName(), and ProbeTunerType().

◆ GetTunerType()

DTVTunerType CardUtil::GetTunerType ( uint  inputid)
static

Definition at line 798 of file cardutil.cpp.

◆ ProbeTunerType() [1/2]

DTVTunerType CardUtil::ProbeTunerType ( int  fd_frontend)
static

Definition at line 806 of file cardutil.cpp.

Referenced by DVBChannel::Open(), and ProbeDVBType().

◆ ProbeTunerType() [2/2]

DTVTunerType CardUtil::ProbeTunerType ( const QString &  device)
static

Definition at line 814 of file cardutil.cpp.

◆ GetDeliverySystem()

DTVModulationSystem CardUtil::GetDeliverySystem ( uint  inputid)
static

◆ ProbeCurrentDeliverySystem() [1/2]

DTVModulationSystem CardUtil::ProbeCurrentDeliverySystem ( const QString &  device)
static

Definition at line 831 of file cardutil.cpp.

Referenced by ProbeBestDeliverySystem(), and ProbeTunerType().

◆ ProbeCurrentDeliverySystem() [2/2]

DTVModulationSystem CardUtil::ProbeCurrentDeliverySystem ( int  fd_frontend)
static

Definition at line 864 of file cardutil.cpp.

◆ ProbeBestDeliverySystem()

DTVModulationSystem CardUtil::ProbeBestDeliverySystem ( int  fd)
static

◆ GetOrProbeDeliverySystem()

DTVModulationSystem CardUtil::GetOrProbeDeliverySystem ( uint  inputid,
int  fd 
)
static

Definition at line 1018 of file cardutil.cpp.

Referenced by SetDefaultDeliverySystem().

◆ SetDefaultDeliverySystem()

int CardUtil::SetDefaultDeliverySystem ( uint  inputid,
int  fd 
)
static

Definition at line 1048 of file cardutil.cpp.

Referenced by DVBChannel::Open().

◆ SetDeliverySystem() [1/4]

int CardUtil::SetDeliverySystem ( uint  inputid)
static

Definition at line 1068 of file cardutil.cpp.

Referenced by ProbeSubTypeName(), SetDefaultDeliverySystem(), and SetDeliverySystem().

◆ SetDeliverySystem() [2/4]

int CardUtil::SetDeliverySystem ( uint  inputid,
DTVModulationSystem  delsys 
)
static

Definition at line 1085 of file cardutil.cpp.

◆ SetDeliverySystem() [3/4]

int CardUtil::SetDeliverySystem ( uint  inputid,
int  fd 
)
static

Definition at line 1121 of file cardutil.cpp.

◆ SetDeliverySystem() [4/4]

int CardUtil::SetDeliverySystem ( uint  inputid,
DTVModulationSystem  delsys,
int  fd 
)
static

Definition at line 1140 of file cardutil.cpp.

◆ OpenVideoDevice() [1/2]

int CardUtil::OpenVideoDevice ( int  inputid)
static

◆ OpenVideoDevice() [2/2]

int CardUtil::OpenVideoDevice ( const QString &  device)
static

Definition at line 1180 of file cardutil.cpp.

◆ GetDeviceName()

static QString CardUtil::GetDeviceName ( dvb_dev_type_t  ,
const QString &  device 
)
static

◆ GetConfiguredDVBInputs()

static InputNames CardUtil::GetConfiguredDVBInputs ( const QString &  device)
static

◆ hasV4L2()

bool CardUtil::hasV4L2 ( int  videofd)
static

Definition at line 2103 of file cardutil.cpp.

◆ GetV4LInfo() [1/2]

bool CardUtil::GetV4LInfo ( int  videofd,
QString &  input,
QString &  driver,
uint32_t &  version,
uint32_t &  capabilities 
)
static

◆ GetV4LInfo() [2/2]

static bool CardUtil::GetV4LInfo ( int  videofd,
QString &  input,
QString &  driver 
)
inlinestatic

Definition at line 407 of file cardutil.h.

◆ ProbeV4LVideoInputs() [1/2]

static InputNames CardUtil::ProbeV4LVideoInputs ( int  videofd,
bool ok 
)
static

◆ ProbeV4LAudioInputs() [1/2]

static InputNames CardUtil::ProbeV4LAudioInputs ( int  videofd,
bool ok 
)
static

◆ HDHRdoesDVB()

static bool CardUtil::HDHRdoesDVB ( const QString &  device)
static

◆ GetHDHRdesc()

static QString CardUtil::GetHDHRdesc ( const QString &  device)
static

◆ GetVBoxdesc()

static QString CardUtil::GetVBoxdesc ( const QString &  id,
const QString &  ip,
const QString &  tunerNo,
const QString &  tunerType 
)
static

◆ GetASIDeviceNumber()

static int CardUtil::GetASIDeviceNumber ( const QString &  device,
QString *  error = nullptr 
)
static

◆ GetASIBufferSize()

static uint CardUtil::GetASIBufferSize ( uint  device_num,
QString *  error = nullptr 
)
static

Referenced by ASIStreamHandler::Open().

◆ GetASINumBuffers()

static uint CardUtil::GetASINumBuffers ( uint  device_num,
QString *  error = nullptr 
)
static

Referenced by ASIStreamHandler::Open().

◆ GetASIMode()

static int CardUtil::GetASIMode ( uint  device_num,
QString *  error = nullptr 
)
static

◆ SetASIMode()

static bool CardUtil::SetASIMode ( uint  device_num,
uint  mode,
QString *  error = nullptr 
)
static

Referenced by ASIStreamHandler::Open().

◆ ProbeV4LVideoInputs() [2/2]

static QStringList CardUtil::ProbeV4LVideoInputs ( const QString &  device)
staticprivate

◆ ProbeV4LAudioInputs() [2/2]

static QStringList CardUtil::ProbeV4LAudioInputs ( const QString &  device)
staticprivate

◆ ProbeDVBInputs()

static QStringList CardUtil::ProbeDVBInputs ( const QString &  device)
staticprivate

Member Data Documentation

◆ s_videoDeviceCache

QMap< QString, QStringList > CardUtil::s_videoDeviceCache
staticprivate

Definition at line 437 of file cardutil.h.

Referenced by ClearVideoDeviceCache(), and ProbeVideoDevices().


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