|
MythTV
0.26-pre
|
Collection of helper utilities for capture card DB use. More...
#include <cardutil.h>
Public Types | |
| enum | CARD_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 } |
| all the different capture cards More... | |
Static Public Member Functions | |
| static enum CARD_TYPES | toCardType (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 | GetScanableCardTypes (void) |
| static bool | IsCableCardPresent (uint cardid, const QString &cardType) |
| static bool | IsEITCapable (const QString &rawtype) |
| static bool | IsTunerSharingCapable (const QString &rawtype) |
| static bool | IsTunerShared (uint cardidA, uint cardidB) |
| static bool | IsTuningDigital (const QString &rawtype) |
| static bool | IsTuningAnalog (const QString &rawtype) |
| static bool | IsTuningVirtual (const QString &rawtype) |
| static bool | IsSingleInputCard (const QString &rawtype) |
| static int | CreateCaptureCard (const QString &videodevice, const QString &audiodevice, const QString &vbidevice, const QString &cardtype, 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 | DeleteCard (uint cardid) |
| static bool | DeleteAllCards (void) |
| static vector< uint > | GetCardList (void) |
| static uint | GetFirstCardID (const QString &videodevice) |
| Convenience function for GetCardIDs() | |
| static vector< uint > | GetCardIDs (QString videodevice=QString::null, QString rawtype=QString::null, QString hostname=QString::null) |
| Returns all cardids of cards that uses the specified videodevice if specified, and optionally rawtype and a non-local hostname. | |
| static bool | IsCardTypePresent (const QString &rawtype, QString hostname=QString::null) |
| Returns true if the card type is present and connected to an input. | |
| static QStringList | GetCardTypes (void) |
| static QStringList | GetVideoDevices (const QString &rawtype, QString hostname=QString::null) |
| Returns the videodevices of the matching cards, duplicates removed. | |
| static QString | GetRawCardType (uint cardid) |
| static QString | GetVideoDevice (uint cardid) |
| static QString | GetAudioDevice (uint cardid) |
| static QString | GetVBIDevice (uint cardid) |
| static int | GetValueInt (const QString &col, uint cid) |
| static bool | SetValue (const QString &col, uint cid, uint sid, int val) |
| static bool | SetValue (const QString &col, uint cid, uint sid, const QString &val) |
| static int | GetCardInputID (uint cardid, const QString &channum, QString &inputname) |
| static bool | SetStartChannel (uint cardinputid, const QString &channum) |
| static int | CreateCardInput (const uint cardid, 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 bool | DeleteInput (uint inputid) |
| static vector< uint > | GetCardIDs (uint sourceid) |
| static QString | GetStartInput (uint cardid) |
| Returns the start input for the card. | |
| static QStringList | GetInputNames (uint cardid, uint sourceid=0) |
| static bool | GetInputInfo (InputInfo &info, vector< uint > *groupids=NULL) |
| static uint | GetCardID (uint inputid) |
| static QString | GetInputName (uint inputid) |
| static QString | GetStartingChannel (uint inputid) |
| static QString | GetDisplayName (uint inputid) |
| static QString | GetDisplayName (uint cardid, const QString &inputname) |
| static QString | GetDisplayName (uint cardid, uint sourceid) |
| static vector< uint > | GetAllInputIDs (void) |
| static vector< uint > | GetInputIDs (uint cardid) |
| static uint | GetInputID (uint cardid, const QString &inputname) |
| static uint | GetInputID (uint cardid, uint sourceid) |
| static uint | GetSourceID (uint inputid) |
| static bool | DeleteOrphanInputs (void) |
| static bool | SetInputValue (const QString &col, uint iid, int val) |
| static bool | SetInputValue (const QString &col, uint iid, const QString &val) |
| static uint | CreateInputGroup (const QString &name) |
| static bool | CreateInputGroupIfNeeded (uint cardid) |
| static bool | LinkInputGroup (uint inputid, uint inputgroupid) |
| static bool | UnlinkInputGroup (uint inputid, uint inputgroupid) |
| static vector< uint > | GetInputGroups (uint inputid) |
| static vector< uint > | GetSharedInputGroups (uint cardid) |
| static vector< uint > | GetGroupCardIDs (uint inputgroupid) |
| static vector< uint > | GetConflictingCards (uint inputid, uint exclude_cardid) |
| static QString | GetDeviceLabel (const QString &cardtype, const QString &videodevice) |
| static QString | GetDeviceLabel (uint cardid) |
| static QString | ProbeSubTypeName (uint cardid) |
| static QStringList | ProbeVideoInputs (QString device, QString cardtype=QString::null) |
| static QStringList | ProbeAudioInputs (QString device, QString cardtype=QString::null) |
| static void | GetCardInputs (uint cardid, const QString &device, const QString &cardtype, QStringList &inputLabels, vector< CardInput * > &cardInputs) |
| static QStringList | ProbeVideoDevices (const QString &rawtype) |
| static bool | CloneCard (uint src_cardid, uint dst_cardid) |
| static vector< uint > | GetCloneCardIDs (uint cardid) |
| static QString | GetFirewireChangerNode (uint inputid) |
| static QString | GetFirewireChangerModel (uint inputid) |
| static bool | GetTimeouts (uint cardid, uint &signal_timeout, uint &channel_timeout) |
| static bool | IgnoreEncrypted (uint cardid, const QString &inputname) |
| static bool | TVOnly (uint cardid, const QString &inputname) |
| static bool | IsInNeedOfExternalInputConf (uint cardid) |
| static uint | GetQuickTuning (uint cardid, const QString &inputname) |
| static bool | IsDVB (uint cardid) |
| Returns true if the card is a DVB card. | |
| static bool | IsDVBCardType (const QString &card_type) |
| Returns true iff the card_type is one of the DVB types. | |
| static QString | ProbeDVBFrontendName (const QString &device) |
| Returns the card type from the video device. | |
| static QString | ProbeDVBType (const QString &device) |
| 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. | |
| static uint | GetMinSignalMonitoringDelay (const QString &device) |
| static QString | GetDeviceName (dvb_dev_type_t, const QString &device) |
| static InputNames | GetConfiguredDVBInputs (uint cardid) |
| static bool | hasV4L2 (int videofd) |
| static bool | GetV4LInfo (int videofd, QString &card, QString &driver, uint32_t &version, uint32_t &capabilities) |
| static bool | GetV4LInfo (int videofd, QString &card, 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. | |
| static QString | GetHDHRdesc (const QString &device) |
| Get a nicely formatted string describing the device. | |
| static int | GetASIDeviceNumber (const QString &device, QString *error=NULL) |
| static uint | GetASIBufferSize (uint device_num, QString *error=NULL) |
| static int | GetASIMode (uint device_num, QString *error=NULL) |
| static bool | SetASIMode (uint device_num, uint mode, QString *error=NULL) |
Static Private Member Functions | |
| static QStringList | ProbeV4LVideoInputs (QString device) |
| static QStringList | ProbeV4LAudioInputs (QString device) |
| static QStringList | ProbeDVBInputs (QString device) |
Collection of helper utilities for capture card DB use.
Definition at line 45 of file cardutil.h.
| enum CardUtil::CARD_TYPES |
all the different capture cards
| ERROR_OPEN | |
| ERROR_UNKNOWN | |
| ERROR_PROBE | |
| QPSK | |
| DVBS | |
| QAM | |
| DVBC | |
| OFDM | |
| DVBT | |
| ATSC | |
| V4L | |
| MPEG | |
| FIREWIRE | |
| HDHOMERUN | |
| FREEBOX | |
| HDPVR | |
| DVBS2 | |
| IMPORT | |
| DEMO | |
| ASI | |
| CETON |
Definition at line 49 of file cardutil.h.
| static enum CARD_TYPES CardUtil::toCardType | ( | const QString & | name | ) | [inline, static] |
Definition at line 71 of file cardutil.h.
Referenced by get_cardtype(), DVBConfigurationGroup::probeCard(), ScanWizard::SetInput(), and ScanTypeSetting::SetInput().
| static bool CardUtil::IsEncoder | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 112 of file cardutil.h.
Referenced by RecordingProfile::CompleteLoad(), Channel::FetchChannelsFromSource(), GetCardInputs(), TVRec::GetMaxBitrate(), ChannelData::insert_chan(), SourceUtil::IsEncoder(), and CardInput::sourceFetch().
| static bool CardUtil::IsV4L | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 121 of file cardutil.h.
Referenced by ChannelWizard::ChannelWizard(), TVRec::CloseChannel(), ChannelBase::CreateChannel(), and RecorderBase::CreateRecorder().
| static bool CardUtil::IsChannelChangeDiscontinuous | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 128 of file cardutil.h.
Referenced by LiveTVChain::GetSwitchProgram().
| static bool CardUtil::IsUnscanable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 133 of file cardutil.h.
Referenced by CardInput::channelScanner(), Channel::FetchChannelsFromSource(), GetCardInputs(), ChannelData::insert_chan(), SourceUtil::IsUnscanable(), CardInput::SetSourceID(), and CardInput::sourceFetch().
| QString CardUtil::GetScanableCardTypes | ( | void | ) | [static] |
Definition at line 48 of file cardutil.cpp.
| bool CardUtil::IsCableCardPresent | ( | uint | cardid, |
| const QString & | cardType | ||
| ) | [static] |
Definition at line 95 of file cardutil.cpp.
Referenced by SourceUtil::IsCableCardPresent(), and CardInput::sourceFetch().
| static bool CardUtil::IsEITCapable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 145 of file cardutil.h.
Referenced by TVRec::run(), and ChannelOptionsCommon::sourceChanged().
| static bool CardUtil::IsTunerSharingCapable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 151 of file cardutil.h.
Referenced by CloneCard(), DeleteCard(), CaptureCard::fillSelections(), GetCloneCardIDs(), IsTunerShared(), CardInputEditor::Load(), CaptureCard::loadByID(), CaptureCard::Save(), and CardInput::Save().
| bool CardUtil::IsTunerShared | ( | uint | cardidA, |
| uint | cardidB | ||
| ) | [static] |
Definition at line 136 of file cardutil.cpp.
Referenced by TV::ShowOSDAskAllow().
| static bool CardUtil::IsTuningDigital | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 160 of file cardutil.h.
Referenced by SourceUtil::IsProperlyConnected().
| static bool CardUtil::IsTuningAnalog | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 167 of file cardutil.h.
Referenced by SourceUtil::IsProperlyConnected().
| static bool CardUtil::IsTuningVirtual | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 173 of file cardutil.h.
Referenced by SourceUtil::IsProperlyConnected().
| static bool CardUtil::IsSingleInputCard | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 179 of file cardutil.h.
Referenced by GetCardInputs(), and ProbeVideoInputs().
| int CardUtil::CreateCaptureCard | ( | const QString & | videodevice, |
| const QString & | audiodevice, | ||
| const QString & | vbidevice, | ||
| const QString & | cardtype, | ||
| 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] |
Definition at line 2121 of file cardutil.cpp.
Referenced by Capture::AddCaptureCard().
| bool CardUtil::DeleteCard | ( | uint | cardid | ) | [static] |
Definition at line 2210 of file cardutil.cpp.
Referenced by clone_capturecard(), CloneCard(), CaptureCardEditor::del(), CaptureCardEditor::edit(), Capture::RemoveCaptureCard(), and CaptureCard::Save().
| bool CardUtil::DeleteAllCards | ( | void | ) | [static] |
Definition at line 2281 of file cardutil.cpp.
Referenced by CaptureCardEditor::edit().
| vector< uint > CardUtil::GetCardList | ( | void | ) | [static] |
Definition at line 2291 of file cardutil.cpp.
Referenced by TV::FillOSDMenuSource(), RemoteGetRecordingStatus(), and RemoteRequestFreeRecorderList().
| static uint CardUtil::GetFirstCardID | ( | const QString & | videodevice | ) | [inline, static] |
Convenience function for GetCardIDs()
Definition at line 220 of file cardutil.h.
Referenced by ChannelBase::GetCardID(), and ProbeDVBInputs().
| vector< uint > CardUtil::GetCardIDs | ( | QString | videodevice = QString::null, |
| QString | rawtype = QString::null, |
||
| QString | hostname = QString::null |
||
| ) | [static] |
Returns all cardids of cards that uses the specified videodevice if specified, and optionally rawtype and a non-local hostname.
The result is ordered from smallest to largest.
| videodevice | Video device we want card ids for |
| rawtype | Card type as used in DB or empty string for any type |
| hostname | Host on which device resides, only required if said host is not the localhost |
Definition at line 612 of file cardutil.cpp.
Referenced by SourceUtil::IsCableCardPresent(), TV::IsTunableOn(), CaptureCard::loadByID(), main(), and CaptureCard::Save().
| bool CardUtil::IsCardTypePresent | ( | const QString & | rawtype, |
| QString | hostname = QString::null |
||
| ) | [static] |
Returns true if the card type is present and connected to an input.
| rawtype | Card type as used in DB or empty string for all cards |
| hostname | Host to check, or empty string for current host |
Definition at line 183 of file cardutil.cpp.
| QStringList CardUtil::GetCardTypes | ( | void | ) | [static] |
Definition at line 218 of file cardutil.cpp.
Referenced by ProfileGroup::fillSelections().
| QStringList CardUtil::GetVideoDevices | ( | const QString & | rawtype, |
| QString | hostname = QString::null |
||
| ) | [static] |
Returns the videodevices of the matching cards, duplicates removed.
| rawtype | Card type as used in DB or empty string for all cardids |
| hostname | Host to check, or empty string for current host |
Definition at line 244 of file cardutil.cpp.
Referenced by HDHomeRunConfigurationGroup::FillDeviceList(), DVBCardNum::fillSelections(), and ASIDevice::fillSelections().
| static QString CardUtil::GetRawCardType | ( | uint | cardid | ) | [inline, static] |
Definition at line 239 of file cardutil.h.
Referenced by CardInput::channelScanner(), CloneCard(), CreateInputGroupIfNeeded(), DeleteCard(), Channel::FetchChannelsFromSource(), get_cardtype(), SourceUtil::IsCableCardPresent(), main(), ChannelScanner::PreScanCommon(), ProbeSubTypeName(), CardInput::Save(), ChannelScanner::Scan(), CardInput::SetSourceID(), CardInput::sourceFetch(), and TunerCardAudioInput::TunerCardAudioInput().
| static QString CardUtil::GetVideoDevice | ( | uint | cardid | ) | [inline, static] |
Definition at line 241 of file cardutil.h.
Referenced by CreateInputGroupIfNeeded(), DeleteCard(), IsCableCardPresent(), CaptureCard::loadByID(), main(), ChannelScanner::PreScanCommon(), ProbeSubTypeName(), IPTVChannelFetcher::run(), CaptureCard::Save(), ChannelScanner::Scan(), and ScanTypeSetting::SetInput().
| static QString CardUtil::GetAudioDevice | ( | uint | cardid | ) | [inline, static] |
Definition at line 243 of file cardutil.h.
Referenced by TunerCardAudioInput::TunerCardAudioInput().
| static QString CardUtil::GetVBIDevice | ( | uint | cardid | ) | [inline, static] |
Definition at line 245 of file cardutil.h.
| static int CardUtil::GetValueInt | ( | const QString & | col, |
| uint | cid | ||
| ) | [inline, static] |
Definition at line 248 of file cardutil.h.
Referenced by V4LChannel::ChangePictureAttribute(), V4LChannel::GetPictureAttribute(), and V4LChannel::InitPictureAttribute().
| static bool CardUtil::SetValue | ( | const QString & | col, |
| uint | cid, | ||
| uint | sid, | ||
| int | val | ||
| ) | [inline, static] |
Definition at line 250 of file cardutil.h.
Referenced by V4LChannel::ChangePictureAttribute().
| static bool CardUtil::SetValue | ( | const QString & | col, |
| uint | cid, | ||
| uint | sid, | ||
| const QString & | val | ||
| ) | [inline, static] |
Definition at line 253 of file cardutil.h.
| int CardUtil::GetCardInputID | ( | uint | cardid, |
| const QString & | channum, | ||
| QString & | inputname | ||
| ) | [static] |
Definition at line 1053 of file cardutil.cpp.
Referenced by TV::SwitchCards().
| bool CardUtil::SetStartChannel | ( | uint | cardinputid, |
| const QString & | channum | ||
| ) | [static] |
Definition at line 1078 of file cardutil.cpp.
Referenced by TV::SwitchCards().
| int CardUtil::CreateCardInput | ( | const uint | cardid, |
| 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 1337 of file cardutil.cpp.
Referenced by Capture::AddCardInput().
| bool CardUtil::DeleteInput | ( | uint | inputid | ) | [static] |
Definition at line 1401 of file cardutil.cpp.
Referenced by clone_cardinputs(), DeleteCard(), DeleteOrphanInputs(), and Capture::RemoveCardInput().
| vector< uint > CardUtil::GetCardIDs | ( | uint | sourceid | ) | [static] |
Definition at line 1029 of file cardutil.cpp.
| QString CardUtil::GetStartInput | ( | uint | cardid | ) | [static] |
Returns the start input for the card.
| nCardID | card id to check |
Definition at line 1101 of file cardutil.cpp.
Referenced by ChannelBase::GetStartInput(), TVRec::Init(), main(), and TVRec::TuningGetChanNum().
| QStringList CardUtil::GetInputNames | ( | uint | cardid, |
| uint | sourceid = 0 |
||
| ) | [static] |
Definition at line 1120 of file cardutil.cpp.
Referenced by main().
| bool CardUtil::GetInputInfo | ( | InputInfo & | info, |
| vector< uint > * | groupids = NULL |
||
| ) | [static] |
Definition at line 1154 of file cardutil.cpp.
Referenced by TV::FillOSDMenuSource(), GetCardID(), ChannelBase::GetFreeInputs(), GetInputName(), is_input_group_busy(), and TVRec::IsBusy().
| uint CardUtil::GetCardID | ( | uint | inputid | ) | [static] |
Definition at line 1185 of file cardutil.cpp.
Referenced by TV::SwitchCards(), and TV::SwitchInputs().
| QString CardUtil::GetInputName | ( | uint | inputid | ) | [static] |
Definition at line 1192 of file cardutil.cpp.
Referenced by clone_cardinputs(), and TV::SwitchCards().
| QString CardUtil::GetStartingChannel | ( | uint | inputid | ) | [static] |
Definition at line 1199 of file cardutil.cpp.
Referenced by StartingChannel::SetSourceID(), and TV::SwitchCards().
| QString CardUtil::GetDisplayName | ( | uint | inputid | ) | [static] |
Definition at line 1215 of file cardutil.cpp.
Referenced by TV::FillOSDMenuSource(), SchedOptMixin::Load(), and TV::UpdateOSDInput().
| static QString CardUtil::GetDisplayName | ( | uint | cardid, |
| const QString & | inputname | ||
| ) | [inline, static] |
Definition at line 292 of file cardutil.h.
Referenced by GetDisplayName().
| static QString CardUtil::GetDisplayName | ( | uint | cardid, |
| uint | sourceid | ||
| ) | [inline, static] |
Definition at line 294 of file cardutil.h.
Referenced by GetDisplayName().
| vector< uint > CardUtil::GetAllInputIDs | ( | void | ) | [static] |
Definition at line 1292 of file cardutil.cpp.
Referenced by SchedOptMixin::Load().
| vector< uint > CardUtil::GetInputIDs | ( | uint | cardid | ) | [static] |
Definition at line 1313 of file cardutil.cpp.
Referenced by clone_cardinputs(), CreateInputGroupIfNeeded(), DeleteCard(), TV::FillOSDMenuSource(), get_chanid(), and GetSharedInputGroups().
| uint CardUtil::GetInputID | ( | uint | cardid, |
| const QString & | inputname | ||
| ) | [static] |
Definition at line 1240 of file cardutil.cpp.
Referenced by TVBrowseHelper::BrowseChannel(), TV::ChangeChannel(), and main().
| uint CardUtil::GetInputID | ( | uint | cardid, |
| uint | sourceid | ||
| ) | [static] |
Definition at line 1258 of file cardutil.cpp.
| uint CardUtil::GetSourceID | ( | uint | inputid | ) | [static] |
Definition at line 1276 of file cardutil.cpp.
Referenced by TVBrowseHelper::BrowseChannel(), get_chanid(), and main().
| bool CardUtil::DeleteOrphanInputs | ( | void | ) | [static] |
Definition at line 1418 of file cardutil.cpp.
Referenced by DeleteCard(), SourceUtil::DeleteSource(), and CardInput::Save().
| static bool CardUtil::SetInputValue | ( | const QString & | col, |
| uint | iid, | ||
| int | val | ||
| ) | [inline, static] |
Definition at line 303 of file cardutil.h.
| static bool CardUtil::SetInputValue | ( | const QString & | col, |
| uint | iid, | ||
| const QString & | val | ||
| ) | [inline, static] |
Definition at line 306 of file cardutil.h.
| uint CardUtil::CreateInputGroup | ( | const QString & | name | ) | [static] |
Definition at line 1452 of file cardutil.cpp.
Referenced by CreateInputGroupIfNeeded(), and CardInput::CreateNewInputGroup().
| bool CardUtil::CreateInputGroupIfNeeded | ( | uint | cardid | ) | [static] |
Definition at line 1481 of file cardutil.cpp.
Referenced by CaptureCard::Save(), and CardInput::Save().
| bool CardUtil::LinkInputGroup | ( | uint | inputid, |
| uint | inputgroupid | ||
| ) | [static] |
Definition at line 1518 of file cardutil.cpp.
Referenced by clone_cardinputs(), CreateInputGroupIfNeeded(), and InputGroup::Save().
| bool CardUtil::UnlinkInputGroup | ( | uint | inputid, |
| uint | inputgroupid | ||
| ) | [static] |
Definition at line 1558 of file cardutil.cpp.
Referenced by clone_cardinputs(), DeleteCard(), SourceUtil::DeleteSource(), CardInput::Save(), and InputGroup::Save().
| vector< uint > CardUtil::GetInputGroups | ( | uint | inputid | ) | [static] |
Definition at line 1588 of file cardutil.cpp.
Referenced by clone_cardinputs(), GetConflictingCards(), GetInputInfo(), GetSharedInputGroups(), ChannelBase::IsInputAvailable(), and TV::ShowOSDAskAllow().
| vector< uint > CardUtil::GetSharedInputGroups | ( | uint | cardid | ) | [static] |
Definition at line 1614 of file cardutil.cpp.
Referenced by CreateInputGroupIfNeeded().
| vector< uint > CardUtil::GetGroupCardIDs | ( | uint | inputgroupid | ) | [static] |
Definition at line 1638 of file cardutil.cpp.
Referenced by GetConflictingCards(), and is_input_group_busy().
| vector< uint > CardUtil::GetConflictingCards | ( | uint | inputid, |
| uint | exclude_cardid | ||
| ) | [static] |
Definition at line 1665 of file cardutil.cpp.
Referenced by Scheduler::IsBusyRecording(), and TVRec::RecordPending().
| QString CardUtil::GetDeviceLabel | ( | const QString & | cardtype, |
| const QString & | videodevice | ||
| ) | [static] |
Definition at line 2038 of file cardutil.cpp.
Referenced by StatusBox::doTunerStatus(), CaptureCard::fillSelections(), HttpStatus::FillStatusXML(), GetCardInputs(), GetDeviceLabel(), and InputSelector::Load().
| QString CardUtil::GetDeviceLabel | ( | uint | cardid | ) | [static] |
Definition at line 2044 of file cardutil.cpp.
| QString CardUtil::ProbeSubTypeName | ( | uint | cardid | ) | [static] |
Definition at line 496 of file cardutil.cpp.
Referenced by get_cardtype(), ScanWizard::SetInput(), and ScanTypeSetting::SetInput().
| QStringList CardUtil::ProbeVideoInputs | ( | QString | device, |
| QString | cardtype = QString::null |
||
| ) | [static] |
Definition at line 1924 of file cardutil.cpp.
| QStringList CardUtil::ProbeAudioInputs | ( | QString | device, |
| QString | cardtype = QString::null |
||
| ) | [static] |
Definition at line 1938 of file cardutil.cpp.
Referenced by TunerCardAudioInput::fillSelections().
| void CardUtil::GetCardInputs | ( | uint | cardid, |
| const QString & | device, | ||
| const QString & | cardtype, | ||
| QStringList & | inputLabels, | ||
| vector< CardInput * > & | cardInputs | ||
| ) | [static] |
Definition at line 2061 of file cardutil.cpp.
Referenced by CardInputEditor::Load().
| QStringList CardUtil::ProbeVideoDevices | ( | const QString & | rawtype | ) | [static] |
Definition at line 287 of file cardutil.cpp.
Referenced by HDHomeRunConfigurationGroup::FillDeviceList(), DVBCardNum::fillSelections(), and ASIDevice::fillSelections().
| bool CardUtil::CloneCard | ( | uint | src_cardid, |
| uint | dst_cardid | ||
| ) | [static] |
Definition at line 926 of file cardutil.cpp.
Referenced by CaptureCard::Save(), and CardInput::Save().
| vector< uint > CardUtil::GetCloneCardIDs | ( | uint | cardid | ) | [static] |
Definition at line 945 of file cardutil.cpp.
Referenced by CardInput::Save().
| QString CardUtil::GetFirewireChangerNode | ( | uint | inputid | ) | [static] |
Definition at line 995 of file cardutil.cpp.
Referenced by ChannelBase::ChangeInternalChannel().
| QString CardUtil::GetFirewireChangerModel | ( | uint | inputid | ) | [static] |
Definition at line 1012 of file cardutil.cpp.
Referenced by ChannelBase::ChangeInternalChannel().
| bool CardUtil::GetTimeouts | ( | uint | cardid, |
| uint & | signal_timeout, | ||
| uint & | channel_timeout | ||
| ) | [static] |
Definition at line 1697 of file cardutil.cpp.
Referenced by ChannelScanner::PreScanCommon().
| static bool CardUtil::IgnoreEncrypted | ( | uint | cardid, |
| const QString & | inputname | ||
| ) | [static] |
| static bool CardUtil::TVOnly | ( | uint | cardid, |
| const QString & | inputname | ||
| ) | [static] |
| bool CardUtil::IsInNeedOfExternalInputConf | ( | uint | cardid | ) | [static] |
Definition at line 1719 of file cardutil.cpp.
Referenced by CardInput::CardInput(), and GetCardInputs().
| uint CardUtil::GetQuickTuning | ( | uint | cardid, |
| const QString & | inputname | ||
| ) | [static] |
Definition at line 1731 of file cardutil.cpp.
Referenced by DTVChannel::GetSuggestedTuningMode().
| static bool CardUtil::IsDVB | ( | uint | cardid | ) | [inline, static] |
Returns true if the card is a DVB card.
Definition at line 356 of file cardutil.h.
| bool CardUtil::IsDVBCardType | ( | const QString & | card_type | ) | [static] |
Returns true iff the card_type is one of the DVB types.
Definition at line 511 of file cardutil.cpp.
Referenced by SignalMonitor::Init().
| QString CardUtil::ProbeDVBFrontendName | ( | const QString & | device | ) | [static] |
Returns the card type from the video device.
Definition at line 434 of file cardutil.cpp.
Referenced by GetMinSignalMonitoringDelay(), HasDVBCRCBug(), and DVBConfigurationGroup::probeCard().
| QString CardUtil::ProbeDVBType | ( | const QString & | device | ) | [static] |
Definition at line 390 of file cardutil.cpp.
Referenced by ChannelScanner::PreScanCommon(), DVBConfigurationGroup::probeCard(), ProbeSubTypeName(), and ChannelScanner::Scan().
| 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 http://svn.mythtv.org/trac/ticket/3541).
| device | Open DVB frontend device file descriptor to be checked |
Definition at line 479 of file cardutil.cpp.
Referenced by DVBChannel::DVBChannel().
| uint CardUtil::GetMinSignalMonitoringDelay | ( | const QString & | device | ) | [static] |
Definition at line 486 of file cardutil.cpp.
Referenced by DVBChannel::DVBChannel().
| QString CardUtil::GetDeviceName | ( | dvb_dev_type_t | type, |
| const QString & | device | ||
| ) | [static] |
Definition at line 2313 of file cardutil.cpp.
Referenced by DVBCam::DVBCam(), DVBChannel::DVBChannel(), DVBChannel::GetMasterLock(), DVBCardNum::Load(), DVBPIDInfo::Open(), DVBChannel::Open(), ProbeDVBFrontendName(), ProbeDVBType(), DVBCam::Start(), and DVBChannel::~DVBChannel().
| InputNames CardUtil::GetConfiguredDVBInputs | ( | uint | cardid | ) | [static] |
Definition at line 1904 of file cardutil.cpp.
Referenced by GetCardInputs(), and ProbeDVBInputs().
| bool CardUtil::hasV4L2 | ( | int | videofd | ) | [static] |
Definition at line 1752 of file cardutil.cpp.
Referenced by ProbeV4LAudioInputs(), and ProbeV4LVideoInputs().
| bool CardUtil::GetV4LInfo | ( | int | videofd, |
| QString & | card, | ||
| QString & | driver, | ||
| uint32_t & | version, | ||
| uint32_t & | capabilities | ||
| ) | [static] |
Definition at line 1766 of file cardutil.cpp.
Referenced by AnalogSignalMonitor::AnalogSignalMonitor(), VideoDevice::fillSelectionsFromDir(), VBIDevice::fillSelectionsFromDir(), V4LChannel::Open(), MpegRecorder::OpenV4L2DeviceAsInput(), V4LConfigurationGroup::probeCard(), MPEGConfigurationGroup::probeCard(), and HDPVRConfigurationGroup::probeCard().
| static bool CardUtil::GetV4LInfo | ( | int | videofd, |
| QString & | card, | ||
| QString & | driver | ||
| ) | [inline, static] |
Definition at line 370 of file cardutil.h.
Referenced by GetV4LInfo().
| InputNames CardUtil::ProbeV4LVideoInputs | ( | int | videofd, |
| bool & | ok | ||
| ) | [static] |
Definition at line 1804 of file cardutil.cpp.
Referenced by GetCardInputs(), V4LChannel::InitializeInputs(), ProbeV4LVideoInputs(), and ProbeVideoInputs().
| InputNames CardUtil::ProbeV4LAudioInputs | ( | int | videofd, |
| bool & | ok | ||
| ) | [static] |
Definition at line 1871 of file cardutil.cpp.
Referenced by ProbeAudioInputs(), and ProbeV4LAudioInputs().
| bool CardUtil::HDHRdoesDVB | ( | const QString & | device | ) | [static] |
If the device is valid, check if the model does DVB.
Definition at line 2342 of file cardutil.cpp.
Referenced by ScanTypeSetting::SetInput().
| QString CardUtil::GetHDHRdesc | ( | const QString & | device | ) | [static] |
Get a nicely formatted string describing the device.
Definition at line 2364 of file cardutil.cpp.
Referenced by HDHomeRunConfigurationGroup::FillDeviceList(), and HDHomeRunConfigurationGroup::ProbeCard().
| int CardUtil::GetASIDeviceNumber | ( | const QString & | device, |
| QString * | error = NULL |
||
| ) | [static] |
Definition at line 2444 of file cardutil.cpp.
Referenced by ASIStreamHandler::Open(), ASIConfigurationGroup::probeCard(), and ProbeVideoDevices().
| uint CardUtil::GetASIBufferSize | ( | uint | device_num, |
| QString * | error = NULL |
||
| ) | [static] |
Definition at line 2501 of file cardutil.cpp.
Referenced by ASIStreamHandler::Open().
| int CardUtil::GetASIMode | ( | uint | device_num, |
| QString * | error = NULL |
||
| ) | [static] |
Definition at line 2526 of file cardutil.cpp.
| bool CardUtil::SetASIMode | ( | uint | device_num, |
| uint | mode, | ||
| QString * | error = NULL |
||
| ) | [static] |
Definition at line 2550 of file cardutil.cpp.
Referenced by ASIStreamHandler::Open().
| QStringList CardUtil::ProbeV4LVideoInputs | ( | QString | device | ) | [static, private] |
Definition at line 1950 of file cardutil.cpp.
| QStringList CardUtil::ProbeV4LAudioInputs | ( | QString | device | ) | [static, private] |
Definition at line 1981 of file cardutil.cpp.
| QStringList CardUtil::ProbeDVBInputs | ( | QString | device | ) | [static, private] |
Definition at line 2014 of file cardutil.cpp.
Referenced by ProbeVideoInputs().
1.7.6.1