MythTV  master
Public Member Functions | Protected Attributes | List of all members
VirtualChannelTable Class Referenceabstract

This table contains information about the channels transmitted on this multiplex. More...

#include <atsctables.h>

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

Public Member Functions

 VirtualChannelTable (const VirtualChannelTable &table)
 
 VirtualChannelTable (const PSIPTable &table)
 
 ~VirtualChannelTable () override
 
uint TransportStreamID () const
 
uint ChannelCount () const
 
uint ChannelCountRaw () const
 
QString ShortChannelName (uint i) const
 
uint MajorChannel (uint i) const
 
uint MinorChannel (uint i) const
 
uint ModulationMode (uint i) const
 
QString ModulationModeString (uint i) const
 
uint ChannelTransportStreamID (uint i) const
 
uint ProgramNumber (uint i) const
 
uint ETMlocation (uint i) const
 
bool IsAccessControlled (uint i) const
 
bool IsHidden (uint i) const
 
bool IsHiddenInGuide (uint i) const
 
uint ServiceType (uint i) const
 
QString ServiceTypeString (uint i) const
 
uint SourceID (uint i) const
 
uint DescriptorsLength (uint i) const
 
const unsigned char * Descriptors (uint i) const
 
uint GlobalDescriptorsLength () const
 
const unsigned char * GlobalDescriptors () const
 
void Parse () const
 
int Find (int major, int minor) const
 
QString GetExtendedChannelName (uint idx) const
 
QString toString (void) const override
 
virtual QString ChannelString (uint channel) const =0
 
QString toStringXML (uint indent_level) const override
 
virtual QString ChannelStringXML (uint indent_level, uint channel) const
 
virtual QString XMLChannelValues (uint indent_level, uint channel) const
 
- Public Member Functions inherited from PSIPTable
 PSIPTable (const TSPacket &tspacket, const unsigned char *pesdata, uint pes_size)
 
 PSIPTable (const unsigned char *pesdata)
 Constructor for viewing a section, does not create it's own data. More...
 
 PSIPTable (const std::vector< uint8_t > &pesdata)
 
 PSIPTable (const PSIPTable &)=default
 
 PSIPTable (const PESPacket &table)
 
 PSIPTable (const TSPacket &table)
 
uint TableID (void) const
 
bool SectionSyntaxIndicator (void) const
 
bool PrivateIndicator (void) const
 
uint SectionLength (void) const
 
uint SectionLengthRaw (void) const
 
uint TableIDExtension (void) const
 
uint Version (void) const
 
bool IsCurrent (void) const
 
uint Section (void) const
 
uint LastSection (void) const
 
uint ATSCProtocolVersion (void) const
 
const unsigned char * psipdata (void) const
 
unsigned char * psipdata (void)
 
void SetTableID (uint id)
 
void SetSectionLength (uint length)
 
void SetTableIDExtension (uint len)
 
void SetVersionNumber (uint ver)
 
void SetCurrent (bool cur)
 
void SetSection (uint num)
 
void SetLastSection (uint num)
 
void SetATSCProtocolVersion (int ver)
 
bool HasCRC (void) const override
 1 bit Cyclic Redundancy Check present More...
 
bool HasSectionNumber (void) const
 
bool VerifyPSIP (bool verify_crc) const
 
- Public Member Functions inherited from PESPacket
 PESPacket (const unsigned char *pesdata)
 
 PESPacket (const std::vector< uint8_t > &pesdata)
 
PESPacketoperator= (const PESPacket &pkt)=delete
 
 PESPacket (const PESPacket &pkt)
 
virtual ~PESPacket ()
 
bool IsClone () const
 
bool AddTSPacket (const TSPacket *tspacket, int cardid, bool &broken)
 
bool IsGood () const
 
const TSHeadertsheader () const
 
TSHeadertsheader ()
 
void GetAsTSPackets (std::vector< TSPacket > &output, uint cc) const
 Returns payload only PESPacket as series of TSPackets. More...
 
uint StreamID () const
 
uint Length () const
 
uint ScramblingControl () const
 
