MythTV  master
Public Member Functions | Static Public Member Functions | Protected 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 toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 

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 descriptorid)
 
static desc_list_t ParseOnlyInclude (const unsigned char *data, uint len, int descriptorid)
 
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 Member Functions

QString hexdump (void) const
 

Protected Attributes

const unsigned char * _data
 

Detailed Description

Definition at line 218 of file mpegdescriptors.h.

Constructor & Destructor Documentation

◆ MPEGDescriptor() [1/3]

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

Definition at line 223 of file mpegdescriptors.h.

◆ MPEGDescriptor() [2/3]

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

Definition at line 228 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 236 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 221 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

Definition at line 329 of file mpegdescriptors.cpp.

Referenced by toString(), and toStringXML().

◆ DescriptorLength()

uint MPEGDescriptor::DescriptorLength ( void  ) const
inline

◆ toString()

QString MPEGDescriptor::toString ( void  ) const
virtual

◆ 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  descriptorid 
)
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  descriptorid 
)
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 151 of file mpegdescriptors.cpp.

Referenced by parse_dvb_event_descriptors().

◆ hexdump()

QString MPEGDescriptor::hexdump ( void  ) const
protected

Definition at line 487 of file mpegdescriptors.cpp.

Referenced by toString().

Member Data Documentation

◆ _data

const unsigned char* MPEGDescriptor::_data
protected

Definition at line 273 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(), FrequencySpecificationDescriptor::CarrierFrequency(), CAIdentifierDescriptor::CASystemId(), ExtendedVideoDescriptor::CatalogModeFlag(), DVBLogicalChannelDescriptor::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(), 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(), 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(), 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(), ServiceDescriptor::ServiceName(), ServiceDescriptor::ServiceNameLength(), ServiceDescriptor::ServiceProviderName(), ServiceDescriptor::ServiceProviderNameLength(), ServiceDescriptor::ServiceProviderShortName(), ServiceDescriptor::ServiceShortName(), ServiceDescriptor::ServiceType(), ServiceListDescriptor::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(), ContentDescriptor::UserNibble(), ContentDescriptor::UserNibble1(), ContentDescriptor::UserNibble2(), and ExtendedVideoDescriptor::VideoIncludesSetup().


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