MythTV  master
Public Types | Public Member Functions | Public Attributes | List of all members
SegmentationDescriptor Class Reference

#include <splicedescriptors.h>

Inheritance diagram for SegmentationDescriptor:
Inheritance graph
[legend]
Collaboration diagram for SegmentationDescriptor:
Collaboration graph
[legend]

Public Types

enum  {
  kNotUsed = 0x0, kVariable = 0x1, kISCI = 0x2, kAdID = 0x3,
  kUMID = 0x4, kISAN = 0x5, kVISAN = 0x6, kTID = 0x7,
  kTI = 0x8, kADI = 0x9
}
 
enum  {
  kNotIndicated = 0x00, kContentIdentification = 0x01, kProgramStart = 0x10, kProgramEnd = 0x11,
  kProgramEarlyTermination = 0x12, kProgramBreakaway = 0x13, kProgramResumption = 0x14, kProgramRunoverPlanned = 0x15,
  kProgramRunoverUnplanned = 0x16, kChapterStart = 0x20, kChapterEnd = 0x21, kProviderAdvertisementStart = 0x30,
  kProviderAdvertisementEnd = 0x31, kDistributorAdvertisementStart = 0x32, kDistributorAdvertisementEnd = 0x33, kUnscheduledEventStart = 0x40,
  kUnscheduledEventEnd = 0x41
}
 

Public Member Functions

 SegmentationDescriptor (const unsigned char *data, int len=300)
 
uint SegmentationEventId (void) const
 
QString SegmentationEventIdString (void) const
 
bool IsSegmentationEventCancel (void) const
 
bool IsProgramSegmentation (void) const
 
bool HasSegmentationDuration (void) const
 
uint ComponentCount (void) const
 
uint ComponentTag (uint i) const
 
uint64_t PTSOffset (uint i)
 
uint64_t SegmentationDuration (void) const
 
uint SegmentationUPIDType (void) const
 
uint SegmentationUPIDLength (void) const
 
const unsigned char * SegmentationUPID (void) const
 
QString SegmentationUPIDString (void) const
 
uint SegmentationTypeID (void) const
 
uint SegmentNum (void) const
 
uint SegmentsExpected (void) const
 
bool Parse (void) override
 
QString toString (void) const override
 
- Public Member Functions inherited from SpliceDescriptor
 operator const unsigned char * (void) const
 
 SpliceDescriptor (const unsigned char *data, int len)
 
 SpliceDescriptor (const unsigned char *data, int len, uint tag)
 
virtual ~SpliceDescriptor (void)=default
 
bool IsValid (void) const
 
uint size (void) const
 
uint DescriptorTag (void) const
 
QString DescriptorTagString (void) const
 
uint DescriptorLength (void) const
 
uint Identifier (void) const
 
QString IdentifierString (void) const
 
virtual QString toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 

Public Attributes

unsigned char const * _ptrs [3] {}
 

Additional Inherited Members

- Static Public Member Functions inherited from SpliceDescriptor
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)
 
- Protected Attributes inherited from SpliceDescriptor
const unsigned char * m_data {nullptr}
 

Detailed Description

Definition at line 157 of file splicedescriptors.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kNotUsed 

upid is not present in the descriptor

kVariable 

user defined

kISCI 

4 alpha + 4 numeric

kAdID 

4 alpha + 4 alphanumeric

kUMID 

UMID See SMPTE 330M.

kISAN 

ISAN See ISO 15706.

kVISAN 

versioned ISAN See ISO 15706-2

kTID 

TMS ProgramID 2 alpha followed by 10 numeric.

kTI 

Turner Identifier.

kADI 

ADI See MD-SP-ADI2.0-AS-I03-070105.

Definition at line 220 of file splicedescriptors.h.

◆ anonymous enum

anonymous enum
Enumerator
kNotIndicated 
kContentIdentification 
kProgramStart 
kProgramEnd 
kProgramEarlyTermination 
kProgramBreakaway 
kProgramResumption 
kProgramRunoverPlanned 
kProgramRunoverUnplanned 
kChapterStart 
kChapterEnd 
kProviderAdvertisementStart 
kProviderAdvertisementEnd 
kDistributorAdvertisementStart 
kDistributorAdvertisementEnd 
kUnscheduledEventStart 
kUnscheduledEventEnd 

