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, SATIP = 22
}
 all the different inputs More...
 
using InputTypes = QMap< QString, QString >
 

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)
 Returns true if the VBox responds to a ping. More...
 
static int CreateCaptureCard (const QString &videodevice, const QString &audiodevice, const QString &vbidevice, const QString &inputtype, uint audioratelimit, const QString &hostname, uint dvb_swfilter, uint dvb_sat_type, bool dvb_wait_for_seqstart, bool skipbtaudio, bool dvb_on_demand, uint dvb_diseqc_type, uint firewire_speed, const QString &firewire_model, uint firewire_connection, std::chrono::milliseconds signal_timeout, std::chrono::milliseconds channel_timeout, uint dvb_tuning_delay, uint contrast, uint brightness, uint colour, uint hue, uint diseqcid, bool dvb_eitscan)
 
static bool DeleteInput (uint inputid)
 
static bool DeleteAllInputs (void)
 
static std::vector< uintGetInputList (void)
 
static std::vector< uintGetSchedInputList (void)
 
static std::vector< uintGetLiveTVInputList (void)
 
static uint GetFirstInputID (const QString &videodevice)
 Convenience function for GetInputIDs() More...
 
static std::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 std::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 (uint inputid, 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, uint recpriority, uint quicktune, uint schedorder, uint livetvorder)
 
static std::vector< uintGetInputIDs (uint sourceid)
 
static bool GetInputInfo (InputInfo &input, std::vector< uint > *groupids=nullptr)
 
static QList< InputInfoGetAllInputInfo ()
 
static QString GetInputName (uint inputid)
 
static QString GetStartChannel (uint inputid)
 
static QString GetDisplayName (uint inputid)
 
static bool IsUniqueDisplayName (const QString &name, uint exclude_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 std::vector< uintGetInputGroups (uint inputid)
 
static std::vector< uintGetGroupInputIDs (uint inputgroupid)
 
static std::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, std::chrono::milliseconds &signal_timeout, std::chrono::milliseconds &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 std::chrono::milliseconds 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 DTVTunerType GetTunerTypeFromMultiplex (uint mplexid)
 
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 type, const QString &device)
 
static InputNames GetConfiguredDVBInputs (const QString &device)
 
static QStringList CapabilitiesToString (uint64_t capabilities)
 
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)
 If the device is valid, check if the model does DVB. More...
 
static bool HDHRdoesDVBC (const QString &device)
 If the device is valid, check if the model does DVB-C. More...
 
static QString GetHDHRdesc (const QString &device)
 Get a nicely formatted string describing the device. More...
 
static QString GetVBoxdesc (const QString &id, const QString &ip, const QString &tunerNo, const QString &tunerType)
 Get a nicely formatted string describing the device. More...
 
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

using CardUtil::InputTypes = QMap<QString, QString>

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 
SATIP 

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 147 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 105 of file cardutil.cpp.

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

◆ IsEITCapable()

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

◆ IsTunerSharingCapable()

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

◆ HasTuner()

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

Definition at line 217 of file cardutil.cpp.

Referenced by CardInput::CardInput().

◆ IsTunerShared()

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

Definition at line 243 of file cardutil.cpp.

Referenced by TV::ShowOSDAskAllow().

◆ IsTuningDigital()

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

Definition at line 185 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsTuningAnalog()

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

Definition at line 193 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsTuningVirtual()

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

Definition at line 200 of file cardutil.h.

Referenced by SourceUtil::IsProperlyConnected().

◆ IsSingleInputType()

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

Definition at line 207 of file cardutil.h.

Referenced by GetDeviceInputNames(), and ProbeVideoInputs().

◆ IsChannelReusable()

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

Definition at line 217 of file cardutil.h.

◆ IsVBoxPresent()

bool CardUtil::IsVBoxPresent ( uint  inputid)
static

Returns true if the VBox responds to a ping.

Parameters
inputidInputid as used in DB capturecard table

Definition at line 3259 of file cardutil.cpp.

Referenced by TVRec::CreateChannel().

