Go to the documentation of this file.
45 const unsigned char *beg,
const unsigned char *end) :
46 m_beg(beg), m_end(end) { }
61 {
return ((m_beg[1] & 0
x3) << 8) | m_beg[2]; }
63 {
return FrequencySpacing() * SpacingUnitHz(); }
69 {
return ((m_beg[3] & 0
x3) << 8) | m_beg[4]; }
71 {
return (uint64_t)FirstCarrierFrequency() * FrequencyUnitHz(); }
79 const unsigned char *
Descriptors(
void)
const {
return m_beg + 6; }
82 QString toStringXML(
uint indent_level)
const;
172 return (((
m_beg[2]&0xf)<<24) | (
m_beg[3]<<16) |
225 kCarrierDefinitionSubtable = 0x1,
226 kModulationModeSubtable = 0x2,
233 {
return {m_ptrs[i], m_ptrs[i+1]}; }
236 {
return {m_ptrs[i], m_ptrs[i+1]}; }
244 const unsigned char *
Descriptors(
void)
const {
return m_ptrs.back(); }
248 QString
toString(
void)
const override;
252 std::vector<const unsigned char*>
m_ptrs;
296 kSourceNameSubtable = 0x6,
321 void Parse(
void)
const;
322 QString
toString(
void)
const override;
333 {
return ((m_data[7]<<8) | m_data[8]) & 0xfff; }
344 QString toStringXML(
uint indent_level)
const;
345 uint Size(
void)
const {
return DCMDataLength() + 3; }
355 const unsigned char *data,
const std::vector<const unsigned char*> &ptrs) :
387 {
return ((
_ptrs[i][0]<<8) |
_ptrs[i][1]) & 0xfff; }
399 {
return PathSelect(i) ?
"Path 2" :
"Path 1"; }
466 const std::vector<const unsigned char*> &
_ptrs;
485 {
return ((m_data[12+(i*4)]<<8) | m_data[13+(i*4)]) & 0xfff; }
488 QString toStringXML(
uint indent_level)
const;
489 uint Size(
void)
const {
return (RecordCount() * 4) + 3; }
524 kVirtualChannelMap = 0x0,
525 kDefinedChannelsMap = 0x1,
526 kInverseChannelMap = 0x2,
530 QString TableSubtypeString(
void)
const;
539 {
return {
pesdata(), m_ptrs}; }
550 const unsigned char *
Descriptors(
void)
const {
return m_ptrs.back(); }
555 QString
toString(
void)
const override;
559 std::vector<const unsigned char*>
m_ptrs;
595 dt.setSecsSinceEpoch(GPSUnix());
601 dt.setSecsSinceEpoch(UTCUnix());
607 {
return GPSUnix() - GPSUTCOffset(); }
617 QString
toString(
void)
const override;
636 {
return "Program Information Message\n"; }
638 {
return "<ProgramInformationMessage />"; }
656 {
return "Program Name Message\n"; }
658 {
return "<ProgramNameMessage />"; }
675 QString
toString(
void)
const override;
680 #endif // SCTE_TABLES_H
uint NumberOfCarriers(void) const
uint VirtualChannelNumber(uint i) const
uint FirstVirtualChannel(void) const
int iso639_key_to_canonical_key(int iso639_2)
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
QString CanonicalLanguageString(void) const
QString toStringXML(uint) const override
uint DescriptorsLength(void) const
bool DescriptorsIncluded(void) const
bool ApplicationVirtualChannel(uint i) const
AggregateDataEventTable(const PSIPTable &table)
static QString toString(void)
NetworkTextTable(const PSIPTable &table)
QString VideoStandardString(uint i) const
const unsigned char * m_end
~NetworkTextTable() override
QString TransportTypeString(uint i) const
uint NumberOfVCRecords(void) const
const unsigned char * pesdata() const
uint SpacingUnit(void) const
uint ModulationFormat(void) const
uint TransmissionMedium(void) const
const unsigned char * m_beg
AggregateDataEventTable(const AggregateDataEventTable &table)
QString ModulationFormatString(void) const
uint ProgramNumber(uint i) const
const unsigned char * Descriptors(void) const
DefinedChannelsMapSubtable DefinedChannelsMap(void) const
const std::vector< const unsigned char * > & _ptrs
ProgramNameMessageTable(const ProgramNameMessageTable &table)
uint ChannelType(uint i) const
uint DescriptorsCount(void) const
QString ChannelTypeString(uint i) const
const unsigned char * m_end
const unsigned char * m_data
uint MMSReference(uint i) const
int CanonicalLanguageKey(void) const
uint InnerCodingMode(void) const
NetworkTextTable(const NetworkTextTable &table)
A PSIP table is a variant of a PES packet containing an MPEG, ATSC or DVB table.
DefinedChannelsMapSubtable(const unsigned char *data)
virtual QString toString(void) const
QDateTime ActivationTimeUTC(uint offset=0) const
uint TransportType(uint i) const
uint FrequencyUnitHz(void) const
uint TransmissionSystem(void) const
uint DescriptorsLength(void) const
const unsigned char * m_data
uint SymbolRate(void) const
@ kTSITUAnnexB
Specified in Annex B of ITU Rec. J.83.
SCTE System information tables.
CarrierDefinitionSubtable(const unsigned char *beg, const unsigned char *end)
uint FirstCarrierFrequency(void) const
uint FrequencyUnit(void) const
QString toStringXML(uint indent_level) const
@ kTSDigiCipher
from SCTE 57 – DigiCipher II
uint FrequencySpacingHz(void) const
VirtualChannelMapSubtable VirtualChannelMap(void) const
ProgramNameMessageTable(const PSIPTable &table)
virtual QString toStringXML(uint indent_level) const
uint SpacingUnitHz(void) const
bool RangeDefined(uint i) const
const unsigned char * Descriptors(uint i) const
int LanguageKey(void) const
bool Scrambled(uint i) const
VirtualChannelMapSubtable(const unsigned char *data, const std::vector< const unsigned char * > &ptrs)
uint SourceID(uint i) const
uint DescriptorsLength(void) const
static QString iso639_key_to_str3(int code)
uint VideoStandard(uint i) const
InverseChannelMapSubtable(const unsigned char *data)
QString PathSelectString(uint i) const
uint ApplicationID(uint i) const
uint DescriptorsLength(uint i) const
InverseChannelMapSubtable InverseChannelMap(void) const
@ kTSITUAnnexA
Specified in Annex A of ITU Rec. J.83.
ModulationModeSubtable(const unsigned char *beg, const unsigned char *end)
uint SectionLength(void) const
uint DCMDataLength(void) const
ShortVirtualChannelTable(const PSIPTable &table)
QString toStringXML(uint indent_level) const
uint TableSubtype(void) const
uint DescriptorsCount(uint i) const
static constexpr qint64 GPS_EPOCH
Seconds between start of GPS time and the start of UNIX time.
const unsigned char * Descriptors(void) const
uint FrequencySpacing(void) const
const unsigned char * m_beg
uint TableSubtype(void) const
~ShortVirtualChannelTable() override
@ kTSITUQPSK
ITU-R Rec. BO.1211:1995 (QPSK)
QString toString(void) const override
uint ChannelsCount(uint i) const
ISO 639-1 and ISO 639-2 support functions.
uint64_t FirstCarrierFrequencyHz(void) const
uint VirtualChannelNumber(uint i) const
std::vector< const unsigned char * > m_ptrs
QString LanguageString(void) const
uint PathSelect(uint i) const
uint FirstMapIndex(void) const
const unsigned char * m_data
ShortVirtualChannelTable(const ShortVirtualChannelTable &table)
static int iso639_str3_to_key(const unsigned char *iso639_2)
uint DescriptorsCount(void) const
uint CDSReference(uint i) const
QString TransmissionSystemString(void) const
const unsigned char * Descriptors(void) const
uint RecordCount(void) const
bool SplitBitstreamMode(void) const
uint ActivationTimeRaw(void) const
uint SourceID(uint i) const
QString InnerCodingModeString(void) const
uint TransmissionMedium(void) const