vdr  1.7.27
Classes | Public Member Functions | Protected Member Functions | Private Attributes
cNitFilter Class Reference

#include <nit.h>

List of all members.

Classes

class  cNit

Public Member Functions

 cNitFilter (void)
virtual void SetStatus (bool On)
 cNitFilter (void)
virtual void SetStatus (bool On)

Protected Member Functions

virtual void Process (u_short Pid, u_char Tid, const u_char *Data, int Length)
virtual void Process (u_short Pid, u_char Tid, const u_char *Data, int Length)

Private Attributes

cSectionSyncer sectionSyncer
cNit nits [MAXNITS]
u_short networkId
int numNits

Detailed Description

Definition at line 18 of file include/vdr/nit.h.


Constructor & Destructor Documentation

Definition at line 22 of file nit.c.

References networkId, numNits, and cFilter::Set().


Member Function Documentation

void cNitFilter::Process ( u_short  Pid,
u_char  Tid,
const u_char *  Data,
int  Length 
) [protected, virtual]

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 37 of file nit.c.

References cEITScanner::AddTransponder(), BCD2INT(), SI::CableDeliverySystemDescriptorTag, cFilter::Channel(), Channels, SI::CRCSection::CheckCRCAndParse(), SI::NIT::commonDescriptors, 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(), 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::NumberedSection::getLastSectionNumber(), SI::CableDeliverySystemDescriptor::getModulation(), SI::SatelliteDeliverySystemDescriptor::getModulationSystem(), SI::SatelliteDeliverySystemDescriptor::getModulationType(), SI::NIT::getNetworkId(), SI::StructureLoop< T >::getNext(), 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::SatelliteDeliverySystemDescriptor::getSymbolRate(), SI::CableDeliverySystemDescriptor::getSymbolRate(), SI::String::getText(), SI::TerrestrialDeliverySystemDescriptor::getTransmissionMode(), SI::T2DeliverySystemDescriptor::getTransmissionMode(), SI::NIT::TransportStream::getTransportStreamId(), SI::NumberedSection::getVersionNumber(), SI::SatelliteDeliverySystemDescriptor::getWestEastFlag(), cChannel::GroupSep(), SI::TypeLoop< T >::hasNext(), cNitFilter::cNit::hasTransponder, ISTRANSPONDER, cRwLock::Lock(), MAXNETWORKNAME, MAXNITS, min(), cNitFilter::cNit::name, SI::NetworkNameDescriptor::name, cNitFilter::cNit::networkId, networkId, SI::NetworkNameDescriptorTag, cList< T >::Next(), cChannel::Nid(), nits, numNits, cChannel::Parameters(), cDvbTransponderParameters::Polarization(), SI::SatelliteDeliverySystemDescriptorTag, sectionSyncer, cDvbTransponderParameters::SetBandwidth(), cDvbTransponderParameters::SetCoderateH(), cDvbTransponderParameters::SetCoderateL(), cDvbTransponderParameters::SetGuard(), cDvbTransponderParameters::SetHierarchy(), cChannel::SetId(), cDvbTransponderParameters::SetModulation(), cDvbTransponderParameters::SetPolarization(), cDvbTransponderParameters::SetRollOff(), cDvbTransponderParameters::SetSystem(), cDvbTransponderParameters::SetTransmission(), cChannel::SetTransponderData(), Setup, cFilter::Source(), cChannel::Source(), cChannel::Srate(), cSource::stCable, cSource::stSat, cSource::stTerr, cSectionSyncer::Sync(), SI::T2DeliverySystemDescriptorTag, SI::TerrestrialDeliverySystemDescriptorTag, cChannel::Tid(), cDvbTransponderParameters::ToString(), cFilter::Transponder(), cChannel::Transponder(), SI::NIT::TransportStream::transportStreamDescriptors, SI::NIT::transportStreamLoop, cRwLock::Unlock(), and cSetup::UpdateChannels.

virtual void cNitFilter::Process ( u_short  Pid,
u_char  Tid,
const u_char *  Data,
int  Length 
) [protected, virtual]

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.

virtual 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.

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 29 of file nit.c.

References networkId, numNits, cSectionSyncer::Reset(), and sectionSyncer.


Member Data Documentation

u_short cNitFilter::networkId [private]

Definition at line 30 of file include/vdr/nit.h.

Referenced by cNitFilter(), Process(), and SetStatus().

Definition at line 29 of file include/vdr/nit.h.

Referenced by Process().

int cNitFilter::numNits [private]

Definition at line 31 of file include/vdr/nit.h.

Referenced by cNitFilter(), Process(), and SetStatus().

Definition at line 28 of file include/vdr/nit.h.

Referenced by Process(), and SetStatus().


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