◆ CreateCaptureCard()

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

Definition at line 2565 of file cardutil.cpp.

Referenced by Capture::AddCaptureCard().

◆ DeleteInput()

bool CardUtil::DeleteInput ( uint  inputid)
static

◆ DeleteAllInputs()

bool CardUtil::DeleteAllInputs ( void  )
static

Definition at line 2729 of file cardutil.cpp.

Referenced by CaptureCardEditor::DeleteAllCaptureCards().

◆ GetInputList()

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

Definition at line 2739 of file cardutil.cpp.

Referenced by RemoteGetRecordingStatus().

◆ GetSchedInputList()

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

Definition at line 2760 of file cardutil.cpp.

Referenced by SchedOptMixin::Load().

◆ GetLiveTVInputList()

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

Definition at line 2782 of file cardutil.cpp.

◆ GetFirstInputID()

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

Convenience function for GetInputIDs()

Definition at line 258 of file cardutil.h.

Referenced by ChannelBase::InitializeInput().

◆ GetInputIDs() [1/2]

std::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 1266 of file cardutil.cpp.

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

◆ GetChildInputCount()

uint CardUtil::GetChildInputCount ( uint  inputid)
static

Definition at line 1310 of file cardutil.cpp.

◆ GetChildInputIDs()

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

◆ 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 290 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 371 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 399 of file cardutil.cpp.

Referenced by RecordingProfile::CompleteLoad(), 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 286 of file cardutil.h.

Referenced by TunerCardAudioInput::TunerCardAudioInput().

◆ GetVBIDevice()

static QString CardUtil::GetVBIDevice ( uint  inputid)
inlinestatic

Definition at line 288 of file cardutil.h.

Referenced by SendMythSystemRecEvent().

◆ GetDeliverySystemFromDB()

static QString CardUtil::GetDeliverySystemFromDB ( uint  inputid)
inlinestatic

Definition at line 290 of file cardutil.h.

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

◆ GetHostname()

static QString CardUtil::GetHostname ( uint  inputid)
inlinestatic

Definition at line 293 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 298 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 301 of file cardutil.h.

◆ SetStartChannel()

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

Definition at line 1607 of file cardutil.cpp.

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

◆ CreateCardInput()

int CardUtil::CreateCardInput ( uint  inputid,
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,
uint  recpriority,
uint  quicktune,
uint  schedorder,
uint  livetvorder 
)
static

Definition at line 1863 of file cardutil.cpp.

Referenced by Capture::AddCardInput().

◆ GetInputIDs() [2/2]

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

Definition at line 1583 of file cardutil.cpp.

◆ GetInputInfo()

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

Definition at line 1625 of file cardutil.cpp.

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

◆ GetAllInputInfo()

QList< InputInfo > CardUtil::GetAllInputInfo ( )
static

Definition at line 1661 of file cardutil.cpp.

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

◆ GetInputName()

QString CardUtil::GetInputName ( uint  inputid)
static

Definition at line 1695 of file cardutil.cpp.

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

◆ GetStartChannel()

QString CardUtil::GetStartChannel ( uint  inputid)
static

◆ GetDisplayName()

QString CardUtil::GetDisplayName ( uint  inputid)
static

◆ IsUniqueDisplayName()

bool CardUtil::IsUniqueDisplayName ( const QString &  name,
uint  exclude_inputid 
)
static

Definition at line 1820 of file cardutil.cpp.

Referenced by Capture::AddCardInput().

◆ 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 1965 of file cardutil.cpp.

Referenced by CreateCaptureCard(), and CaptureCard::Save().

◆ GetDeviceInputGroup()

uint CardUtil::GetDeviceInputGroup ( uint  inputid)
static

Definition at line 1978 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()

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

Definition at line 2073 of file cardutil.cpp.

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

◆ GetGroupInputIDs()

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

Definition at line 2099 of file cardutil.cpp.

◆ GetConflictingInputs()

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

◆ GetDeviceLabel() [1/2]

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

◆ GetDeviceLabel() [2/2]

QString CardUtil::GetDeviceLabel ( uint  inputid)
static

