vdr  2.6.1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
cNitFilter Class Reference

#include <nit.h>

Public Member Functions

 cNitFilter (cSdtFilter *SdtFilter)
 
virtual void SetStatus (bool On)
 
- Public Member Functions inherited from cListObject
 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
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Protected Member Functions

virtual void Process (u_short Pid, u_char Tid, const u_char *Data, int Length)
 
- Protected Member Functions inherited from cFilter
 cFilter (void)
 
 cFilter (u_short Pid, u_char Tid, u_char Mask=0xFF)
 
virtual ~cFilter ()
 
int Source (void)
 
int Transponder (void)
 
const cChannelChannel (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 Attributes

cSectionSyncer sectionSyncer
 
cSdtFiltersdtFilter
 

Detailed Description

Definition at line 16 of file nit.h.

Constructor & Destructor Documentation

◆ cNitFilter()

cNitFilter::cNitFilter ( cSdtFilter SdtFilter)

Definition at line 29 of file nit.c.

References sdtFilter, cFilter::Set(), and SI::TableIdNIT.

Member Function Documentation

◆ Process()

void cNitFilter::Process ( u_short  Pid,
u_char  Tid,
const u_char *  Data,
int  Length 
)
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 41 of file nit.c.

References cEITScanner::AddTransponder(), cDvbTransponderParameters::Bandwidth(), BCD2INT(), SI::CableDeliverySystemDescriptorTag, cFilter::Channel(), cSectionSyncer::Check(), SI::CRCSection::CheckCRCAndParse(), cDvbTransponderParameters::CoderateH(), cDvbTransponderParameters::CoderateL(), SI::NIT::commonDescriptors, dbgnit, DebugNit, DVB_SYSTEM_1, DVB_SYSTEM_2, EITScanner, SI::ExtensionDescriptorTag, cList< T >::First(), SI::FrequencyListDescriptor::frequencies, cChannel::Frequency(), SI::FrequencyListDescriptorTag, cSource::FromData(), SI::TerrestrialDeliverySystemDescriptor::getBandwidth(), SI::T2DeliverySystemDescriptor::getBandwidth(), cChannels::GetChannelsWrite(), SI::TerrestrialDeliverySystemDescriptor::getCodeRateHP(), SI::TerrestrialDeliverySystemDescriptor::getCodeRateLP(), SI::FrequencyListDescriptor::getCodingType(), SI::TerrestrialDeliverySystemDescriptor::getConstellation(), SI::TypeLoop< T >::getCount(), SI::Descriptor::getDescriptorTag(), SI::T2DeliverySystemDescriptor::getExtendedDataFlag(), SI::ExtensionDescriptor::getExtensionDescriptorTag(), SI::SatelliteDeliverySystemDescriptor::getFecInner(), SI::CableDeliverySystemDescriptor::getFecInner(), SI::SatelliteDeliverySystemDescriptor::getFrequency(), SI::CableDeliverySystemDescriptor::getFrequency(), SI::TerrestrialDeliverySystemDescriptor::getFrequency(), SI::TerrestrialDeliverySystemDescriptor::getGuardInterval(), SI::T2DeliverySystemDescriptor::getGuardInterval(), SI::TerrestrialDeliverySystemDescriptor::getHierarchy(), SI::S2SatelliteDeliverySystemDescriptor::getInputStreamIdentifier(), SI::NumberedSection::getLastSectionNumber(), SI::LogicalChannelDescriptor::LogicalChannel::getLogicalChannelNumber(), SI::HdSimulcastLogicalChannelDescriptor::HdSimulcastLogicalChannel::getLogicalChannelNumber(), SI::CableDeliverySystemDescriptor::getModulation(), SI::SatelliteDeliverySystemDescriptor::getModulationSystem(), SI::SatelliteDeliverySystemDescriptor::getModulationType(), SI::NIT::getNetworkId(), SI::DescriptorLoop::getNext(), SI::TypeLoop< T >::getNext(), SI::SatelliteDeliverySystemDescriptor::getOrbitalPosition(), SI::NIT::TransportStream::getOriginalNetworkId(), SI::T2DeliverySystemDescriptor::getPlpId(), SI::SatelliteDeliverySystemDescriptor::getPolarization(), SI::SatelliteDeliverySystemDescriptor::getRollOff(), SI::NumberedSection::getSectionNumber(), SI::LogicalChannelDescriptor::LogicalChannel::getServiceId(), SI::HdSimulcastLogicalChannelDescriptor::HdSimulcastLogicalChannel::getServiceId(), SI::T2DeliverySystemDescriptor::getSisoMiso(), SI::SatelliteDeliverySystemDescriptor::getSymbolRate(), SI::CableDeliverySystemDescriptor::getSymbolRate(), SI::T2DeliverySystemDescriptor::getT2SystemId(), SI::String::getText(), SI::TerrestrialDeliverySystemDescriptor::getTransmissionMode(), SI::T2DeliverySystemDescriptor::getTransmissionMode(), SI::NIT::TransportStream::getTransportStreamId(), SI::NumberedSection::getVersionNumber(), SI::LogicalChannelDescriptor::LogicalChannel::getVisibleServiceFlag(), SI::HdSimulcastLogicalChannelDescriptor::HdSimulcastLogicalChannel::getVisibleServiceFlag(), SI::SatelliteDeliverySystemDescriptor::getWestEastFlag(), cChannel::GroupSep(), cDvbTransponderParameters::Guard(), GUARD_INTERVAL_19_128, GUARD_INTERVAL_19_256, GUARD_INTERVAL_1_128, SI::TypeLoop< T >::hasNext(), SI::HdSimulcastLogicalChannelDescriptorTag, SI::HdSimulcastLogicalChannelDescriptor::hdSimulcastLogicalChannelLoop, cDvbTransponderParameters::Hierarchy(), cSource::IsSat(), ISTRANSPONDER, SI::LogicalChannelDescriptorTag, SI::LogicalChannelDescriptor::logicalChannelLoop, MAXNETWORKNAME, min(), cDvbTransponderParameters::Modulation(), SI::NetworkNameDescriptor::name, SI::NetworkNameDescriptorTag, cList< T >::Next(), cChannel::Nid(), cChannel::Parameters(), cDvbTransponderParameters::Polarization(), cSectionSyncer::Processed(), cStateKey::Remove(), SI::S2SatelliteDeliverySystemDescriptorTag, SI::SatelliteDeliverySystemDescriptorTag, sdtFilter, sectionSyncer, cDvbTransponderParameters::SetBandwidth(), cDvbTransponderParameters::SetCoderateH(), cDvbTransponderParameters::SetCoderateL(), cDvbTransponderParameters::SetGuard(), cDvbTransponderParameters::SetHierarchy(), cChannel::SetId(), cChannel::SetLcn(), cDvbTransponderParameters::SetModulation(), cDvbTransponderParameters::SetPolarization(), cDvbTransponderParameters::SetRollOff(), cDvbTransponderParameters::SetSisoMiso(), cDvbTransponderParameters::SetStreamId(), cDvbTransponderParameters::SetSystem(), cDvbTransponderParameters::SetT2SystemId(), cDvbTransponderParameters::SetTransmission(), cChannel::SetTransponderData(), Setup, cChannel::Sid(), cDvbTransponderParameters::SisoMiso(), cFilter::Source(), cChannel::Source(), cChannel::Srate(), STANDARD_NORDIG, cSetup::StandardCompliance, cSource::stCable, cDvbTransponderParameters::StreamId(), cSource::stSat, cSource::stTerr, cDvbTransponderParameters::System(), SI::T2DeliverySystemDescriptorTag, cDvbTransponderParameters::T2SystemId(), SI::TerrestrialDeliverySystemDescriptorTag, cChannel::Tid(), cDvbTransponderParameters::ToString(), cSource::ToString(), cDvbTransponderParameters::Transmission(), TRANSMISSION_MODE_16K, TRANSMISSION_MODE_1K, TRANSMISSION_MODE_32K, TRANSMISSION_MODE_4K, cFilter::Transponder(), cChannel::Transponder(), SI::NIT::TransportStream::transportStreamDescriptors, SI::NIT::transportStreamLoop, cSdtFilter::Trigger(), and cSetup::UpdateChannels.

◆ SetStatus()

void cNitFilter::SetStatus ( bool  On)
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 35 of file nit.c.

References cSectionSyncer::Reset(), sectionSyncer, and cFilter::SetStatus().

Member Data Documentation

◆ sdtFilter

cSdtFilter* cNitFilter::sdtFilter
private

Definition at line 19 of file nit.h.

Referenced by cNitFilter(), and Process().

◆ sectionSyncer

cSectionSyncer cNitFilter::sectionSyncer
private

Definition at line 18 of file nit.h.

Referenced by Process(), and SetStatus().


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