MythTV  master
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
MPEGDescriptor Class Reference

#include <mpegdescriptors.h>

Inheritance diagram for MPEGDescriptor:
Inheritance graph
[legend]

Public Member Functions

 operator const unsigned char * () const
 
 MPEGDescriptor (const unsigned char *data, int len=300)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag, uint req_desc_len)
 
virtual ~MPEGDescriptor ()=default
 
bool IsValid (void) const
 
uint size (void) const
 
uint DescriptorTag (void) const
 
QString DescriptorTagString (void) const
 
uint DescriptorLength (void) const
 
virtual QString toString (void) const
 
virtual QString toStringPD (uint priv_dsid) const
 
virtual QString toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 
QString hexdump (void) const
 
QString descrDump (QString name) const
 

Static Public Member Functions

static desc_list_t Parse (const unsigned char *data, uint len)
 
static desc_list_t ParseAndExclude (const unsigned char *data, uint len, int excluded_descid)
 
static desc_list_t ParseOnlyInclude (const unsigned char *data, uint len, int excluded_descid)
 
static const unsigned char * Find (const desc_list_t &parsed, uint desc_tag)
 
static desc_list_t FindAll (const desc_list_t &parsed, uint desc_tag)
 
static const unsigned char * FindBestMatch (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 
static desc_list_t FindBestMatches (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 

Protected Attributes

const unsigned char * _data
 

Detailed Description

Definition at line 257 of file mpegdescriptors.h.

Constructor & Destructor Documentation

◆ MPEGDescriptor() [1/3]

MPEGDescriptor::MPEGDescriptor ( const unsigned char *  data,
int  len = 300 
)
inline

Definition at line 262 of file mpegdescriptors.h.

◆ MPEGDescriptor() [2/3]

MPEGDescriptor::MPEGDescriptor ( const unsigned char *  data,
int  len,
uint  tag 
)
inline

Definition at line 267 of file mpegdescriptors.h.

◆ MPEGDescriptor() [3/3]

MPEGDescriptor::MPEGDescriptor ( const unsigned char *  data,
int  len,
uint  tag,
uint  req_desc_len 
)
inline

Definition at line 275 of file mpegdescriptors.h.

◆ ~MPEGDescriptor()

virtual MPEGDescriptor::~MPEGDescriptor ( )
virtualdefault

Member Function Documentation

◆ operator const unsigned char *()

MPEGDescriptor::operator const unsigned char * ( ) const
inline

Definition at line 260 of file mpegdescriptors.h.

◆ IsValid()

bool MPEGDescriptor::IsValid ( void  ) const
inline

◆ size()

uint MPEGDescriptor::size ( void  ) const
inline

◆ DescriptorTag()

uint MPEGDescriptor::DescriptorTag ( void  ) const
inline

◆ DescriptorTagString()

QString MPEGDescriptor::DescriptorTagString ( void  ) const

◆ DescriptorLength()

uint MPEGDescriptor::DescriptorLength ( void  ) const
inline

Definition at line 292 of file mpegdescriptors.h.

Referenced by CAIdentifierDescriptor::CASystemCount(), DVBLogicalChannelDescriptor::ChannelCount(), DVBSimulcastChannelDescriptor::ChannelCount(), ContentDescriptor::Count(), LocalTimeOffsetDescriptor::Count(), NVODReferenceDescriptor::Count(), ParentalRatingDescriptor::Count(), CountryAvailabilityDescriptor::CountryCount(), TransportStreamDescriptor::Data(), DishEventPropertiesDescriptor::decompress_properties(), descrDump(), DishEventDescriptionDescriptor::DescriptionRaw(), DishEventDescriptionDescriptor::DescriptionRawLength(), FreesatLCNDescriptor::FreesatLCNDescriptor(), FreesatRegionDescriptor::FreesatRegionDescriptor(), FrequencyListDescriptor::FrequencyCount(), DishEventNameDescriptor::HasName(), DishEventPropertiesDescriptor::HasProperties(), hexdump(), LinkageDescriptor::LinkageDescriptor(), NetworkNameDescriptor::Name(), DishEventNameDescriptor::Name(), DishEventTagsDescriptor::originalairdate(), PremiereContentTransmissionDescriptor::Parse(), LinkageDescriptor::PrivateDataLength(), DishEventTagsDescriptor::programid(), DishEventTagsDescriptor::seriesid(), ServiceListDescriptor::ServiceCount(), BSkyBLCNDescriptor::ServiceCount(), NetworkNameDescriptor::ShortName(), SubtitlingDescriptor::StreamCount(), TeletextDescriptor::StreamCount(), StuffingDescriptor::toString(), FreesatLCNDescriptor::toString(), FreesatRegionDescriptor::toString(), FreesatCallsignDescriptor::toString(), BSkyBLCNDescriptor::toString(), toStringPD(), toStringXML(), and ChannelScanSM::UpdateScanTransports().

◆ toString()

QString MPEGDescriptor::toString ( void  ) const
virtual

◆ toStringPD()

QString MPEGDescriptor::toStringPD ( uint  priv_dsid) const
virtual

Definition at line 406 of file mpegdescriptors.cpp.

Referenced by toString().

◆ toStringXML()

QString MPEGDescriptor::toStringXML ( uint  level) const
virtual

◆ Parse()

desc_list_t MPEGDescriptor::Parse ( const unsigned char *  data,
uint  len 
)
static

◆ ParseAndExclude()

desc_list_t MPEGDescriptor::ParseAndExclude ( const unsigned char *  data,
uint  len,
int  excluded_descid 
)
static

Definition at line 34 of file mpegdescriptors.cpp.

Referenced by MPEGStreamData::CreatePMTSingleProgram().

◆ ParseOnlyInclude()

desc_list_t MPEGDescriptor::ParseOnlyInclude ( const unsigned char *  data,
uint  len,
int  excluded_descid 
)
static

◆ Find()

const unsigned char * MPEGDescriptor::Find ( const desc_list_t parsed,
uint  desc_tag 
)
static

◆ FindAll()

desc_list_t MPEGDescriptor::FindAll ( const desc_list_t parsed,
uint  desc_tag 
)
static

Definition at line 90 of file mpegdescriptors.cpp.

Referenced by EITHelper::AddEIT(), and parse_dvb_component_descriptors().

◆ FindBestMatch()

const unsigned char * MPEGDescriptor::FindBestMatch ( const desc_list_t parsed,
uint  desc_tag,
QMap< uint, uint > &  langPref 
)
static

Definition at line 111 of file mpegdescriptors.cpp.

Referenced by parse_dvb_event_descriptors().

◆ FindBestMatches()

desc_list_t MPEGDescriptor::FindBestMatches ( const desc_list_t parsed,
uint  desc_tag,
QMap< uint, uint > &  langPref 
)
static

Definition at line 156 of file mpegdescriptors.cpp.

Referenced by parse_dvb_event_descriptors().

◆ hexdump()

QString MPEGDescriptor::hexdump ( void  ) const

Definition at line 539 of file mpegdescriptors.cpp.

Referenced by descrDump(), and toStringPD().

◆ descrDump()

QString MPEGDescriptor::descrDump ( QString  name) const

Definition at line 390 of file mpegdescriptors.cpp.

Referenced by toStringPD().

Member Data Documentation

◆ _data

const unsigned char* MPEGDescriptor::_data
protected

Definition at line 313 of file mpegdescriptors.h.

Referenced by AdaptationFieldDataDescriptor::AdaptationFieldDataID(), DishEventMPAADescriptor::advisory_raw(), DishEventVCHIPDescriptor::advisory_raw(), TerrestrialDeliverySystemDescriptor::Alpha(), AncillaryDataDescriptor::AncillaryDataID(), SubtitlingDescriptor::AncillaryPageID(), AC3Descriptor::ASVC(), TerrestrialDeliverySystemDescriptor::Bandwidth(), BouquetNameDescriptor::BouquetName(), BouquetNameDescriptor::BouquetShortName(), AC3Descriptor::BSID(), FreesatCallsignDescriptor::Callsign(), FrequencySpecificationDescriptor::CarrierFrequency(), CAIdentifierDescriptor::CASystemId(), ExtendedVideoDescriptor::CatalogModeFlag(), DVBLogicalChannelDescriptor::ChannelNumber(), DVBSimulcastChannelDescriptor::ChannelNumber(), TerrestrialDeliverySystemDescriptor::CodeRateHP(), TerrestrialDeliverySystemDescriptor::CodeRateLP(), FrequencyListDescriptor::CodingType(), ComponentDescriptor::ComponentTag(), StreamIdentifierDescriptor::ComponentTag(), ComponentDescriptor::ComponentType(), AC3Descriptor::ComponentType(), SubtitlingDescriptor::CompositionPageID(), TerrestrialDeliverySystemDescriptor::Constellation(), LocalTimeOffsetDescriptor::CountryCode(), LocalTimeOffsetDescriptor::CountryCodeString(), ParentalRatingDescriptor::CountryCodeString(), CountryAvailabilityDescriptor::CountryNames(), LocalTimeOffsetDescriptor::CountryRegionId(), CueIdentifierDescriptor::CueStreamType(), hardwareprofile.distros.mythtv_data.main._Mythtv::data(), TransportStreamDescriptor::Data(), DataBroadcastDescriptor::DataBroadcastId(), DataBroadcastIdDescriptor::DataBroadCastId(), DataBroadcastDescriptor::DataComponentTag(), DishEventPropertiesDescriptor::decompress_properties(), DefaultAuthorityDescriptor::DefaultAuthority(), DishEventDescriptionDescriptor::DescriptionRaw(), DishEventDescriptionDescriptor::DescriptionRawLength(), ExtendedEventDescriptor::DescriptorNumber(), DVBContentIdentifierDescriptor::DVBContentIdentifierDescriptor(), ShortEventDescriptor::EventName(), ShortEventDescriptor::EventNameLength(), ShortEventDescriptor::EventShortName(), CableDeliverySystemDescriptor::FECInner(), SatelliteDeliverySystemDescriptor::FECInner(), CableDeliverySystemDescriptor::FECOuter(), FrameRateDescriptor::FrameRateCode(), TerrestrialDeliverySystemDescriptor::Frequency(), FrequencyListDescriptor::Frequency(), CableDeliverySystemDescriptor::FrequencyHz(), SatelliteDeliverySystemDescriptor::FrequencyHz(), CableDeliverySystemDescriptor::FrequencyRaw(), SatelliteDeliverySystemDescriptor::FrequencyRaw(), FrequencySpecificationDescriptor::FrequencyUnit(), TerrestrialDeliverySystemDescriptor::GuardInterval(), AC3Descriptor::HasASVC(), AC3Descriptor::HasBSID(), AC3Descriptor::HasComponentType(), AC3Descriptor::HasMainID(), hexdump(), TerrestrialDeliverySystemDescriptor::Hierarchy(), TerrestrialDeliverySystemDescriptor::HighPriority(), ModulationParamsDescriptor::InnerCodingMode(), CountryAvailabilityDescriptor::IsAvailable(), SatelliteDeliverySystemDescriptor::IsCircularPolarization(), SatelliteDeliverySystemDescriptor::IsEast(), LinkageDescriptor::IsEventSimulcast(), SatelliteDeliverySystemDescriptor::IsHorizontalLeftPolarization(), SatelliteDeliverySystemDescriptor::IsLinearPolarization(), TerrestrialDeliverySystemDescriptor::IsMPE_FECUsed(), LinkageDescriptor::IsTargetListed(), TerrestrialDeliverySystemDescriptor::IsTimeSlicingIndicatorUsed(), SatelliteDeliverySystemDescriptor::IsVerticalRightPolarization(), ExtendedEventDescriptor::Items(), FreesatCallsignDescriptor::Language(), SCTEComponentNameDescriptor::LanguageKey(), ComponentDescriptor::LanguageKey(), DataBroadcastDescriptor::LanguageKey(), ExtendedEventDescriptor::LanguageKey(), ShortEventDescriptor::LanguageKey(), SubtitlingDescriptor::LanguageKey(), TeletextDescriptor::LanguageKey(), PrivateUPCCablecomEpisodeTitleDescriptor::LanguageKey(), ExtendedEventDescriptor::LastNumber(), RevisionDetectionDescriptor::LastSectionNumber(), ExtendedEventDescriptor::LengthOfItems(), LinkageDescriptor::LinkageDescriptor(), LinkageDescriptor::LinkageType(), SCTEComponentNameDescriptor::loc(), LocalTimeOffsetDescriptor::LocalTimeOffset(), LocalTimeOffsetDescriptor::LocalTimeOffsetPolarity(), BSkyBLCNDescriptor::LogicalChannelNumber(), AC3Descriptor::MainID(), LinkageDescriptor::MobileHandOverType(), LinkageDescriptor::MobileInitialServiceID(), LinkageDescriptor::MobileNetworkID(), LinkageDescriptor::MobileOriginType(), CableDeliverySystemDescriptor::Modulation(), SatelliteDeliverySystemDescriptor::Modulation(), ModulationParamsDescriptor::ModulationFormat(), SatelliteDeliverySystemDescriptor::ModulationSystem(), FrameRateDescriptor::MultipleFrameRates(), NetworkNameDescriptor::Name(), DishEventNameDescriptor::Name(), SCTEComponentNameDescriptor::NameString(), TerrestrialDeliverySystemDescriptor::NativeInterleaver(), LocalTimeOffsetDescriptor::NextTimeOffset(), ContentDescriptor::Nibble(), ContentDescriptor::Nibble1(), ContentDescriptor::Nibble2(), SatelliteDeliverySystemDescriptor::OrbitalPosition(), DishEventTagsDescriptor::originalairdate(), LinkageDescriptor::OriginalNetworkID(), NVODReferenceDescriptor::OriginalNetworkId(), TerrestrialDeliverySystemDescriptor::OtherFrequencyInUse(), PremiereContentTransmissionDescriptor::Parse(), PartialTransportStreamDescriptor::PeakRate(), SatelliteDeliverySystemDescriptor::Polarization(), LinkageDescriptor::PrivateData(), PrivateDataSpecifierDescriptor::PrivateDataSpecifier(), DishEventTagsDescriptor::programid(), PDCDescriptor::ProgramIdLabel(), ParentalRatingDescriptor::Rating(), DishEventMPAADescriptor::rating_raw(), DishEventVCHIPDescriptor::rating_raw(), BSkyBLCNDescriptor::RegionID(), BSkyBLCNDescriptor::RegionRaw(), SatelliteDeliverySystemDescriptor::RollOff(), ScramblingDescriptor::ScramblingMode(), RevisionDetectionDescriptor::SectionNumber(), DataBroadcastDescriptor::Selector(), DataBroadcastDescriptor::SelectorLength(), hardwareprofile.distros.mythtv_data.data_mythtv._Mythtv_data::serialize(), DishEventTagsDescriptor::seriesid(), LinkageDescriptor::ServiceID(), NVODReferenceDescriptor::ServiceId(), ServiceListDescriptor::ServiceID(), DVBLogicalChannelDescriptor::ServiceID(), DVBSimulcastChannelDescriptor::ServiceID(), BSkyBLCNDescriptor::ServiceID(), ServiceDescriptor::ServiceName(), ServiceDescriptor::ServiceNameLength(), ServiceDescriptor::ServiceProviderName(), ServiceDescriptor::ServiceProviderNameLength(), ServiceDescriptor::ServiceProviderShortName(), ServiceDescriptor::ServiceShortName(), ServiceDescriptor::ServiceType(), ServiceListDescriptor::ServiceType(), BSkyBLCNDescriptor::ServiceType(), NetworkNameDescriptor::ShortName(), PartialTransportStreamDescriptor::SmoothBuf(), PartialTransportStreamDescriptor::SmoothRate(), ModulationParamsDescriptor::SplitBitstreamMode(), DishEventMPAADescriptor::stars_raw(), ComponentDescriptor::StreamContent(), SCTEComponentNameDescriptor::StringCount(), SCTEComponentNameDescriptor::StringLength(), SubtitlingDescriptor::SubtitleType(), ModulationParamsDescriptor::SymbolRate(), SatelliteDeliverySystemDescriptor::SymbolRate(), CableDeliverySystemDescriptor::SymbolRateHz(), SatelliteDeliverySystemDescriptor::SymbolRateHz(), CableDeliverySystemDescriptor::SymbolRateRaw(), RevisionDetectionDescriptor::TableVersionNumber(), LinkageDescriptor::TargetEventID(), TransportStreamIdDescriptor::TargetTransportStreamId(), TeletextDescriptor::TeletextMagazineNum(), TeletextDescriptor::TeletextPageNum(), TeletextDescriptor::TeletextType(), DataBroadcastDescriptor::Text(), ExtendedEventDescriptor::Text(), ShortEventDescriptor::Text(), PrivateUPCCablecomEpisodeTitleDescriptor::Text(), DataBroadcastDescriptor::TextLength(), ExtendedEventDescriptor::TextLength(), ShortEventDescriptor::TextLength(), PrivateUPCCablecomEpisodeTitleDescriptor::TextLength(), toStringXML(), TerrestrialDeliverySystemDescriptor::TransmissionMode(), ModulationParamsDescriptor::TransmissionSystem(), NVODReferenceDescriptor::TransportStreamId(), LinkageDescriptor::TSID(), BSkyBLCNDescriptor::Unknown1(), BSkyBLCNDescriptor::Unknown2(), ContentDescriptor::UserNibble(), ContentDescriptor::UserNibble1(), ContentDescriptor::UserNibble2(), and ExtendedVideoDescriptor::VideoIncludesSetup().


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