Definition at line 2535 of file cardutil.cpp.

◆ ProbeSubTypeName()

QString CardUtil::ProbeSubTypeName ( uint  inputid)
static

Definition at line 930 of file cardutil.cpp.

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

◆ ProbeVideoInputs()

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

Definition at line 2418 of file cardutil.cpp.

◆ ProbeAudioInputs()

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

Definition at line 2432 of file cardutil.cpp.

Referenced by TunerCardAudioInput::fillSelections().

◆ GetDeviceInputNames()

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

Definition at line 2551 of file cardutil.cpp.

Referenced by InputName::fillSelections().

◆ ProbeVideoDevices()

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

◆ ClearVideoDeviceCache()

void CardUtil::ClearVideoDeviceCache ( )
static

Definition at line 444 of file cardutil.cpp.

Referenced by CaptureCard::fillSelections().

◆ CloneCard()

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

Definition at line 1511 of file cardutil.cpp.

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

◆ AddChildInput()

uint CardUtil::AddChildInput ( uint  parentid)
static

Definition at line 1521 of file cardutil.cpp.

Referenced by MainServer::HandleAddChildInput().

◆ GetFirewireChangerNode()

QString CardUtil::GetFirewireChangerNode ( uint  inputid)
static

Definition at line 1549 of file cardutil.cpp.

Referenced by ChannelBase::ChangeInternalChannel().

◆ GetFirewireChangerModel()

QString CardUtil::GetFirewireChangerModel ( uint  inputid)
static

Definition at line 1566 of file cardutil.cpp.

Referenced by ChannelBase::ChangeInternalChannel().

◆ GetTimeouts()

bool CardUtil::GetTimeouts ( uint  inputid,
std::chrono::milliseconds &  signal_timeout,
std::chrono::milliseconds &  channel_timeout 
)
static

◆ 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 2195 of file cardutil.cpp.

Referenced by CardInput::CardInput().

◆ GetQuickTuning()

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

Definition at line 2206 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 387 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 977 of file cardutil.cpp.

Referenced by SignalMonitor::Init().

◆ ProbeDeliverySystems() [1/2]

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

Definition at line 569 of file cardutil.cpp.

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

◆ ProbeDeliverySystems() [2/2]

QStringList CardUtil::ProbeDeliverySystems ( int  fd_frontend)
static

Definition at line 619 of file cardutil.cpp.

◆ ProbeDefaultDeliverySystem()

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

Definition at line 648 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 687 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 733 of file cardutil.cpp.

Referenced by DVBChannel::DVBChannel().

◆ GetMinSignalMonitoringDelay()

std::chrono::milliseconds CardUtil::GetMinSignalMonitoringDelay ( const QString &  device)
static

Definition at line 740 of file cardutil.cpp.

Referenced by DVBChannel::DVBChannel().

◆ ConvertToTunerType()

DTVTunerType CardUtil::ConvertToTunerType ( DTVModulationSystem  delsys)
static

◆ GetTunerType()

DTVTunerType CardUtil::GetTunerType ( uint  inputid)
static

Definition at line 793 of file cardutil.cpp.

◆ ProbeTunerType() [1/2]

DTVTunerType CardUtil::ProbeTunerType ( int  fd_frontend)
static

Definition at line 801 of file cardutil.cpp.

Referenced by ProbeDVBType().

◆ ProbeTunerType() [2/2]

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

Definition at line 809 of file cardutil.cpp.

◆ GetTunerTypeFromMultiplex()

DTVTunerType CardUtil::GetTunerTypeFromMultiplex ( uint  mplexid)
static

Definition at line 817 of file cardutil.cpp.

Referenced by ScanWizard::SetPaneDefaults().

◆ GetDeliverySystem()

DTVModulationSystem CardUtil::GetDeliverySystem ( uint  inputid)
static

◆ ProbeCurrentDeliverySystem() [1/2]

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

Definition at line 860 of file cardutil.cpp.

Referenced by ProbeBestDeliverySystem(), and ProbeTunerType().

