vdr  2.4.1
si.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (c) 2003 by Marcel Wiesweg *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * $Id: si.h 4.0 2015/02/10 13:54:28 kls Exp $
10  * *
11  ***************************************************************************/
12 
13 #ifndef LIBSI_SI_H
14 #define LIBSI_SI_H
15 
16 #include <stdint.h>
17 
18 #include "util.h"
19 #include "headers.h"
20 
21 namespace SI {
22 
23 enum TableId { TableIdPAT = 0x00, //program association section
24  TableIdCAT = 0x01, //conditional access section
25  TableIdPMT = 0x02, //program map section
26  TableIdTSDT = 0x03,//transport stream description section
27  TableIdNIT = 0x40, //network information, actual network section
28  TableIdNIT_other = 0x41, //network information section, other network
29  TableIdSDT = 0x42, //service description section
30  TableIdSDT_other = 0x46,
31  TableIdBAT = 0x4A, //bouquet association section
32  TableIdEIT_presentFollowing = 0x4E, //event information section
34  //range from 0x50 to 0x5F
37  //range from 0x60 to 0x6F
40  TableIdTDT = 0x70, //time date section
41  TableIdRST = 0x71, //running status section
42  TableIdST = 0x72, //stuffing section
43  TableIdTOT = 0x73, //time offset section
44  TableIdDIT = 0x7E, //discontinuity information section
45  TableIdSIT = 0x7F, //service information section
46  TableIdAIT = 0x74, //application information section
47  TableIdPremiereCIT = 0xA0 //premiere content information section
48  };
49 
50 
52  // defined by ISO/IEC 13818-1
70  // defined by ISO-13818-6 (DSM-CC)
72  // 0x14 - 0x3F Reserved
73  // defined by ISO/IEC 13818-1 Amendment
77  // defined by ETSI (EN 300 468)
80  StuffingDescriptorTag = 0x42,
83  VBIDataDescriptorTag = 0x45,
129  // defined by ETSI (EN 300 468) v 1.7.1
139  AACDescriptorTag = 0x7C,
141  // defined by EICTA/EACEM/DIGITALEUROPE
147  // Extension descriptors
160  // defined by ETSI (EN 300 468) v 1.12.1
163  // 0x0E - 0x0F Reserved
166 
167  // Defined by ETSI TS 102 812 (MHP)
168  // They once again start with 0x00 (see page 234, MHP specification)
174  // 0x05 - 0x0A is unimplemented this library
187  // Premiere private Descriptor Tags
189 
190  //a descriptor currently unimplemented in this library
191  //the actual value 0xFF is "forbidden" according to the spec.
193 };
194 
196 
202  };
203 
215  };
216 
221  };
222 
223 /* Some principles:
224  - Objects that return references to other objects contained in their data must make sure
225  that the returned objects have been parsed.
226  (the Loop subclasses take care of that.)
227  Note that this does not apply to Loops and Strings (their are never returned by reference, BTW).
228 */
229 
230 class Object : public Parsable {
231 public:
232  Object();
233  Object(CharArray &d);
234  //can only be called once since data is immutable
235  void setData(const unsigned char*data, int size, bool doCopy=true);
236  CharArray getData() { return data; }
237  //returns the valid flag which indicates if data is all right or errors have been encountered
238  bool isValid() { return data.isValid(); }
239  virtual int getLength() = 0;
240 protected:
241  CharArray data;
242  //is protected - not used for sections
243  template <class T> friend class StructureLoop;
244  void setData(CharArray &d);
245  //returns whether the given offset fits within the limits of the actual data
246  //The valid flag will be set accordingly
247  bool checkSize(int offset);
248 };
249 
250 class Section : public Object {
251 public:
252  //convenience: sets data and parses if doParse
253  Section(const unsigned char *data, bool doCopy=true);
254  Section() {}
255  TableId getTableId() const;
256  virtual int getLength();
257 
258  static int getLength(const unsigned char *d);
259  static TableId getTableId(const unsigned char *d);
260 };
261 
262 class CRCSection : public Section {
263 public:
264  //convenience: sets data and parses if doParse
265  CRCSection(const unsigned char *data, bool doCopy=true) : Section(data, doCopy) {}
266  CRCSection() {}
267  bool isCRCValid();
268  //convenience: isValid+CheckParse
269  bool CheckCRCAndParse();
270 };
271 
272 /* A section which has the ExtendedSectionHeader
273  (section_syntax_indicator==1) */
274 class NumberedSection : public CRCSection {
275 public:
276  NumberedSection(const unsigned char *data, bool doCopy=true) : CRCSection(data, doCopy) {}
277  NumberedSection() {}
278  int getTableIdExtension() const;
279  bool getCurrentNextIndicator() const;
280  int getVersionNumber() const;
281  int getSectionNumber() const;
282  int getLastSectionNumber() const;
283  bool moreThanOneSection() const { return getLastSectionNumber()>0; }
284 
285  static int getTableIdExtension(const unsigned char *d);
286 };
287 
288 class VariableLengthPart : public Object {
289 public:
290  //never forget to call this
291  void setData(CharArray d, int l) { Object::setData(d); checkSize(l); length=l; }
292  //convenience method
293  void setDataAndOffset(CharArray d, int l, int &offset) { Object::setData(d); checkSize(l); length=l; offset+=l; }
294  virtual int getLength() { return length; }
295 private:
296  int length;
297 };
298 
299 class LoopElement : public Object {
300 };
301 
302 class Descriptor : public LoopElement {
303 public:
304  virtual int getLength();
306 
307  static int getLength(const unsigned char *d);
308  static DescriptorTag getDescriptorTag(const unsigned char *d);
309 protected:
310  friend class DescriptorLoop;
311  //returns a subclass of descriptor according to the data given.
312  //The object is allocated with new and must be delete'd.
313  //setData() will have been called, CheckParse() not.
314  //if returnUnimplemetedDescriptor==true:
315  // Never returns null - maybe the UnimplementedDescriptor.
316  //if returnUnimplemetedDescriptor==false:
317  // Never returns the UnimplementedDescriptor - maybe null
318  static Descriptor *getDescriptor(CharArray d, DescriptorTagDomain domain, bool returnUnimplemetedDescriptor);
319 };
320 
321 class Loop : public VariableLengthPart {
322 public:
323  class Iterator {
324  public:
325  Iterator() { i=0; }
326  void reset() { i=0; }
327  private:
328  template <class T> friend class StructureLoop;
329  friend class DescriptorLoop;
330  template <class T> friend class TypeLoop;
332  int i;
333  };
334 protected:
335  virtual void Parse() {}
336 };
337 
338 //contains LoopElements of one type only
339 template <class T> class StructureLoop : public Loop {
340 public:
341  //currently you must use a while-loop testing for hasNext()
342  //i must be 0 to get the first descriptor (with the first call)
343  bool getNext(T &obj, Iterator &it)
344  {
345  if (!isValid() || it.i >= getLength())
346  return false;
347  CharArray d=data;
348  d.addOffset(it.i);
349  T ret;
350  ret.setData(d);
351  ret.CheckParse();
352  if (!checkSize(ret.getLength()))
353  return false;
354  it.i+=ret.getLength();
355  obj=ret;
356  return true;
357  }
358  T* getNextAsPointer(Iterator &it)
359  {
360  if (!isValid() || it.i >= getLength())
361  return 0;
362  CharArray d=data;
363  d.addOffset(it.i);
364  T *ret=new T();
365  ret->setData(d);
366  ret->CheckParse();
367  if (!checkSize(ret->getLength())) {
368  delete ret;
369  return 0;
370  }
371  it.i+=ret->getLength();
372  return ret;
373  }
374  //bool hasNext(Iterator &it) { return getLength() > it.i; }
375 };
376 
377 //contains descriptors of different types
378 class DescriptorLoop : public Loop {
379 public:
380  DescriptorLoop() { domain=SI; }
381  //i must be 0 to get the first descriptor (with the first call)
382  //All returned descriptors must be delete'd.
383  //returns null if no more descriptors available
384  Descriptor *getNext(Iterator &it);
385  //return the next descriptor with given tag, or 0 if not available.
386  //if returnUnimplemetedDescriptor==true:
387  // an UnimplementedDescriptor may be returned if the next matching descriptor is unimplemented,
388  // 0 will be returned if and only if no matching descriptor is found.
389  //if returnUnimplemetedDescriptor==false:
390  // if 0 is returned, either no descriptor with the given tag was found,
391  // or descriptors were found, but the descriptor type is not implemented
392  //In either case, a return value of 0 indicates that no further calls to this method
393  //with the iterator shall be made.
394  Descriptor *getNext(Iterator &it, DescriptorTag tag, bool returnUnimplemetedDescriptor=false);
395  //return the next descriptor with one of the given tags, or 0 if not available.
396  //if returnUnimplemetedDescriptor==true:
397  // returns 0 if and only if no descriptor with one of the given tags was found.
398  // The UnimplementedDescriptor may be returned.
399  //if returnUnimplemetedDescriptor==false:
400  // if 0 is returned, either no descriptor with one of the given tags was found,
401  // or descriptors were found, but none of them are implemented.
402  // The UnimplementedDescriptor will never be returned.
403  //In either case, a return value of 0 indicates that no further calls to this method
404  //with the iterator shall be made.
405  Descriptor *getNext(Iterator &it, DescriptorTag *tags, int arrayLength, bool returnUnimplemetedDescriptor=false);
406  //returns the number of descriptors in this loop
408  //writes the tags of the descriptors in this loop in the array,
409  // which must at least have the size getNumberOfDescriptors().
410  //The number of descriptors, i.e. getNumberOfDescriptors(), is returned.
411  // You can specify the array type (Descriptor tags are 8 Bit,
412  // you might e.g. choose a char, short, int or DescriptorTag array)
413  template <typename T> int getDescriptorTags(T *tags)
414  {
415  const unsigned char *p=data.getData();
416  const unsigned char *end=p+getLength();
417  int count=0;
418  while (p < end) {
419  tags[count++]=(T)Descriptor::getDescriptorTag(p);
420  p+=Descriptor::getLength(p);
421  }
422  return count;
423  }
424 protected:
425  Descriptor *createDescriptor(int &i, bool returnUnimplemetedDescriptor);
427 };
428 
429 typedef uint8_t EightBit;
430 typedef uint16_t SixteenBit;
431 typedef uint32_t ThirtyTwoBit;
432 typedef uint64_t SixtyFourBit;
433 
434 template <typename T> class TypeLoop : public Loop {
435 public:
436  int getCount() { return getLength()/sizeof(T); }
437  T operator[](const int index) const
438  {
439  switch (sizeof(T)) {
440  case 1:
441  return data[index];
442  case 2:
443  return data.TwoBytes(index);
444  case 4:
445  return data.FourBytes(index);
446  case 8:
447  return (SixtyFourBit(data.FourBytes(index)) << 32) | data.FourBytes(index+4);
448  default:
449  return 0; // just to avoid a compiler warning
450  }
451  return 0; // just to avoid a compiler warning
452  }
453  T getNext(Iterator &it) const
454  {
455  T ret=operator[](it.i);
456  it.i+=sizeof(T);
457  return ret;
458  }
459  bool hasNext(Iterator &it) { return isValid() && (getLength() > it.i); }
460 };
461 
462 class MHP_DescriptorLoop : public DescriptorLoop {
463 public:
465 };
466 
467 //Premiere Content Information Table
468 class PCIT_DescriptorLoop : public DescriptorLoop {
469 public:
471 };
472 
473 //The content of the ExtendedEventDescriptor may be split over several
474 //descriptors if the text is longer than 256 bytes.
475 //The following classes provide base functionality to handle this case.
476 class GroupDescriptor : public Descriptor {
477 public:
478  virtual int getDescriptorNumber() = 0;
479  virtual int getLastDescriptorNumber() = 0;
480 };
481 
482 class DescriptorGroup {
483 public:
487  void Delete();
488  int getLength() { return length; }
490  bool isComplete(); //if all descriptors have been added
491 protected:
492  int length;
495 };
496 
497 class String : public VariableLengthPart {
498 public:
499  //A note to the length: getLength() returns the length of the raw data.
500  //The text may be shorter. Its length can be obtained with one of the
501  //getText functions and strlen.
502 
503  //returns text. Data is allocated with new and must be delete'd by the user.
504  char *getText();
505  //copies text into given buffer.
506  //a buffer of size getLength()+1 is guaranteed to be sufficiently large.
507  //In most descriptors the string length is an 8-bit field,
508  //so the maximum there is 256.
509  //returns the given buffer for convenience.
510  //The emphasis marks 0x86 and 0x87 are still available.
511  char *getText(char *buffer, int size);
512  //The same semantics as for getText(char*) apply.
513  //The short version of the text according to ETSI TR 101 211 (chapter 4.6)
514  //will be written into the shortVersion buffer (which should, therefore, have the same
515  //length as buffer). If no shortVersion is available, shortVersion will contain
516  //an empty string.
517  //The emphasis marks 0x86 and 0x87 are still available in buffer, but not in shortVersion.
518  char *getText(char *buffer, char *shortVersion, int sizeBuffer, int sizeShortVersion);
519 protected:
520  virtual void Parse() {}
521  void decodeText(char *buffer, int size);
522  void decodeText(char *buffer, char *shortVersion, int sizeBuffer, int sizeShortVersion);
523 };
524 
525 // Set the character table to use for strings that do not begin with a character
526 // table indicator. Call with NULL to turn this off.
527 void SetOverrideCharacterTable(const char *CharacterTable);
528 // Call this function to set the system character table. CharacterTable is a string
529 // like "iso8859-15" or "utf-8" (case insensitive).
530 // Returns true if the character table was recognized.
531 bool SetSystemCharacterTable(const char *CharacterTable);
532 // Determines the character table used in the given buffer and returns
533 // a string indicating that table. If no table can be determined, the
534 // default ISO6937 is returned. If a table can be determined, the buffer
535 // and length are adjusted accordingly.
536 const char *getCharacterTable(const unsigned char *&buffer, int &length, bool *isSingleByte = NULL);
537 bool convertCharacterTable(const char *from, size_t fromLength, char *to, size_t toLength, const char *fromCode);
539 
540 } //end of namespace
541 
542 #endif //LIBSI_SI_H
SI::SixtyFourBit
uint64_t SixtyFourBit
Definition: si.h:442
SI::VBITeletextDescriptorTag
@ VBITeletextDescriptorTag
Definition: si.h:94
SI::MHP_ApplicationDescriptorTag
@ MHP_ApplicationDescriptorTag
Definition: si.h:179
SI::MHP_ExternalApplicationAuthorisationDescriptorTag
@ MHP_ExternalApplicationAuthorisationDescriptorTag
Definition: si.h:185
SI::MHP_DVBJApplicationDescriptorTag
@ MHP_DVBJApplicationDescriptorTag
Definition: si.h:182
SI::MHP
@ MHP
Definition: si.h:205
SI::RegistrationDescriptorTag
@ RegistrationDescriptorTag
Definition: si.h:66
SI::HierarchyDescriptorTag
@ HierarchyDescriptorTag
Definition: si.h:65
SI::Section::Section
Section()
Definition: si.h:264
SI::DescriptorLoop::getNumberOfDescriptors
int getNumberOfDescriptors()
Definition: si.c:180
SI::AudioTypeHearingImpaired
@ AudioTypeHearingImpaired
Definition: si.h:229
SI::DescriptorLoop::DescriptorLoop
DescriptorLoop()
Definition: si.h:390
SI::STDDescriptorTag
@ STDDescriptorTag
Definition: si.h:78
SI::Loop::Iterator
Definition: si.h:333
SI::MHP_ApplicationIconsDescriptorTag
@ MHP_ApplicationIconsDescriptorTag
Definition: si.h:191
SI::GroupDescriptor::getDescriptorNumber
virtual int getDescriptorNumber()=0
SI::MultilingualBouquetNameDescriptorTag
@ MultilingualBouquetNameDescriptorTag
Definition: si.h:116
SI::DescriptorGroup::DescriptorGroup
DescriptorGroup(bool deleteOnDesctruction=true)
Definition: si.c:191
SI::VideoWindowDescriptorTag
@ VideoWindowDescriptorTag
Definition: si.h:69
SI::CharArray
Definition: util.h:32
SI::SupplementaryAudioDescriptorTag
@ SupplementaryAudioDescriptorTag
Definition: si.h:164
SI::DescriptorGroup::getLength
int getLength()
Definition: si.h:498
SI::ApplicationSignallingDescriptorTag
@ ApplicationSignallingDescriptorTag
Definition: si.h:135
SI::PartialTransportStreamDescriptorTag
@ PartialTransportStreamDescriptorTag
Definition: si.h:123
SI::ExtensionDescriptorTag
@ ExtensionDescriptorTag
Definition: si.h:150
SI::NetworkNameDescriptorTag
@ NetworkNameDescriptorTag
Definition: si.h:88
SI::DefaultAuthorityDescriptorTag
@ DefaultAuthorityDescriptorTag
Definition: si.h:140
SI::TerrestrialDeliverySystemDescriptorTag
@ TerrestrialDeliverySystemDescriptorTag
Definition: si.h:114
SI::TargetRegionNameDescriptorTag
@ TargetRegionNameDescriptorTag
Definition: si.h:168
SI::DataStreamAlignmentDescriptorTag
@ DataStreamAlignmentDescriptorTag
Definition: si.h:67
SI::TableIdCAT
@ TableIdCAT
Definition: si.h:44
SI::MultilingualServiceNameDescriptorTag
@ MultilingualServiceNameDescriptorTag
Definition: si.h:117
SI::CountryAvailabilityDescriptorTag
@ CountryAvailabilityDescriptorTag
Definition: si.h:97
SI::TableIdDIT
@ TableIdDIT
Definition: si.h:64
SI::LogicalChannelDescriptorTag
@ LogicalChannelDescriptorTag
Definition: si.h:152
SI::systemCharacterTableIsSingleByte
bool systemCharacterTableIsSingleByte(void)
Definition: si.c:327
SI::SI
@ SI
Definition: si.h:205
SI::TargetRegionDescriptorTag
@ TargetRegionDescriptorTag
Definition: si.h:167
SI::DescriptorGroup::array
GroupDescriptor ** array
Definition: si.h:503
SI::MultilingualComponentDescriptorTag
@ MultilingualComponentDescriptorTag
Definition: si.h:118
SI::Descriptor::getLength
virtual int getLength()
Definition: si.c:106
SI::DataBroadcastIdDescriptorTag
@ DataBroadcastIdDescriptorTag
Definition: si.h:126
SI::VariableLengthPart
Definition: si.h:298
SI::LocalTimeOffsetDescriptorTag
@ LocalTimeOffsetDescriptorTag
Definition: si.h:112
SI::MHP_PrefetchDescriptorTag
@ MHP_PrefetchDescriptorTag
Definition: si.h:192
SI::CRCSection::CheckCRCAndParse
bool CheckCRCAndParse()
Definition: si.c:75
SI::S2SatelliteDeliverySystemDescriptorTag
@ S2SatelliteDeliverySystemDescriptorTag
Definition: si.h:146
SI::MHP_SimpleApplicationBoundaryDescriptorTag
@ MHP_SimpleApplicationBoundaryDescriptorTag
Definition: si.h:196
SI::TargetBackgroundGridDescriptorTag
@ TargetBackgroundGridDescriptorTag
Definition: si.h:68
SI::StructureLoop::getNextAsPointer
T * getNextAsPointer(Iterator &it)
Definition: si.h:368
SI::PrivateDataSpecifierDescriptorTag
@ PrivateDataSpecifierDescriptorTag
Definition: si.h:119
SI::ServiceDescriptorTag
@ ServiceDescriptorTag
Definition: si.h:96
SI::TypeLoop::hasNext
bool hasNext(Iterator &it)
Definition: si.h:469
SI::String
Definition: si.h:507
headers.h
SI::ComponentDescriptorTag
@ ComponentDescriptorTag
Definition: si.h:104
SI::StreamIdentifierDescriptorTag
@ StreamIdentifierDescriptorTag
Definition: si.h:106
SI::MHP_DescriptorLoop::MHP_DescriptorLoop
MHP_DescriptorLoop()
Definition: si.h:474
SI::CharArray::addOffset
void addOffset(int offset)
Definition: util.h:65
SI::Loop::Iterator::reset
void reset()
Definition: si.h:336
SI::VariableLengthPart::length
int length
Definition: si.h:306
SI::LinkageTypeInformationService
@ LinkageTypeInformationService
Definition: si.h:214
SI::PremiereContentTransmissionDescriptorTag
@ PremiereContentTransmissionDescriptorTag
Definition: si.h:198
SI::SystemClockDescriptorTag
@ SystemClockDescriptorTag
Definition: si.h:72
SI::TypeLoop
Definition: si.h:444
SI::NumberedSection::getCurrentNextIndicator
bool getCurrentNextIndicator() const
Definition: si.c:90
SI::DescriptorGroup::~DescriptorGroup
~DescriptorGroup()
Definition: si.c:197
SI::MHP_DVBHTMLApplicationDescriptorTag
@ MHP_DVBHTMLApplicationDescriptorTag
Definition: si.h:188
SI::XAITPidDescriptorTag
@ XAITPidDescriptorTag
Definition: si.h:171
SI::LinkageTypeMobileHandover
@ LinkageTypeMobileHandover
Definition: si.h:221
SI::NumberedSection::getLastSectionNumber
int getLastSectionNumber() const
Definition: si.c:102
SI::TableIdTDT
@ TableIdTDT
Definition: si.h:60
SI::HdSimulcastLogicalChannelDescriptorTag
@ HdSimulcastLogicalChannelDescriptorTag
Definition: si.h:156
SI::MessageDescriptorTag
@ MessageDescriptorTag
Definition: si.h:166
SI::Section::getTableId
TableId getTableId() const
Definition: si.c:55
SI::GroupDescriptor::getLastDescriptorNumber
virtual int getLastDescriptorNumber()=0
SI::Object::isValid
bool isValid()
Definition: si.h:248
SI::Object::checkSize
bool checkSize(int offset)
Definition: si.c:47
SI::SmoothingBufferDescriptorTag
@ SmoothingBufferDescriptorTag
Definition: si.h:77
SI::NumberedSection::getSectionNumber
int getSectionNumber() const
Definition: si.c:98
SI::TypeLoop::getNext
T getNext(Iterator &it) const
Definition: si.h:463
SI::SetOverrideCharacterTable
void SetOverrideCharacterTable(const char *CharacterTable)
Definition: si.c:334
SI::RelatedContentDescriptorTag
@ RelatedContentDescriptorTag
Definition: si.h:141
SI::getCharacterTable
const char * getCharacterTable(const unsigned char *&buffer, int &length, bool *isSingleByte)
Definition: si.c:364
SI::EacemStreamIdentifierDescriptorTag
@ EacemStreamIdentifierDescriptorTag
Definition: si.h:155
SI::Object::getData
CharArray getData()
Definition: si.h:246
SI::ServiceListDescriptorTag
@ ServiceListDescriptorTag
Definition: si.h:89
SI::TableIdSDT
@ TableIdSDT
Definition: si.h:49
SI::DSNGDescriptorTag
@ DSNGDescriptorTag
Definition: si.h:128
SI::LinkageTypeTSContainingSsuBatOrNit
@ LinkageTypeTSContainingSsuBatOrNit
Definition: si.h:223
SI::EightBit
uint8_t EightBit
Definition: si.h:439
SI::LinkageType
LinkageType
Definition: si.h:214
SI::LinkageTypeDataBroadcastService
@ LinkageTypeDataBroadcastService
Definition: si.h:219
SI::IBPDescriptorTag
@ IBPDescriptorTag
Definition: si.h:79
SI::LinkageTypeSystemSoftwareUpdateService
@ LinkageTypeSystemSoftwareUpdateService
Definition: si.h:222
SI::TeletextDescriptorTag
@ TeletextDescriptorTag
Definition: si.h:110
SI::TableIdTOT
@ TableIdTOT
Definition: si.h:63
SI::ParentalRatingDescriptorTag
@ ParentalRatingDescriptorTag
Definition: si.h:109
SI::EnhancedAC3DescriptorTag
@ EnhancedAC3DescriptorTag
Definition: si.h:147
SI::TableIdNIT
@ TableIdNIT
Definition: si.h:47
SI::AACDescriptorTag
@ AACDescriptorTag
Definition: si.h:149
SI::NumberedSection::getTableIdExtension
int getTableIdExtension() const
Definition: si.c:82
SI::LinkageTypeRCSMap
@ LinkageTypeRCSMap
Definition: si.h:220
SI::TableIdEIT_schedule_last
@ TableIdEIT_schedule_last
Definition: si.h:56
SI::VideoDepthRangeDescriptorTag
@ VideoDepthRangeDescriptorTag
Definition: si.h:174
SI::TableIdRST
@ TableIdRST
Definition: si.h:61
SI::TableIdPMT
@ TableIdPMT
Definition: si.h:45
SI::Loop::Iterator::Iterator
Iterator()
Definition: si.h:335
SI::LoopElement
Definition: si.h:309
SI::MHP_DelegatedApplicationDescriptorTag
@ MHP_DelegatedApplicationDescriptorTag
Definition: si.h:193
SI::TableIdEIT_schedule_Other_last
@ TableIdEIT_schedule_Other_last
Definition: si.h:59
SI::DescriptorGroup::Add
bool Add(GroupDescriptor *d)
Definition: si.c:211
SI::MHP_IPv4RoutingDescriptorTag
@ MHP_IPv4RoutingDescriptorTag
Definition: si.h:186
SI::AdaptationFieldDataDescriptorTag
@ AdaptationFieldDataDescriptorTag
Definition: si.h:136
SI::DataBroadcastDescriptorTag
@ DataBroadcastDescriptorTag
Definition: si.h:124
SI::AncillaryDataDescriptorTag
@ AncillaryDataDescriptorTag
Definition: si.h:131
SI::String::decodeText
void decodeText(char *buffer, int size)
Definition: si.c:442
SI::LinkageTypePremiere
@ LinkageTypePremiere
Definition: si.h:224
SI::RunningStatusPausing
@ RunningStatusPausing
Definition: si.h:210
SI::AC3DescriptorTag
@ AC3DescriptorTag
Definition: si.h:130
SI::ServiceMoveDescriptorTag
@ ServiceMoveDescriptorTag
Definition: si.h:120
SI::CharArray::getData
const unsigned char * getData() const
Definition: util.h:51
SI::RunningStatusRunning
@ RunningStatusRunning
Definition: si.h:211
SI::DescriptorGroup::isComplete
bool isComplete()
Definition: si.c:225
SI::TableIdPAT
@ TableIdPAT
Definition: si.h:43
SI::RunningStatusNotRunning
@ RunningStatusNotRunning
Definition: si.h:208
SI::MHP_SimpleApplicationLocationDescriptorTag
@ MHP_SimpleApplicationLocationDescriptorTag
Definition: si.h:195
SI::C2DeliverySystemDescriptorTag
@ C2DeliverySystemDescriptorTag
Definition: si.h:172
SI::TableId
TableId
Definition: si.h:33
SI::TableIdEIT_schedule_first
@ TableIdEIT_schedule_first
Definition: si.h:55
SI::CaIdentifierDescriptorTag
@ CaIdentifierDescriptorTag
Definition: si.h:107
SI::GroupDescriptor
Definition: si.h:486
SI::Descriptor::getDescriptorTag
DescriptorTag getDescriptorTag() const
Definition: si.c:110
SI::SHDeliverySystemDescriptorTag
@ SHDeliverySystemDescriptorTag
Definition: si.h:163
SI::ServiceRelocatedDescriptorTag
@ ServiceRelocatedDescriptorTag
Definition: si.h:169
SI::TableIdST
@ TableIdST
Definition: si.h:62
SI::TableIdSIT
@ TableIdSIT
Definition: si.h:65
SI::LinkageDescriptorTag
@ LinkageDescriptorTag
Definition: si.h:98
SI::TimeShiftedEventDescriptorTag
@ TimeShiftedEventDescriptorTag
Definition: si.h:103
SI::T2MIDescriptorTag
@ T2MIDescriptorTag
Definition: si.h:175
SI::Object
Definition: si.h:240
SI::TransportStreamDescriptorTag
@ TransportStreamDescriptorTag
Definition: si.h:127
SI::TimeSliceFecIdentifierDescriptorTag
@ TimeSliceFecIdentifierDescriptorTag
Definition: si.h:144
SI::ISO639LanguageDescriptorTag
@ ISO639LanguageDescriptorTag
Definition: si.h:71
SI::NumberedSection
Definition: si.h:284
SI::ShortSmoothingBufferDescriptorTag
@ ShortSmoothingBufferDescriptorTag
Definition: si.h:121
SI::MHP_IPv6RoutingDescriptorTag
@ MHP_IPv6RoutingDescriptorTag
Definition: si.h:187
SI::MultiplexBufferUtilizationDescriptorTag
@ MultiplexBufferUtilizationDescriptorTag
Definition: si.h:73
SI::NumberedSection::NumberedSection
NumberedSection()
Definition: si.h:287
SI::ExtendedEventDescriptors
Definition: descriptor.h:61
SI::ContentIdentifierDescriptorTag
@ ContentIdentifierDescriptorTag
Definition: si.h:143
SI::Loop
Definition: si.h:331
SI::DescriptorLoop::domain
DescriptorTagDomain domain
Definition: si.h:436
SI::DescriptorTagDomain
DescriptorTagDomain
Definition: si.h:205
SI::ECMRepetitionRateDescriptorTag
@ ECMRepetitionRateDescriptorTag
Definition: si.h:145
SI::MaximumBitrateDescriptorTag
@ MaximumBitrateDescriptorTag
Definition: si.h:75
SI::ServiceIdentifierDescriptorTag
@ ServiceIdentifierDescriptorTag
Definition: si.h:137
SI::TelephoneDescriptorTag
@ TelephoneDescriptorTag
Definition: si.h:111
SI::CharArray::isValid
bool isValid() const
Definition: util.h:62
SI::CableDeliverySystemDescriptorTag
@ CableDeliverySystemDescriptorTag
Definition: si.h:92
SI::convertCharacterTable
bool convertCharacterTable(const char *from, size_t fromLength, char *to, size_t toLength, const char *fromCode)
Definition: si.c:399
SI::Object::Object
Object()
Definition: si.c:33
SI::TypeLoop::getCount
int getCount()
Definition: si.h:446
SI::Section::getLength
virtual int getLength()
Definition: si.c:59
SI::NetworkChangeNotifyDescriptorTag
@ NetworkChangeNotifyDescriptorTag
Definition: si.h:165
SI::UnimplementedDescriptorTag
@ UnimplementedDescriptorTag
Definition: si.h:202
SI::CRCSection::isCRCValid
bool isCRCValid()
Definition: si.c:71
SI::ScramblingDescriptorTag
@ ScramblingDescriptorTag
Definition: si.h:125
SI::MVCExtensionDescriptorTag
@ MVCExtensionDescriptorTag
Definition: si.h:86
SI::Object::data
CharArray data
Definition: si.h:251
SI::Descriptor
Definition: si.h:312
SI::StructureLoop
Definition: si.h:349
SI::NumberedSection::moreThanOneSection
bool moreThanOneSection() const
Definition: si.h:293
SI::BouquetNameDescriptorTag
@ BouquetNameDescriptorTag
Definition: si.h:95
SI::TVAIdDescriptorTag
@ TVAIdDescriptorTag
Definition: si.h:142
SI::RunningStatusUndefined
@ RunningStatusUndefined
Definition: si.h:207
SI::ServiceAvailabilityDescriptorTag
@ ServiceAvailabilityDescriptorTag
Definition: si.h:138
SI::SubtitlingDescriptorTag
@ SubtitlingDescriptorTag
Definition: si.h:113
SI::CRCSection
Definition: si.h:272
SI
Definition: descriptor.c:16
SI::FrequencyListDescriptorTag
@ FrequencyListDescriptorTag
Definition: si.h:122
SI::ShortEventDescriptorTag
@ ShortEventDescriptorTag
Definition: si.h:101
SI::LinkageTypeTSContainingCompleteNetworkBouquetSi
@ LinkageTypeTSContainingCompleteNetworkBouquetSi
Definition: si.h:217
SI::CharArray::TwoBytes
u_int16_t TwoBytes(const int index) const
Definition: util.h:59
SI::MHP_ApplicationNameDescriptorTag
@ MHP_ApplicationNameDescriptorTag
Definition: si.h:180
SI::TimeShiftedServiceDescriptorTag
@ TimeShiftedServiceDescriptorTag
Definition: si.h:100
SI::CopyrightDescriptorTag
@ CopyrightDescriptorTag
Definition: si.h:74
SI::VariableLengthPart::getLength
virtual int getLength()
Definition: si.h:304
SI::MHP_DVBJApplicationLocationDescriptorTag
@ MHP_DVBJApplicationLocationDescriptorTag
Definition: si.h:183
SI::TableIdSDT_other
@ TableIdSDT_other
Definition: si.h:50
SI::DescriptorGroup
Definition: si.h:492
SI::T2DeliverySystemDescriptorTag
@ T2DeliverySystemDescriptorTag
Definition: si.h:162
SI::DescriptorGroup::length
int length
Definition: si.h:502
SI::CharArray::FourBytes
u_int32_t FourBytes(const int index) const
Definition: util.h:60
SI::CPDescriptorTag
@ CPDescriptorTag
Definition: si.h:160
SI::MultilingualNetworkNameDescriptorTag
@ MultilingualNetworkNameDescriptorTag
Definition: si.h:115
SI::StructureLoop::getNext
bool getNext(T &obj, Iterator &it)
Definition: si.h:353
SI::DescriptorGroup::Delete
void Delete()
Definition: si.c:203
SI::AnnouncementSupportDescriptorTag
@ AnnouncementSupportDescriptorTag
Definition: si.h:134
SI::AudioTypeUndefined
@ AudioTypeUndefined
Definition: si.h:227
SI::LinkageTypeEPGService
@ LinkageTypeEPGService
Definition: si.h:215
SI::CRCSection::CRCSection
CRCSection()
Definition: si.h:276
SI::StuffingDescriptorTag
@ StuffingDescriptorTag
Definition: si.h:90
SI::CellListDescriptorTag
@ CellListDescriptorTag
Definition: si.h:132
SI::RunningStatus
RunningStatus
Definition: si.h:207
SI::AudioTypeVisualImpairedCommentary
@ AudioTypeVisualImpairedCommentary
Definition: si.h:230
SI::TableIdAIT
@ TableIdAIT
Definition: si.h:66
SI::LinkageTypeCaReplacementService
@ LinkageTypeCaReplacementService
Definition: si.h:216
SI::ImageIconDescriptorTag
@ ImageIconDescriptorTag
Definition: si.h:158
SI::ContentDescriptorTag
@ ContentDescriptorTag
Definition: si.h:108
SI::TableIdEIT_schedule_Other_first
@ TableIdEIT_schedule_Other_first
Definition: si.h:58
SI::DescriptorTag
DescriptorTag
Definition: si.h:61
SI::LinkageTypeServiceReplacementService
@ LinkageTypeServiceReplacementService
Definition: si.h:218
SI::PCIT
@ PCIT
Definition: si.h:205
SI::TableIdEIT_presentFollowing
@ TableIdEIT_presentFollowing
Definition: si.h:52
SI::TypeLoop::operator[]
T operator[](const int index) const
Definition: si.h:447
SI::DescriptorLoop::getNext
Descriptor * getNext(Iterator &it)
Definition: si.c:122
SI::String::Parse
virtual void Parse()
Definition: si.h:530
SI::TableIdTSDT
@ TableIdTSDT
Definition: si.h:46
SI::MocaicDescriptorTag
@ MocaicDescriptorTag
Definition: si.h:105
SI::SetSystemCharacterTable
bool SetSystemCharacterTable(const char *CharacterTable)
Definition: si.c:340
SI::DTSDescriptorTag
@ DTSDescriptorTag
Definition: si.h:148
SI::Section
Definition: si.h:260
SI::CPIdentifierDescriptorTag
@ CPIdentifierDescriptorTag
Definition: si.h:161
SI::VariableLengthPart::setData
void setData(CharArray d, int l)
Definition: si.h:301
SI::CaDescriptorTag
@ CaDescriptorTag
Definition: si.h:70
SI::ExtendedEventDescriptorTag
@ ExtendedEventDescriptorTag
Definition: si.h:102
SI::VariableLengthPart::setDataAndOffset
void setDataAndOffset(CharArray d, int l, int &offset)
Definition: si.h:303
SI::MHP_DVBHTMLApplicationBoundaryDescriptorTag
@ MHP_DVBHTMLApplicationBoundaryDescriptorTag
Definition: si.h:190
SI::TableIdEIT_presentFollowing_other
@ TableIdEIT_presentFollowing_other
Definition: si.h:53
SI::Loop::Iterator::i
int i
Definition: si.h:342
SI::TableIdBAT
@ TableIdBAT
Definition: si.h:51
SI::PreferredNameListDescriptorTag
@ PreferredNameListDescriptorTag
Definition: si.h:153
SI::DescriptorLoop::createDescriptor
Descriptor * createDescriptor(int &i, bool returnUnimplemetedDescriptor)
Definition: si.c:169
SI::MHP_ApplicationStorageDescriptorTag
@ MHP_ApplicationStorageDescriptorTag
Definition: si.h:194
SI::AudioTypeCleanEffects
@ AudioTypeCleanEffects
Definition: si.h:228
SI::TableIdNIT_other
@ TableIdNIT_other
Definition: si.h:48
SI::VBIDataDescriptorTag
@ VBIDataDescriptorTag
Definition: si.h:93
SI::String::getText
char * getText()
Definition: si.c:232
SI::DescriptorGroup::deleteOnDesctruction
bool deleteOnDesctruction
Definition: si.h:504
SI::PDCDescriptorTag
@ PDCDescriptorTag
Definition: si.h:129
SI::MHP_DVBHTMLApplicationLocationDescriptorTag
@ MHP_DVBHTMLApplicationLocationDescriptorTag
Definition: si.h:189
SI::Parsable
Definition: util.h:127
SI::SatelliteDeliverySystemDescriptorTag
@ SatelliteDeliverySystemDescriptorTag
Definition: si.h:91
SI::SVCExtensionDescriptorTag
@ SVCExtensionDescriptorTag
Definition: si.h:85
util.h
SI::PCIT_DescriptorLoop::PCIT_DescriptorLoop
PCIT_DescriptorLoop()
Definition: si.h:480
SI::MHP_TransportProtocolDescriptorTag
@ MHP_TransportProtocolDescriptorTag
Definition: si.h:181
SI::NVODReferenceDescriptorTag
@ NVODReferenceDescriptorTag
Definition: si.h:99
SI::DescriptorLoop::getDescriptorTags
int getDescriptorTags(T *tags)
Definition: si.h:423
SI::NumberedSection::getVersionNumber
int getVersionNumber() const
Definition: si.c:94
SI::SixteenBit
uint16_t SixteenBit
Definition: si.h:440
SI::ThirtyTwoBit
uint32_t ThirtyTwoBit
Definition: si.h:441
SI::PrivateDataIndicatorDescriptorTag
@ PrivateDataIndicatorDescriptorTag
Definition: si.h:76
SI::RunningStatusStartsInAFewSeconds
@ RunningStatusStartsInAFewSeconds
Definition: si.h:209
SI::Object::getLength
virtual int getLength()=0
SI::TableIdPremiereCIT
@ TableIdPremiereCIT
Definition: si.h:67
SI::CpcmDeliverySignallingDescriptor
@ CpcmDeliverySignallingDescriptor
Definition: si.h:159
SI::AudioStreamDescriptorTag
@ AudioStreamDescriptorTag
Definition: si.h:64
SI::Object::setData
void setData(const unsigned char *data, int size, bool doCopy=true)
Definition: si.c:39
SI::Loop::Parse
virtual void Parse()
Definition: si.h:345
SI::VideoStreamDescriptorTag
@ VideoStreamDescriptorTag
Definition: si.h:63
SI::CarouselIdentifierDescriptorTag
@ CarouselIdentifierDescriptorTag
Definition: si.h:81
SI::DescriptorGroup::getDescriptors
GroupDescriptor ** getDescriptors()
Definition: si.h:499
SI::AVCDescriptorTag
@ AVCDescriptorTag
Definition: si.h:84
SI::AudioType
AudioType
Definition: si.h:227
SI::CellFrequencyLinkDescriptorTag
@ CellFrequencyLinkDescriptorTag
Definition: si.h:133
SI::DescriptorLoop
Definition: si.h:388
SI::PreferredNameIdentifierDescriptorTag
@ PreferredNameIdentifierDescriptorTag
Definition: si.h:154
SI::Descriptor::getDescriptor
static Descriptor * getDescriptor(CharArray d, DescriptorTagDomain domain, bool returnUnimplemetedDescriptor)
Definition: si.c:518