vdr
2.4.7
|
#include <pat.h>
Public Member Functions | |
cPatFilter (void) | |
virtual void | SetStatus (bool On) |
void | Trigger (int Sid=-1) |
![]() | |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
Protected Member Functions | |
virtual void | Process (u_short Pid, u_char Tid, const u_char *Data, int Length) |
![]() | |
cFilter (void) | |
cFilter (u_short Pid, u_char Tid, u_char Mask=0xFF) | |
virtual | ~cFilter () |
int | Source (void) |
int | Transponder (void) |
const cChannel * | Channel (void) |
bool | Matches (u_short Pid, u_char Tid) |
void | Set (u_short Pid, u_char Tid, u_char Mask=0xFF) |
void | Add (u_short Pid, u_char Tid, u_char Mask=0xFF, bool Sticky=false) |
void | Del (u_short Pid, u_char Tid, u_char Mask=0xFF) |
Private Member Functions | |
bool | PmtPidComplete (int PmtPid) |
void | PmtPidReset (int PmtPid) |
bool | PmtVersionChanged (int PmtPid, int Sid, int Version, bool SetNewVersion=false) |
void | SwitchToNextPmtPid (void) |
Private Attributes | |
cMutex | mutex |
cTimeMs | timer |
int | patVersion |
int | sid |
cPmtPidEntry * | activePmt |
cList< cPmtPidEntry > | pmtPidList |
cList< cPmtSidEntry > | pmtSidList |
cSectionSyncer | sectionSyncer |
cPatFilter::cPatFilter | ( | void | ) |
Definition at line 340 of file pat.c.
References cFilter::Set(), and Trigger().
|
private |
Definition at line 368 of file pat.c.
References cList< T >::First(), cList< T >::Next(), and pmtSidList.
Referenced by PmtVersionChanged().
|
private |
Definition at line 377 of file pat.c.
References cList< T >::First(), cList< T >::Next(), and pmtSidList.
Referenced by SwitchToNextPmtPid().
|
private |
Definition at line 385 of file pat.c.
References DBGLOG, cList< T >::First(), cList< T >::Next(), PmtPidComplete(), pmtSidList, and cFilter::Transponder().
Referenced by Process().
|
protectedvirtual |
Processes the data delivered to this filter.
Pid and Tid is one of the combinations added to this filter by a previous call to Add(), Data is a pointer to Length bytes of data. This function will be called from the section handler's thread, so it has to use proper locking mechanisms in case it accesses any global data. It is guaranteed that if several cFilters are attached to the same cSectionHandler, only one of them has its Process() function called at any given time. It is allowed that more than one cFilter are set up to receive the same Pid/Tid. The Process() function must return as soon as possible.
Implements cFilter.
Definition at line 419 of file pat.c.
References SI::AC3DescriptorTag, activePmt, cListBase::Add(), cFilter::Add(), cCaDescriptors::AddCaDescriptor(), cCaDescriptorHandler::AddCaDescriptors(), SI::PAT::associationLoop, CaDescriptorHandler, SI::CaDescriptorTag, cCaDescriptors::CaIds(), cFilter::Channel(), SI::CRCSection::CheckCRCAndParse(), cListBase::Clear(), cChannel::ClearObsoleteChannel(), SI::PMT::commonDescriptors, cSectionSyncer::Complete(), cPmtPidEntry::Complete(), cListBase::Count(), DBGLOG, cFilter::Del(), SI::EnhancedAC3DescriptorTag, cList< T >::First(), SI::SubtitlingDescriptor::Subtitling::getAncillaryPageId(), cChannels::GetByServiceID(), cChannels::GetChannelsWrite(), SI::SubtitlingDescriptor::Subtitling::getCompositionPageId(), SI::Descriptor::getDescriptorTag(), SI::RegistrationDescriptor::getFormatIdentifier(), SI::NumberedSection::getLastSectionNumber(), SI::DescriptorLoop::getNext(), SI::PMT::getPCRPid(), SI::PAT::Association::getPid(), SI::PMT::Stream::getPid(), SI::NumberedSection::getSectionNumber(), SI::PAT::Association::getServiceId(), SI::PMT::getServiceId(), SI::PMT::Stream::getStreamType(), SI::SubtitlingDescriptor::Subtitling::getSubtitlingType(), SI::NumberedSection::getTableIdExtension(), SI::NumberedSection::getVersionNumber(), I18nNormalizeLanguageCode(), SI::PAT::Association::isNITPid(), SI::ISO639LanguageDescriptorTag, SI::SubtitlingDescriptor::Subtitling::languageCode, SI::ISO639LanguageDescriptor::languageCode, SI::ISO639LanguageDescriptor::Language::languageCode, SI::ISO639LanguageDescriptor::languageLoop, MAXAPIDS, MAXDPIDS, MAXLANGCODE1, MAXLANGCODE2, MAXSPIDS, mutex, cList< T >::Next(), patVersion, cPmtPidEntry::Pid(), PMT_SCAN_TIMEOUT, pmtPidList, pmtSidList, PmtVersionChanged(), SI::RegistrationDescriptorTag, cStateKey::Remove(), sectionSyncer, cTimeMs::Set(), cChannel::SetCaDescriptors(), cChannel::SetCaIds(), cChannel::SetPids(), cChannel::SetSeen(), cChannel::SetSubtitlingDescriptors(), Setup, cChannel::Sid(), sid, cFilter::Source(), cChannel::Source(), STANDARD_ANSISCTE, cSetup::StandardCompliance, SI::PMT::Stream::streamDescriptors, SI::PMT::streamLoop, strn0cpy(), SI::SubtitlingDescriptorTag, SI::SubtitlingDescriptor::subtitlingLoop, SwitchToNextPmtPid(), cSectionSyncer::Sync(), SI::TableIdPAT, SI::TableIdPMT, SI::TeletextDescriptorTag, cTimeMs::TimedOut(), timer, cFilter::Transponder(), cChannel::Transponder(), and cSetup::UpdateChannels.
|
virtual |
Turns this filter on or off, depending on the value of On.
If the filter is turned off, any filter data that has been added without the Sticky parameter set to 'true' will be automatically deleted. Those parameters that have been added with Sticky set to 'true' will be automatically reused when SetStatus(true) is called.
Reimplemented from cFilter.
Definition at line 346 of file pat.c.
References DBGLOG, mutex, cFilter::SetStatus(), and Trigger().
|
private |
Definition at line 407 of file pat.c.
References activePmt, cFilter::Add(), cFilter::Del(), cList< T >::First(), cList< T >::Next(), cPmtPidEntry::Pid(), pmtPidList, PmtPidReset(), cPmtPidEntry::SetComplete(), and SI::TableIdPMT.
Referenced by Process().
void cPatFilter::Trigger | ( | int | Sid = -1 | ) |
Definition at line 354 of file pat.c.
References activePmt, DBGLOG, cFilter::Del(), mutex, patVersion, cPmtPidEntry::Pid(), cSectionSyncer::Reset(), sectionSyncer, sid, and SI::TableIdPMT.
Referenced by cPatFilter(), cSdtFilter::Process(), cDevice::SetChannel(), and SetStatus().
|
private |
Definition at line 26 of file pat.h.
Referenced by Process(), SwitchToNextPmtPid(), and Trigger().
|
private |
Definition at line 22 of file pat.h.
Referenced by Process(), SetStatus(), and Trigger().
|
private |
|
private |
Definition at line 27 of file pat.h.
Referenced by Process(), and SwitchToNextPmtPid().
|
private |
Definition at line 28 of file pat.h.
Referenced by PmtPidComplete(), PmtPidReset(), PmtVersionChanged(), and Process().
|
private |
|
private |