◆ ProbeCurrentDeliverySystem() [2/2]

DTVModulationSystem CardUtil::ProbeCurrentDeliverySystem ( int  fd_frontend)
static

Definition at line 893 of file cardutil.cpp.

◆ ProbeBestDeliverySystem()

DTVModulationSystem CardUtil::ProbeBestDeliverySystem ( int  fd)
static

◆ GetOrProbeDeliverySystem()

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

Definition at line 1040 of file cardutil.cpp.

Referenced by SetDefaultDeliverySystem().

◆ SetDefaultDeliverySystem()

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

Definition at line 1070 of file cardutil.cpp.

◆ SetDeliverySystem() [1/4]

int CardUtil::SetDeliverySystem ( uint  inputid)
static

◆ SetDeliverySystem() [2/4]

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

Definition at line 1107 of file cardutil.cpp.

◆ SetDeliverySystem() [3/4]

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

Definition at line 1143 of file cardutil.cpp.

◆ SetDeliverySystem() [4/4]

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

Definition at line 1162 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 1202 of file cardutil.cpp.

◆ GetDeviceName()

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

◆ GetConfiguredDVBInputs()

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

Definition at line 2335 of file cardutil.cpp.

Referenced by ProbeDVBInputs().

◆ CapabilitiesToString()

QStringList CardUtil::CapabilitiesToString ( uint64_t  capabilities)
static

Definition at line 2363 of file cardutil.cpp.

Referenced by DVBChannel::Open().

◆ hasV4L2()

bool CardUtil::hasV4L2 ( int  videofd)
static

Definition at line 2227 of file cardutil.cpp.

Referenced by ProbeV4LAudioInputs(), and ProbeV4LVideoInputs().

◆ 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 422 of file cardutil.h.

◆ ProbeV4LVideoInputs() [1/2]

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

◆ ProbeV4LAudioInputs() [1/2]

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

Definition at line 2303 of file cardutil.cpp.

Referenced by ProbeAudioInputs(), and ProbeV4LAudioInputs().

◆ HDHRdoesDVB()

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

If the device is valid, check if the model does DVB.

Todo:
Replace with a more general purpose routine - something that gets /sys/features and searches that for particular modulation types. e.g. bool CardUtil::DoesHDHRsupport(const QString &device, const QStringList &modTypes);

Definition at line 2917 of file cardutil.cpp.

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

◆ HDHRdoesDVBC()

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

If the device is valid, check if the model does DVB-C.

Definition at line 2945 of file cardutil.cpp.

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

◆ GetHDHRdesc()

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

Get a nicely formatted string describing the device.

Definition at line 2973 of file cardutil.cpp.

◆ GetVBoxdesc()

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

Get a nicely formatted string describing the device.

Definition at line 3029 of file cardutil.cpp.

Referenced by VBoxConfigurationGroup::FillDeviceList().

◆ GetASIDeviceNumber()

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

◆ GetASIBufferSize()

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

Definition at line 3157 of file cardutil.cpp.

Referenced by ASIStreamHandler::Open().

◆ GetASINumBuffers()

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

Definition at line 3182 of file cardutil.cpp.

Referenced by ASIStreamHandler::Open().

◆ GetASIMode()

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

Definition at line 3207 of file cardutil.cpp.

◆ SetASIMode()

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

Definition at line 3231 of file cardutil.cpp.

Referenced by ASIStreamHandler::Open().

◆ ProbeV4LVideoInputs() [2/2]

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

Definition at line 2445 of file cardutil.cpp.

◆ ProbeV4LAudioInputs() [2/2]

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

Definition at line 2476 of file cardutil.cpp.

◆ ProbeDVBInputs()

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

Definition at line 2509 of file cardutil.cpp.

Referenced by ProbeVideoInputs().

Member Data Documentation

◆ s_videoDeviceCache

QMap< QString, QStringList > CardUtil::s_videoDeviceCache
staticprivate

Definition at line 457 of file cardutil.h.

Referenced by ClearVideoDeviceCache(), and ProbeVideoDevices().


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