bool HighPriority () const
 1 bit Indicates if this is a high priority packet More...
 
bool DataAligned () const
 1 bit Data alignment indicator (must be 0 for video) More...
 
bool CopyRight () const
 1 bit If true packet may contain copy righted material and is known to have once contained materiale with copy rights. More...
 
bool OriginalRecording () const
 1 bit Original Recording More...
 
bool HasPTS () const
 1 bit Presentation Time Stamp field is present More...
 
bool HasDTS () const
 1 bit Decoding Time Stamp field is present More...
 
bool HasESCR () const
 1 bit Elementary Stream Clock Reference field is present More...
 
bool HasESR () const
 1 bit Elementary Stream Rate field is present More...
 
bool HasDSM () const
 1 bit DSM field present (should always be false for broadcasts) More...
 
bool HasACI () const
 1 bit Additional Copy Info field is present More...
 
bool HasExtensionFlags () const
 1 bit Extension flags are present More...
 
uint64_t PTS (void) const
 Presentation Time Stamp, present if HasPTS() is true. More...
 
uint64_t DTS (void) const
 Decode Time Stamp, present if HasDTS() is true. More...
 
uint TSSizeInBuffer () const
 
uint PSIOffset () const
 
const unsigned char * pesdata () const
 
unsigned char * pesdata ()
 
const unsigned char * data () const
 
unsigned char * data ()
 
void SetStreamID (uint id)
 
void SetLength (uint len)
 
void SetTotalLength (uint len)
 
void SetPSIOffset (uint offset)
 
uint CRC (void) const
 
void SetCRC (uint crc)
 
uint CalcCRC (void) const
 
bool VerifyCRC (void) const
 
bool VerifyCRC (int cardid, int pid) const
 

Protected Attributes

std::vector< unsigned char * > m_ptrs
 
- Protected Attributes inherited from PESPacket
unsigned char * m_pesData { nullptr }
 Pointer to PES data in full buffer. More...
 
unsigned char * m_fullBuffer { nullptr }
 Pointer to allocated data. More...
 
uint m_psiOffset { 0 }
 AFCOffset + StartOfFieldPointer. More...
 
uint m_ccLast { 255 }
 Continuity counter of last inserted TS Packet. More...
 
uint m_pesDataSize { 0 }
 Number of data bytes (TS header + PES data) More...
 
uint m_allocSize { 0 }
 Total number of bytes we allocated. More...
 
bool m_badPacket { false }
 true if a CRC is not good yet More...
 

Additional Inherited Members

- Static Public Member Functions inherited from PSIPTable
static PSIPTable View (const TSPacket &tspacket)
 
static PSIPTable ViewData (const unsigned char *pesdata)
 
- Static Public Attributes inherited from PSIPTable
static const uint kPsipOffset = 8
 
- Static Public Attributes inherited from PESPacket
static constexpr uint kMpegCRCSize { 4 }
 
- Protected Member Functions inherited from PSIPTable
 PSIPTable (const TSPacket &tspacket, bool)
 
QString XMLValues (uint indent_level) const
 
- Protected Member Functions inherited from PESPacket
 PESPacket ()=default
 noop constructor, only for use by derived classes More...
 
void Finalize ()
 
- Static Protected Attributes inherited from PESPacket
static const uint kTheMagicNoCRCCRC = 0xFFFFFFFF
 

Detailed Description

This table contains information about the channels transmitted on this multiplex.

See also
TerrestrialVirtualChannelTable, CableVirtualChannelTable

Definition at line 193 of file atsctables.h.

Constructor & Destructor Documentation

◆ VirtualChannelTable() [1/2]

VirtualChannelTable::VirtualChannelTable ( const VirtualChannelTable table)
inline

Definition at line 196 of file atsctables.h.

◆ VirtualChannelTable() [2/2]

VirtualChannelTable::VirtualChannelTable ( const PSIPTable table)
inlineexplicit

Definition at line 201 of file atsctables.h.

◆ ~VirtualChannelTable()

VirtualChannelTable::~VirtualChannelTable ( )
inlineoverride

