2003-11-22 17:56:45 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (c) 2003 by Marcel Wiesweg *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
2013-10-30 10:18:26 +01:00
|
|
|
* $Id: descriptor.h 3.1 2013/10/30 10:16:18 kls Exp $
|
2003-12-13 10:43:26 +01:00
|
|
|
* *
|
2003-11-22 17:56:45 +01:00
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef LIBSI_DESCRIPTOR_H
|
|
|
|
#define LIBSI_DESCRIPTOR_H
|
|
|
|
|
|
|
|
#include "si.h"
|
|
|
|
#include "headers.h"
|
|
|
|
|
|
|
|
namespace SI {
|
|
|
|
|
|
|
|
class ShortEventDescriptor : public Descriptor {
|
|
|
|
public:
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
String name; //name of the event
|
|
|
|
String text; //short description
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtendedEventDescriptor : public GroupDescriptor {
|
|
|
|
public:
|
|
|
|
class Item : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(item_extended_event)+sizeof(item_extended_event_mid)+item.getLength()+itemDescription.getLength(); }
|
|
|
|
String item;
|
|
|
|
String itemDescription;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
int getDescriptorNumber();
|
|
|
|
int getLastDescriptorNumber();
|
|
|
|
StructureLoop<Item> itemLoop;
|
|
|
|
String text;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_extended_event *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtendedEventDescriptors : public DescriptorGroup {
|
|
|
|
public:
|
2004-03-20 10:56:24 +01:00
|
|
|
int getMaximumTextLength(const char *separation1="\t", const char *separation2="\n");
|
2004-03-07 11:13:54 +01:00
|
|
|
//Returns a concatenated version of first the non-itemized and then the itemized text
|
2003-11-22 17:56:45 +01:00
|
|
|
//same semantics as with SI::String
|
2004-03-07 11:13:54 +01:00
|
|
|
char *getText(const char *separation1="\t", const char *separation2="\n");
|
2003-11-22 17:56:45 +01:00
|
|
|
//buffer must at least be getTextLength(), getMaximumTextLength() is a good choice
|
2004-06-06 14:53:21 +02:00
|
|
|
char *getText(char *buffer, int size, const char *separation1="\t", const char *separation2="\n");
|
2004-03-07 11:13:54 +01:00
|
|
|
|
|
|
|
//these only return the non-itemized text fields in concatenated form
|
|
|
|
int getMaximumTextPlainLength();
|
|
|
|
char *getTextPlain();
|
2004-06-06 14:53:21 +02:00
|
|
|
char *getTextPlain(char *buffer, int size);
|
2004-03-07 11:13:54 +01:00
|
|
|
|
|
|
|
//these only return the itemized text fields in concatenated form.
|
|
|
|
//Between the description and the text the separation1 character is used,
|
|
|
|
//separation2 used between two pairs. Example:
|
|
|
|
//Director\tSteven Spielberg\nActor\tMichael Mendl\n
|
2004-03-20 10:56:24 +01:00
|
|
|
int getMaximumTextItemizedLength(const char *separation1="\t", const char *separation2="\n");
|
2004-03-07 11:13:54 +01:00
|
|
|
char *getTextItemized(const char *separation1="\t", const char *separation2="\n");
|
2004-06-06 14:53:21 +02:00
|
|
|
char *getTextItemized(char *buffer, int size, const char *separation1="\t", const char *separation2="\n");
|
2004-03-07 11:13:54 +01:00
|
|
|
//returns the itemized text pair by pair. Maximum length for buffers is 256.
|
|
|
|
//Return value is false if and only if the end of the list is reached.
|
|
|
|
//The argument valid indicates whether the buffers contain valid content.
|
2004-06-06 14:53:21 +02:00
|
|
|
bool getTextItemized(Loop::Iterator &it, bool &valid, char *itemDescription, char *itemText, int sizeItemDescription, int sizeItemText);
|
2003-11-22 17:56:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class TimeShiftedEventDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getReferenceServiceId() const;
|
|
|
|
int getReferenceEventId() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_time_shifted_event *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ContentDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Nibble : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(nibble_content); }
|
|
|
|
int getContentNibbleLevel1() const;
|
|
|
|
int getContentNibbleLevel2() const;
|
|
|
|
int getUserNibble1() const;
|
|
|
|
int getUserNibble2() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const nibble_content *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Nibble> nibbleLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ParentalRatingDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Rating : public LoopElement {
|
|
|
|
public:
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
int getRating() const;
|
|
|
|
virtual int getLength() { return sizeof(parental_rating); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const parental_rating *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Rating> ratingLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2006-04-14 10:59:03 +02:00
|
|
|
class TeletextDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Teletext : public LoopElement {
|
|
|
|
public:
|
|
|
|
char languageCode[4];
|
|
|
|
int getTeletextType() const;
|
|
|
|
int getTeletextMagazineNumber() const;
|
|
|
|
int getTeletextPageNumber() const;
|
|
|
|
virtual int getLength() { return sizeof(item_teletext); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_teletext *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Teletext> teletextLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
class CaDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getCaType() const;
|
|
|
|
int getCaPid() const;
|
|
|
|
CharArray privateData;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_ca *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class StreamIdentifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getComponentTag() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_stream_identifier *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class NetworkNameDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
String name;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class CaIdentifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
TypeLoop<SixteenBit> identifiers;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class CarouselIdentifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getCarouselId() const;
|
|
|
|
int getFormatId() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_carousel_identifier *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class BouquetNameDescriptor : public NetworkNameDescriptor {
|
|
|
|
};
|
|
|
|
|
|
|
|
class ServiceListDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Service : public LoopElement {
|
|
|
|
public:
|
|
|
|
int getServiceId() const;
|
|
|
|
int getServiceType() const;
|
|
|
|
virtual int getLength() { return sizeof(descr_service_list_loop); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_service_list_loop *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Service> serviceLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SatelliteDeliverySystemDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getFrequency() const;
|
|
|
|
int getOrbitalPosition() const;
|
|
|
|
int getWestEastFlag() const;
|
|
|
|
int getPolarization() const;
|
2007-02-03 12:13:08 +01:00
|
|
|
int getModulationSystem() const;
|
|
|
|
int getModulationType() const;
|
|
|
|
int getRollOff() const;
|
2003-11-22 17:56:45 +01:00
|
|
|
int getSymbolRate() const;
|
|
|
|
int getFecInner() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_satellite_delivery_system *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CableDeliverySystemDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getFrequency() const;
|
|
|
|
int getFecOuter() const;
|
|
|
|
int getModulation() const;
|
|
|
|
int getSymbolRate() const;
|
|
|
|
int getFecInner() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_cable_delivery_system *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TerrestrialDeliverySystemDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getFrequency() const;
|
|
|
|
int getBandwidth() const;
|
2007-02-03 12:13:08 +01:00
|
|
|
int getPriority() const;
|
|
|
|
int getTimeSlicingIndicator() const;
|
|
|
|
int getMpeFecIndicator() const;
|
2003-11-22 17:56:45 +01:00
|
|
|
int getConstellation() const;
|
|
|
|
int getHierarchy() const;
|
|
|
|
int getCodeRateHP() const;
|
|
|
|
int getCodeRateLP() const;
|
|
|
|
int getGuardInterval() const;
|
|
|
|
int getTransmissionMode() const;
|
|
|
|
bool getOtherFrequency() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_terrestrial_delivery *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ServiceDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getServiceType() const;
|
|
|
|
String serviceName;
|
|
|
|
String providerName;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_service *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class NVODReferenceDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Service : public LoopElement {
|
|
|
|
public:
|
|
|
|
int getTransportStream() const;
|
|
|
|
int getOriginalNetworkId() const;
|
|
|
|
int getServiceId() const;
|
|
|
|
virtual int getLength() { return sizeof(item_nvod_reference); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_nvod_reference *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Service> serviceLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class TimeShiftedServiceDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getReferenceServiceId() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_time_shifted_service *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ComponentDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getStreamContent() const;
|
|
|
|
int getComponentType() const;
|
|
|
|
int getComponentTag() const;
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
String description;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_component *s;
|
|
|
|
};
|
|
|
|
|
2006-04-14 10:59:03 +02:00
|
|
|
class PrivateDataSpecifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getPrivateDataSpecifier() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_private_data_specifier *s;
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
class SubtitlingDescriptor : public Descriptor {
|
|
|
|
public:
|
2005-05-08 14:10:04 +02:00
|
|
|
class Subtitling : public LoopElement {
|
2003-11-22 17:56:45 +01:00
|
|
|
public:
|
2004-03-26 15:26:03 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
int getSubtitlingType() const;
|
|
|
|
int getCompositionPageId() const;
|
|
|
|
int getAncillaryPageId() const;
|
2005-05-06 09:00:36 +02:00
|
|
|
virtual int getLength() { return sizeof(item_subtitling); }
|
2003-11-22 17:56:45 +01:00
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_subtitling *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Subtitling> subtitlingLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ServiceMoveDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getNewOriginalNetworkId() const;
|
|
|
|
int getNewTransportStreamId() const;
|
|
|
|
int getNewServiceId() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_service_move *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class FrequencyListDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getCodingType() const;
|
|
|
|
TypeLoop<ThirtyTwoBit> frequencies;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_frequency_list *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ServiceIdentifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
String textualServiceIdentifier;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2011-06-15 21:29:03 +02:00
|
|
|
class ContentIdentifierDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Identifier : public LoopElement {
|
|
|
|
public:
|
|
|
|
String identifier;
|
|
|
|
int getCridType() const;
|
|
|
|
int getCridLocation() const;
|
|
|
|
virtual int getLength() { return sizeof(content_identifier_entry)+identifier.getLength(); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const content_identifier_entry *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Identifier> identifierLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class DefaultAuthorityDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
String DefaultAuthority; //ID
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
//abstract base class
|
|
|
|
class MultilingualNameDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Name : public LoopElement {
|
|
|
|
public:
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
String name;
|
|
|
|
virtual int getLength() { return sizeof(entry_multilingual_name)+name.getLength(); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
StructureLoop<Name> nameLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MultilingualNetworkNameDescriptor : public MultilingualNameDescriptor {
|
|
|
|
//inherits nameLoop from MultilingualNameDescriptor
|
|
|
|
};
|
|
|
|
|
|
|
|
class MultilingualBouquetNameDescriptor : public MultilingualNameDescriptor {
|
|
|
|
//inherits nameLoop from MultilingualNameDescriptor
|
|
|
|
};
|
|
|
|
|
|
|
|
class MultilingualComponentDescriptor : public MultilingualNameDescriptor {
|
|
|
|
public:
|
|
|
|
int getComponentTag() const;
|
|
|
|
//inherits nameLoop from MultilingualNameDescriptor
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_multilingual_component *s;
|
|
|
|
};
|
|
|
|
|
|
|
|
class MultilingualServiceNameDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Name : public MultilingualNameDescriptor::Name {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(entry_multilingual_name)+providerName.getLength()+sizeof(entry_multilingual_service_name_mid)+name.getLength(); }
|
|
|
|
String providerName;
|
|
|
|
//inherits name, meaning: service name;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
StructureLoop<Name> nameLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2006-04-14 10:59:03 +02:00
|
|
|
class LocalTimeOffsetDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class LocalTimeOffset : public LoopElement {
|
|
|
|
public:
|
|
|
|
char countryCode[4];
|
|
|
|
virtual int getLength() { return sizeof(local_time_offset_entry); }
|
|
|
|
int getCountryId() const;
|
|
|
|
int getLocalTimeOffsetPolarity() const;
|
|
|
|
int getLocalTimeOffset() const;
|
|
|
|
time_t getTimeOfChange() const;
|
|
|
|
int getNextTimeOffset() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const local_time_offset_entry *s;
|
|
|
|
};
|
|
|
|
StructureLoop<LocalTimeOffset> localTimeOffsetLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2004-01-12 22:19:34 +01:00
|
|
|
class LinkageDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getTransportStreamId() const;
|
|
|
|
int getOriginalNetworkId() const;
|
|
|
|
int getServiceId() const;
|
|
|
|
LinkageType getLinkageType() const;
|
2006-04-14 10:59:03 +02:00
|
|
|
int getHandOverType() const;
|
|
|
|
int getOriginType() const;
|
|
|
|
int getId() const;
|
2004-01-12 22:19:34 +01:00
|
|
|
CharArray privateData;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_linkage *s;
|
2006-04-14 10:59:03 +02:00
|
|
|
const descr_linkage_8 *s1;
|
2004-01-12 22:19:34 +01:00
|
|
|
};
|
|
|
|
|
2004-01-24 14:49:51 +01:00
|
|
|
class ISO639LanguageDescriptor : public Descriptor {
|
|
|
|
public:
|
2005-09-03 15:19:00 +02:00
|
|
|
char languageCode[4]; //for backwards compatibility
|
|
|
|
class Language : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(descr_iso_639_language_loop); }
|
|
|
|
char languageCode[4];
|
|
|
|
AudioType getAudioType();
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_iso_639_language_loop *s;
|
|
|
|
};
|
|
|
|
StructureLoop<Language> languageLoop;
|
2004-01-24 14:49:51 +01:00
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_iso_639_language *s;
|
|
|
|
};
|
|
|
|
|
2004-02-22 13:08:04 +01:00
|
|
|
class PDCDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getDay() const;
|
|
|
|
int getMonth() const;
|
|
|
|
int getHour() const;
|
|
|
|
int getMinute() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_pdc *s;
|
|
|
|
};
|
|
|
|
|
2006-04-14 10:59:03 +02:00
|
|
|
class AncillaryDataDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getAncillaryDataIdentifier() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_ancillary_data *s;
|
|
|
|
};
|
|
|
|
|
2007-02-03 12:13:08 +01:00
|
|
|
class S2SatelliteDeliverySystemDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getScramblingSequenceSelector() const;
|
|
|
|
int getMultipleInputStreamFlag() const;
|
|
|
|
int getBackwardsCompatibilityIndicator() const;
|
|
|
|
int getScramblingSequenceIndex() const;
|
|
|
|
int getInputStreamIdentifier() const { return input_stream_identifier; }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_s2_satellite_delivery_system *s;
|
|
|
|
const descr_scrambling_sequence_selector *sss;
|
|
|
|
int input_stream_identifier;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ExtensionDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getExtensionDescriptorTag() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_extension *s;
|
|
|
|
};
|
|
|
|
|
2012-01-11 11:38:00 +01:00
|
|
|
class T2DeliverySystemDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getExtendedDataFlag() const;
|
|
|
|
int getExtensionDescriptorTag() const;
|
|
|
|
int getPlpId() const;
|
|
|
|
int getT2SystemId() const;
|
|
|
|
int getSisoMiso() const;
|
|
|
|
int getBandwidth() const;
|
|
|
|
int getGuardInterval() const;
|
|
|
|
int getTransmissionMode() const;
|
|
|
|
int getOtherFrequencyFlag() const;
|
|
|
|
int getTfsFlag() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_t2_delivery_system *s;
|
|
|
|
int extended_data_flag;
|
|
|
|
};
|
|
|
|
|
2013-10-30 10:18:26 +01:00
|
|
|
class LogicalChannelDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class LogicalChannel : public LoopElement {
|
|
|
|
public:
|
|
|
|
int getServiceId() const;
|
|
|
|
int getVisibleServiceFlag() const;
|
|
|
|
int getLogicalChannelNumber() const;
|
|
|
|
virtual int getLength() { return sizeof(item_logical_channel); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_logical_channel *s;
|
|
|
|
};
|
|
|
|
StructureLoop<LogicalChannel> logicalChannelLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class HdSimulcastLogicalChannelDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class HdSimulcastLogicalChannel : public LoopElement {
|
|
|
|
public:
|
|
|
|
int getServiceId() const;
|
|
|
|
int getVisibleServiceFlag() const;
|
|
|
|
int getLogicalChannelNumber() const;
|
|
|
|
virtual int getLength() { return sizeof(item_hd_simulcast_logical_channel); }
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_hd_simulcast_logical_channel *s;
|
|
|
|
};
|
|
|
|
StructureLoop<HdSimulcastLogicalChannel> hdSimulcastLogicalChannelLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2006-04-14 10:59:03 +02:00
|
|
|
// Private DVB Descriptor Premiere.de
|
|
|
|
// 0xF2 Content Transmission Descriptor
|
|
|
|
// http://dvbsnoop.sourceforge.net/examples/example-private-section.html
|
|
|
|
|
|
|
|
class PremiereContentTransmissionDescriptor : public Descriptor {
|
|
|
|
public:
|
2006-05-28 14:42:21 +02:00
|
|
|
class StartDayEntry : public LoopElement {
|
2006-04-14 10:59:03 +02:00
|
|
|
public:
|
2006-05-28 14:42:21 +02:00
|
|
|
class StartTimeEntry : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(item_premiere_content_transmission_time); }
|
|
|
|
time_t getStartTime(int mjd) const; //UTC
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const item_premiere_content_transmission_time *s;
|
|
|
|
};
|
|
|
|
StructureLoop<StartTimeEntry> startTimeLoop;
|
|
|
|
virtual int getLength();
|
|
|
|
int getMJD() const;
|
|
|
|
int getLoopLength() const;
|
2006-04-14 10:59:03 +02:00
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
2006-05-28 14:42:21 +02:00
|
|
|
const item_premiere_content_transmission_day *s;
|
2006-04-14 10:59:03 +02:00
|
|
|
};
|
2006-05-28 14:42:21 +02:00
|
|
|
StructureLoop<StartDayEntry> startDayLoop;
|
2006-04-14 10:59:03 +02:00
|
|
|
int getOriginalNetworkId() const;
|
|
|
|
int getTransportStreamId() const;
|
|
|
|
int getServiceId() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_premiere_content_transmission *s;
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
//a descriptor currently unimplemented in this library
|
|
|
|
class UnimplementedDescriptor : public Descriptor {
|
|
|
|
protected:
|
|
|
|
virtual void Parse() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class ApplicationSignallingDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class ApplicationEntryDescriptor : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(application_signalling_entry); }
|
|
|
|
int getApplicationType() const;
|
|
|
|
int getAITVersionNumber() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const application_signalling_entry *s;
|
|
|
|
};
|
|
|
|
StructureLoop<ApplicationEntryDescriptor> entryLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_ApplicationDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class Profile : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(application_profile_entry); }
|
|
|
|
int getApplicationProfile() const;
|
|
|
|
int getVersionMajor() const;
|
|
|
|
int getVersionMinor() const;
|
|
|
|
int getVersionMicro() const;
|
|
|
|
private:
|
|
|
|
const application_profile_entry *s;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
StructureLoop<Profile> profileLoop;
|
|
|
|
bool isServiceBound() const;
|
|
|
|
int getVisibility() const;
|
|
|
|
int getApplicationPriority() const;
|
|
|
|
TypeLoop<EightBit> transportProtocolLabels;
|
|
|
|
private:
|
|
|
|
const descr_application_end *s;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_ApplicationNameDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class NameEntry : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(descr_application_name_entry)+name.getLength(); }
|
2004-01-24 14:59:04 +01:00
|
|
|
char languageCode[4];
|
2003-11-22 17:56:45 +01:00
|
|
|
String name;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
StructureLoop<NameEntry> nameLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_TransportProtocolDescriptor : public Descriptor {
|
|
|
|
public:
|
2011-12-10 15:51:35 +01:00
|
|
|
class UrlExtensionEntry : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(descr_url_extension_entry)+UrlExtension.getLength(); }
|
|
|
|
String UrlExtension;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
enum Protocol { ObjectCarousel = 0x01, IPviaDVB = 0x02, HTTPoverInteractionChannel = 0x03 };
|
|
|
|
int getProtocolId() const;
|
|
|
|
int getProtocolLabel() const;
|
|
|
|
bool isRemote() const;
|
|
|
|
int getComponentTag() const;
|
2011-12-10 15:51:35 +01:00
|
|
|
char *getUrlBase(char *buffer, int size);
|
|
|
|
StructureLoop<UrlExtensionEntry> UrlExtensionLoop;
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_transport_protocol *s;
|
|
|
|
bool remote;
|
|
|
|
int componentTag;
|
2011-12-10 15:51:35 +01:00
|
|
|
String UrlBase;
|
2003-11-22 17:56:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_DVBJApplicationDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
class ApplicationEntry : public LoopElement {
|
|
|
|
public:
|
|
|
|
virtual int getLength() { return sizeof(descr_dvbj_application_entry)+parameter.getLength(); }
|
|
|
|
String parameter;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
StructureLoop<ApplicationEntry> applicationLoop;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_DVBJApplicationLocationDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
String baseDirectory;
|
|
|
|
String classPath;
|
|
|
|
String initialClass;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
};
|
|
|
|
|
|
|
|
class MHP_ApplicationIconsDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
String iconLocator;
|
|
|
|
int getIconFlags() const;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_application_icons_descriptor_end *s;
|
|
|
|
};
|
|
|
|
|
2011-12-10 15:51:35 +01:00
|
|
|
class MHP_SimpleApplicationLocationDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
char *getLocation(char *buffer, int size);
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
String location;
|
|
|
|
};
|
|
|
|
|
2010-11-01 15:47:59 +01:00
|
|
|
class RegistrationDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getFormatIdentifier() const;
|
|
|
|
CharArray privateData;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_registration *s;
|
|
|
|
};
|
|
|
|
|
2013-10-30 10:18:26 +01:00
|
|
|
class AVCDescriptor : public Descriptor {
|
|
|
|
public:
|
|
|
|
int getProfileIdc() const;
|
|
|
|
int getConstraintSet0Flag() const;
|
|
|
|
int getConstraintSet1Flag() const;
|
|
|
|
int getConstraintSet2Flag() const;
|
|
|
|
int getConstraintSet3Flag() const;
|
|
|
|
int getConstraintSet4Flag() const;
|
|
|
|
int getConstraintSet5Flag() const;
|
|
|
|
int getAVCCompatibleFlags() const;
|
|
|
|
int getLevelIdc() const;
|
|
|
|
int getAVCStillPresent() const;
|
|
|
|
int getAVC24HourPictureFlag() const;
|
|
|
|
int getFramePackingSEINotPresentFlag() const;
|
|
|
|
CharArray privateData;
|
|
|
|
protected:
|
|
|
|
virtual void Parse();
|
|
|
|
private:
|
|
|
|
const descr_avc *s;
|
|
|
|
};
|
|
|
|
|
2003-11-22 17:56:45 +01:00
|
|
|
} //end of namespace
|
|
|
|
|
|
|
|
#endif //LIBSI_TABLE_H
|