#include <cardutil.h>
Definition at line 38 of file cardutil.h.
Public Types | |
| enum | CARD_TYPES { ERROR_OPEN = 0, ERROR_UNKNOWN, ERROR_PROBE, QPSK, QAM, OFDM, ATSC, V4L, MPEG, FIREWIRE, HDHOMERUN, FREEBOX } |
| 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 | IsUnscanable (const QString &rawtype) |
| 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 uint | GetFirstCardID (const QString &videodevice) |
| Convenience function for GetCardIDs(const QString&, QString, QString). | |
| static vector< uint > | GetCardIDs (const QString &videodevice, QString rawtype=QString::null, QString hostname=QString::null) |
| Returns all cardids of cards that uses the specified videodevice, 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 QStringVec | 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 | GetVBIDevice (uint cardid) |
| static uint | GetHDHRTuner (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 vector< uint > | GetCardIDs (uint sourceid) |
| static QString | GetDefaultInput (uint cardid) |
| Returns the default input for the card. | |
| static QStringList | GetInputNames (uint cardid, uint sourceid) |
| static bool | GetInputInfo (InputInfo &info, vector< uint > *groupids=NULL) |
| static uint | GetCardID (uint inputid) |
| static QString | GetInputName (uint inputid) |
| static QString | GetDisplayName (uint inputid) |
| static QString | GetDisplayName (uint cardid, const QString &inputname) |
| static vector< uint > | GetInputIDs (uint cardid) |
| static bool | DeleteInput (uint inputid) |
| static bool | DeleteOrphanInputs (void) |
| 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 (uint cardid, QString cardtype, QString videodevice) |
| static QString | ProbeSubTypeName (uint cardid) |
| static QStringList | probeInputs (QString device, QString cardtype=QString::null) |
| static void | GetCardInputs (uint cardid, const QString &device, const QString &cardtype, QStringList &inputLabels, vector< CardInput * > &cardInputs) |
| static bool | DeleteCard (uint cardid) |
| static bool | DeleteAllCards (void) |
| static vector< uint > | GetCardList (void) |
| static QStringVec | ProbeVideoDevices (const QString &rawtype) |
| static bool | CloneCard (uint src_cardid, uint dst_cardid) |
| static vector< uint > | GetCloneCardIDs (uint cardid) |
| 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 (uint device) |
| Returns the card type from the video device. | |
| static QString | ProbeDVBType (uint device) |
| static bool | HasDVBCRCBug (uint device) |
| Returns true if and only if the device munges PAT/PMT tables, and then doesn't fix the CRC. | |
| static uint | GetMinSignalMonitoringDelay (uint device) |
| static QString | GetDeviceName (dvb_dev_type_t, uint cardnum) |
| static InputNames | GetConfiguredDVBInputs (uint cardid) |
| static bool | hasV4L2 (int videofd) |
| static bool | GetV4LInfo (int videofd, QString &card, QString &driver, uint32_t &version) |
| static bool | GetV4LInfo (int videofd, QString &card, QString &driver) |
| static InputNames | probeV4LInputs (int videofd, bool &ok) |
Static Private Member Functions | |
| static QStringList | probeV4LInputs (QString device) |
| static QStringList | probeDVBInputs (QString device) |
| enum CardUtil::CARD_TYPES |
all the different capture cards
| ERROR_OPEN | |
| ERROR_UNKNOWN | |
| ERROR_PROBE | |
| QPSK | |
| QAM | |
| OFDM | |
| ATSC | |
| V4L | |
| MPEG | |
| FIREWIRE | |
| HDHOMERUN | |
| FREEBOX |
Definition at line 42 of file cardutil.h.
| static enum CARD_TYPES CardUtil::toCardType | ( | const QString & | name | ) | [inline, static] |
Definition at line 58 of file cardutil.h.
Referenced by get_cardtype(), DVBConfigurationGroup::probeCard(), ScanTypeSetting::SetInput(), and ScanWizard::SetInput().
| static bool CardUtil::IsEncoder | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 87 of file cardutil.h.
Referenced by GetCardInputs(), TVRec::GetMaxBitrate(), ChannelData::insert_chan(), SourceUtil::IsEncoder(), SourceUtil::IsProperlyConnected(), RecordingProfile::loadByID(), and CardInput::sourceFetch().
| static bool CardUtil::IsUnscanable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 95 of file cardutil.h.
Referenced by CardInput::channelScanner(), GetCardInputs(), ChannelData::insert_chan(), SourceUtil::IsProperlyConnected(), SourceUtil::IsUnscanable(), and CardInput::sourceFetch().
| static bool CardUtil::IsEITCapable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 101 of file cardutil.h.
Referenced by TVRec::RunTV(), and ChannelOptionsCommon::sourceChanged().
| static bool CardUtil::IsTunerSharingCapable | ( | const QString & | rawtype | ) | [inline, static] |
Definition at line 107 of file cardutil.h.
Referenced by CloneCard(), DeleteCard(), GetCloneCardIDs(), IsTunerShared(), CaptureCard::loadByID(), CardInput::save(), and CaptureCard::save().
| static bool CardUtil::IsTuningDigital | ( | const QString & | rawtype | ) | [inline, static] |
| static bool CardUtil::IsTuningAnalog | ( | const QString & | rawtype | ) | [inline, static] |
| static uint CardUtil::GetFirstCardID | ( | const QString & | videodevice | ) | [inline, static] |
Convenience function for GetCardIDs(const QString&, QString, QString).
Definition at line 126 of file cardutil.h.
Referenced by ChannelBase::GetCardID(), and probeDVBInputs().
| vector< uint > CardUtil::GetCardIDs | ( | const QString & | videodevice, | |
| QString | rawtype = QString::null, |
|||
| QString | hostname = QString::null | |||
| ) | [static] |
Returns all cardids of cards that uses the specified videodevice, 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 380 of file cardutil.cpp.
Referenced by TV::IsTunable(), CaptureCard::loadByID(), 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 82 of file cardutil.cpp.
| QStringVec 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 122 of file cardutil.cpp.
Referenced by DVBCardNum::fillSelections().
| static QString CardUtil::GetRawCardType | ( | uint | cardid | ) | [inline, static] |
Definition at line 143 of file cardutil.h.
Referenced by CardInput::channelScanner(), CloneCard(), DeleteCard(), get_cardtype(), CaptureCard::loadByID(), ScanWizardScanner::PreScanCommon(), ProbeSubTypeName(), CardInput::save(), CaptureCard::save(), ScanWizardScanner::Scan(), CardInput::sourceFetch(), and TunerCardInput::TunerCardInput().
| static QString CardUtil::GetVideoDevice | ( | uint | cardid | ) | [inline, static] |
Definition at line 145 of file cardutil.h.
Referenced by CreateInputGroupIfNeeded(), DeleteCard(), CaptureCard::loadByID(), ScanWizardScanner::PreScanCommon(), ProbeSubTypeName(), IPTVChannelFetcher::RunScan(), CaptureCard::save(), ScanWizardScanner::Scan(), and TunerCardInput::TunerCardInput().
| static QString CardUtil::GetVBIDevice | ( | uint | cardid | ) | [inline, static] |
Definition at line 147 of file cardutil.h.
| static int CardUtil::GetValueInt | ( | const QString & | col, | |
| uint | cid | |||
| ) | [inline, static] |
Definition at line 152 of file cardutil.h.
Referenced by Channel::ChangePictureAttribute(), Channel::GetPictureAttribute(), and Channel::InitPictureAttribute().
| static bool CardUtil::SetValue | ( | const QString & | col, | |
| uint | cid, | |||
| uint | sid, | |||
| const QString & | val | |||
| ) | [inline, static] |
Definition at line 157 of file cardutil.h.
Definition at line 759 of file cardutil.cpp.
| QString CardUtil::GetDefaultInput | ( | uint | cardid | ) | [static] |
Returns the default input for the card.
| nCardID | card id to check |
Definition at line 788 of file cardutil.cpp.
Definition at line 805 of file cardutil.cpp.
Definition at line 829 of file cardutil.cpp.
Referenced by GetCardID(), ChannelBase::GetFreeInputs(), GetInputName(), is_input_group_busy(), and TVRec::IsBusy().
Definition at line 859 of file cardutil.cpp.
Referenced by TV::SwitchCards(), and TV::SwitchInputs().
| QString CardUtil::GetInputName | ( | uint | inputid | ) | [static] |
| QString CardUtil::GetDisplayName | ( | uint | inputid | ) | [static] |
Definition at line 873 of file cardutil.cpp.
Referenced by TV::FillMenuLiveTV(), and TV::UpdateOSDInput().
| QString CardUtil::GetDisplayName | ( | uint | cardid, | |
| const QString & | inputname | |||
| ) | [static] |
Definition at line 889 of file cardutil.cpp.
Definition at line 907 of file cardutil.cpp.
Referenced by clone_cardinputs(), CreateInputGroupIfNeeded(), DeleteCard(), and GetSharedInputGroups().
Definition at line 931 of file cardutil.cpp.
Referenced by clone_cardinputs(), DeleteCard(), and DeleteOrphanInputs().
| bool CardUtil::DeleteOrphanInputs | ( | void | ) | [static] |
Definition at line 948 of file cardutil.cpp.
Referenced by DeleteCard(), SourceUtil::DeleteSource(), and CardInput::save().
| uint CardUtil::CreateInputGroup | ( | const QString & | name | ) | [static] |
Definition at line 983 of file cardutil.cpp.
Referenced by CreateInputGroupIfNeeded(), and CardInput::CreateNewInputGroup().
Definition at line 1012 of file cardutil.cpp.
Referenced by CardInput::save(), and CaptureCard::save().
Definition at line 1049 of file cardutil.cpp.
Referenced by clone_cardinputs(), CreateInputGroupIfNeeded(), and InputGroup::save().
Definition at line 1089 of file cardutil.cpp.
Referenced by clone_cardinputs(), DeleteCard(), SourceUtil::DeleteSource(), CardInput::save(), and InputGroup::save().
Definition at line 1119 of file cardutil.cpp.
Referenced by clone_cardinputs(), GetConflictingCards(), GetInputInfo(), GetSharedInputGroups(), ChannelBase::IsInputAvailable(), and TV::UpdateOSDAskAllowDialog().
Definition at line 1169 of file cardutil.cpp.
Referenced by GetConflictingCards(), and is_input_group_busy().
Definition at line 1196 of file cardutil.cpp.
Referenced by Scheduler::IsBusyRecording(), and TVRec::RecordPending().
| QString CardUtil::GetDeviceLabel | ( | uint | cardid, | |
| QString | cardtype, | |||
| QString | videodevice | |||
| ) | [static] |
Definition at line 1526 of file cardutil.cpp.
Referenced by StatusBox::doTunerStatus(), CaptureCard::fillSelections(), GetCardInputs(), and InputSelector::load().
| QString CardUtil::ProbeSubTypeName | ( | uint | cardid | ) | [static] |
Definition at line 304 of file cardutil.cpp.
Referenced by get_cardtype(), ScanTypeSetting::SetInput(), and ScanWizard::SetInput().
| QStringList CardUtil::probeInputs | ( | QString | device, | |
| QString | cardtype = QString::null | |||
| ) | [static] |
Definition at line 1637 of file cardutil.cpp.
Referenced by clone_capturecard(), CloneCard(), CaptureCardEditor::del(), CaptureCardEditor::edit(), and CaptureCard::save().
| bool CardUtil::DeleteAllCards | ( | void | ) | [static] |
| vector< uint > CardUtil::GetCardList | ( | void | ) | [static] |
| QStringVec CardUtil::ProbeVideoDevices | ( | const QString & | rawtype | ) | [static] |
Definition at line 690 of file cardutil.cpp.
Referenced by CardInput::save(), and CaptureCard::save().
Definition at line 1291 of file cardutil.cpp.
Referenced by CardInput::CardInput(), and GetCardInputs().
| bool CardUtil::IsDVBCardType | ( | const QString | card_type | ) | [static] |
Returns true iff the card_type is one of the DVB types.
Definition at line 321 of file cardutil.cpp.
Referenced by SignalMonitor::Init(), and SignalMonitor::IsRequired().
| QString CardUtil::ProbeDVBFrontendName | ( | uint | device | ) | [static] |
Returns the card type from the video device.
Definition at line 243 of file cardutil.cpp.
Referenced by GetMinSignalMonitoringDelay(), HasDVBCRCBug(), and DVBConfigurationGroup::probeCard().
| QString CardUtil::ProbeDVBType | ( | uint | device | ) | [static] |
Definition at line 209 of file cardutil.cpp.
Referenced by ScanWizardScanner::PreScanCommon(), DVBConfigurationGroup::probeCard(), ProbeSubTypeName(), and ScanWizardScanner::Scan().
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 287 of file cardutil.cpp.
Referenced by DVBChannel::DVBChannel().
| QString CardUtil::GetDeviceName | ( | dvb_dev_type_t | type, | |
| uint | cardnum | |||
| ) | [static] |
Definition at line 1740 of file cardutil.cpp.
Referenced by DVBCam::DVBCam(), DVBChannel::DVBChannel(), PIDInfo::Open(), DVBChannel::Open(), ProbeDVBFrontendName(), ProbeDVBType(), and DVBCam::Start().
| InputNames CardUtil::GetConfiguredDVBInputs | ( | uint | cardid | ) | [static] |
| bool CardUtil::hasV4L2 | ( | int | videofd | ) | [static] |
Definition at line 1324 of file cardutil.cpp.
Referenced by AnalogSignalMonitor::AnalogSignalMonitor(), Channel::Open(), and probeV4LInputs().
| bool CardUtil::GetV4LInfo | ( | int | videofd, | |
| QString & | card, | |||
| QString & | driver, | |||
| uint32_t & | version | |||
| ) | [static] |
Definition at line 1338 of file cardutil.cpp.
Referenced by VBIDevice::fillSelectionsFromDir(), VideoDevice::fillSelectionsFromDir(), PVR350VideoDevice::fillSelectionsFromDir(), Channel::Open(), MpegRecorder::OpenV4L2DeviceAsInput(), MPEGConfigurationGroup::probeCard(), and V4LConfigurationGroup::probeCard().
| static bool CardUtil::GetV4LInfo | ( | int | videofd, | |
| QString & | card, | |||
| QString & | driver | |||
| ) | [inline, static] |
Definition at line 235 of file cardutil.h.
| InputNames CardUtil::probeV4LInputs | ( | int | videofd, | |
| bool & | ok | |||
| ) | [static] |
Definition at line 1368 of file cardutil.cpp.
Referenced by GetCardInputs(), Channel::InitializeInputs(), probeInputs(), and probeV4LInputs().
| QStringList CardUtil::probeV4LInputs | ( | QString | device | ) | [static, private] |
Definition at line 1472 of file cardutil.cpp.
| QStringList CardUtil::probeDVBInputs | ( | QString | device | ) | [static, private] |
1.5.5