Definition at line 207 of file atsctables.h.

Member Function Documentation

◆ TransportStreamID()

uint VirtualChannelTable::TransportStreamID ( ) const
inline

◆ ChannelCount()

uint VirtualChannelTable::ChannelCount ( ) const
inline

◆ ChannelCountRaw()

uint VirtualChannelTable::ChannelCountRaw ( ) const
inline

Definition at line 226 of file atsctables.h.

◆ ShortChannelName()

QString VirtualChannelTable::ShortChannelName ( uint  i) const
inline

◆ MajorChannel()

uint VirtualChannelTable::MajorChannel ( uint  i) const
inline

◆ MinorChannel()

uint VirtualChannelTable::MinorChannel ( uint  i) const
inline

◆ ModulationMode()

uint VirtualChannelTable::ModulationMode ( uint  i) const
inline

◆ ModulationModeString()

QString VirtualChannelTable::ModulationModeString ( uint  i) const

◆ ChannelTransportStreamID()

uint VirtualChannelTable::ChannelTransportStreamID ( uint  i) const
inline

◆ ProgramNumber()

uint VirtualChannelTable::ProgramNumber ( uint  i) const
inline

◆ ETMlocation()

uint VirtualChannelTable::ETMlocation ( uint  i) const
inline

◆ IsAccessControlled()

bool VirtualChannelTable::IsAccessControlled ( uint  i) const
inline

◆ IsHidden()

bool VirtualChannelTable::IsHidden ( uint  i) const
inline

◆ IsHiddenInGuide()

bool VirtualChannelTable::IsHiddenInGuide ( uint  i) const
inline

◆ ServiceType()

uint VirtualChannelTable::ServiceType ( uint  i) const
inline

Definition at line 298 of file atsctables.h.

Referenced by ServiceTypeString(), update_info(), and XMLChannelValues().

◆ ServiceTypeString()

QString VirtualChannelTable::ServiceTypeString ( uint  i) const

◆ SourceID()

uint VirtualChannelTable::SourceID ( uint  i) const
inline

◆ DescriptorsLength()

uint VirtualChannelTable::DescriptorsLength ( uint  i) const
inline

◆ Descriptors()

const unsigned char* VirtualChannelTable::Descriptors ( uint  i) const
inline

◆ GlobalDescriptorsLength()

uint VirtualChannelTable::GlobalDescriptorsLength ( ) const
inline

Definition at line 322 of file atsctables.h.

Referenced by toString(), and toStringXML().

◆ GlobalDescriptors()

const unsigned char* VirtualChannelTable::GlobalDescriptors ( ) const
inline

Definition at line 328 of file atsctables.h.

Referenced by toString(), and toStringXML().

◆ Parse()

void VirtualChannelTable::Parse ( ) const

Definition at line 53 of file atsctables.cpp.

◆ Find()

int VirtualChannelTable::Find ( int  major,
int  minor 
) const

◆ GetExtendedChannelName()

QString VirtualChannelTable::GetExtendedChannelName ( uint  idx) const

Definition at line 506 of file atsctables.cpp.

Referenced by update_info().

◆ toString()

QString VirtualChannelTable::toString ( void  ) const
overridevirtual

◆ ChannelString()

virtual QString VirtualChannelTable::ChannelString ( uint  channel) const
pure virtual

◆ toStringXML()

QString VirtualChannelTable::toStringXML ( uint  indent_level) const
overridevirtual

Reimplemented from PSIPTable.

Definition at line 239 of file atsctables.cpp.

◆ ChannelStringXML()

QString VirtualChannelTable::ChannelStringXML ( uint  indent_level,
uint  channel 
) const
virtual

Definition at line 282 of file atsctables.cpp.

Referenced by toStringXML().

◆ XMLChannelValues()

QString VirtualChannelTable::XMLChannelValues ( uint  indent_level,
uint  channel 
) const
virtual

Member Data Documentation

◆ m_ptrs

std::vector<unsigned char*> VirtualChannelTable::m_ptrs
mutableprotected

Definition at line 342 of file atsctables.h.

Referenced by Parse().


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