Definition at line 249 of file splicedescriptors.h.

Constructor & Destructor Documentation

◆ SegmentationDescriptor()

SegmentationDescriptor::SegmentationDescriptor ( const unsigned char *  data,
int  len = 300 
)
inlineexplicit

Definition at line 160 of file splicedescriptors.h.

Member Function Documentation

◆ SegmentationEventId()

uint SegmentationDescriptor::SegmentationEventId ( void  ) const
inline

Definition at line 173 of file splicedescriptors.h.

◆ SegmentationEventIdString()

QString SegmentationDescriptor::SegmentationEventIdString ( void  ) const
inline

Definition at line 177 of file splicedescriptors.h.

Referenced by toString().

◆ IsSegmentationEventCancel()

bool SegmentationDescriptor::IsSegmentationEventCancel ( void  ) const
inline

Definition at line 183 of file splicedescriptors.h.

◆ IsProgramSegmentation()

bool SegmentationDescriptor::IsProgramSegmentation ( void  ) const
inline

Definition at line 187 of file splicedescriptors.h.

Referenced by Parse().

◆ HasSegmentationDuration()

bool SegmentationDescriptor::HasSegmentationDuration ( void  ) const
inline

Definition at line 189 of file splicedescriptors.h.

Referenced by Parse().

◆ ComponentCount()

uint SegmentationDescriptor::ComponentCount ( void  ) const
inline

Definition at line 193 of file splicedescriptors.h.

Referenced by Parse().

◆ ComponentTag()

uint SegmentationDescriptor::ComponentTag ( uint  i) const
inline

Definition at line 196 of file splicedescriptors.h.

◆ PTSOffset()

uint64_t SegmentationDescriptor::PTSOffset ( uint  i)
inline

Definition at line 199 of file splicedescriptors.h.

◆ SegmentationDuration()

uint64_t SegmentationDescriptor::SegmentationDuration ( void  ) const
inline

Definition at line 211 of file splicedescriptors.h.

◆ SegmentationUPIDType()

uint SegmentationDescriptor::SegmentationUPIDType ( void  ) const
inline

Definition at line 233 of file splicedescriptors.h.

◆ SegmentationUPIDLength()

uint SegmentationDescriptor::SegmentationUPIDLength ( void  ) const
inline

Definition at line 235 of file splicedescriptors.h.

Referenced by Parse(), and SegmentationUPIDString().

◆ SegmentationUPID()

const unsigned char* SegmentationDescriptor::SegmentationUPID ( void  ) const
inline

Definition at line 238 of file splicedescriptors.h.

◆ SegmentationUPIDString()

QString SegmentationDescriptor::SegmentationUPIDString ( void  ) const
inline

Definition at line 242 of file splicedescriptors.h.

◆ SegmentationTypeID()

uint SegmentationDescriptor::SegmentationTypeID ( void  ) const
inline

Definition at line 270 of file splicedescriptors.h.

◆ SegmentNum()

uint SegmentationDescriptor::SegmentNum ( void  ) const
inline

Definition at line 272 of file splicedescriptors.h.

◆ SegmentsExpected()

uint SegmentationDescriptor::SegmentsExpected ( void  ) const
inline

Definition at line 274 of file splicedescriptors.h.

◆ Parse()

bool SegmentationDescriptor::Parse ( void  )
overridevirtual

Reimplemented from SpliceDescriptor.

Definition at line 204 of file splicedescriptors.cpp.

Referenced by SegmentationDescriptor().

◆ toString()

QString SegmentationDescriptor::toString ( void  ) const
overridevirtual

Reimplemented from SpliceDescriptor.

Definition at line 212 of file splicedescriptors.cpp.

Member Data Documentation

◆ _ptrs

unsigned char const* SegmentationDescriptor::_ptrs[3] {}

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