MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | List of all members
PSIPTable Class Reference

A PSIP table is a special type of PES packet containing an MPEG, ATSC, or DVB table. More...

#include <mpegtables.h>

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

Public Member Functions

 PSIPTable (const PSIPTable &table)
 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 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
 1 bit Cyclic Redundancy Check present
bool HasSectionNumber (void) const
bool VerifyPSIP (bool verify_crc) const
virtual QString toString (void) const
virtual QString toStringXML (uint indent_level) const
- Public Member Functions inherited from PESPacket
 PESPacket (const PESPacket &pkt)
 PESPacket (const TSPacket &tspacket)
 PESPacket (const TSPacket &tspacket, const unsigned char *pesdata, uint pes_size)
virtual ~PESPacket ()
bool IsClone () const
bool AddTSPacket (const TSPacket *tspacket, bool &broken)
bool IsGood () const
const TSHeadertsheader () const
TSHeadertsheader ()
void GetAsTSPackets (vector< TSPacket > &pkts, uint cc) const
 Returns payload only PESPacket as series of TSPackets.
uint StreamID () const
uint Length () const
uint ScramblingControl () const
bool HighPriority () const
 1 bit Indicates if this is a high priority packet
bool DataAligned () const
 1 bit Data alignment indicator (must be 0 for video)
bool CopyRight () const
 1 bit If true packet may contain copy righted material and is known to have once contained materiale with copy rights.
bool OriginalRecording () const
 1 bit Original Recording
bool HasPTS () const
 1 bit Presentation Time Stamp field is present
bool HasDTS () const
 1 bit Decoding Time Stamp field is present
bool HasESCR () const
 1 bit Elementary Stream Clock Reference field is present
bool HasESR () const
 1 bit Elementary Stream Rate field is present
bool HasDSM () const
 1 bit DSM field present (should always be false for broadcasts)
bool HasACI () const
 1 bit Additional Copy Info field is present
bool HasExtensionFlags () const
 1 bit Extension flags are present
uint64_t PTS (void) const
 Presentation Time Stamp, present if HasPTS() is true.
uint64_t DTS (void) const
 Decode Time Stamp, present if HasDTS() is true.
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

Static Public Member Functions

static const PSIPTable View (const TSPacket &tspacket)
static PSIPTable View (TSPacket &tspacket)
- Static Public Member Functions inherited from PESPacket
static const PESPacket ViewData (const unsigned char *pesdata)

Static Public Attributes

static const uint PSIP_OFFSET = 8

Protected Member Functions

QString XMLValues (uint indent_level) const
- Protected Member Functions inherited from PESPacket
 PESPacket (const TSPacket *tspacket, bool)
 PESPacket (const unsigned char *pesdata, bool)
void Finalize ()

Private Member Functions

 PSIPTable (const PESPacket &pkt, bool)

Additional Inherited Members

- Protected Attributes inherited from PESPacket
unsigned char * _pesdata
 Pointer to PES data in full buffer.
unsigned char * _fullbuffer
 Pointer to allocated data.
uint _psiOffset
 AFCOffset + StartOfFieldPointer.
uint _ccLast
 Continuity counter of last inserted TS Packet.
uint _pesdataSize
 Number of data bytes (TS header + PES data)
uint _allocSize
 Total number of bytes we allocated.
bool _badPacket
 true if a CRC is not good yet

Detailed Description

A PSIP table is a special type of PES packet containing an MPEG, ATSC, or DVB table.

Definition at line 367 of file mpegtables.h.

Constructor & Destructor Documentation

PSIPTable::PSIPTable ( const PESPacket pkt,
bool   
)
inlineprivate

Definition at line 371 of file mpegtables.h.

PSIPTable::PSIPTable ( const PSIPTable table)
inline

Definition at line 375 of file mpegtables.h.

PSIPTable::PSIPTable ( const PESPacket table)
inline

Definition at line 380 of file mpegtables.h.

PSIPTable::PSIPTable ( const TSPacket table)
inline

Definition at line 385 of file mpegtables.h.

Member Function Documentation

static const PSIPTable PSIPTable::View ( const TSPacket tspacket)
inlinestatic

Reimplemented from PESPacket.

Definition at line 392 of file mpegtables.h.

Referenced by ProgramAssociationTable::CreateBlank(), ProgramMapTable::CreateBlank(), and return_4096_block().

static PSIPTable PSIPTable::View ( TSPacket tspacket)
inlinestatic

Reimplemented from PESPacket.

Definition at line 395 of file mpegtables.h.

uint PSIPTable::TableID ( void  ) const
inline

Definition at line 401 of file mpegtables.h.

Referenced by EITHelper::AddEIT(), AggregateDataEventTable::AggregateDataEventTable(), AggregateEventInformationTable::AggregateEventInformationTable(), AggregateExtendedTextTable::AggregateExtendedTextTable(), BouquetAssociationTable::BouquetAssociationTable(), CableVirtualChannelTable::CableVirtualChannelTable(), ConditionalAccessTable::ConditionalAccessTable(), ATSCStreamData::DeleteCachedTable(), DVBStreamData::DeleteCachedTable(), MPEGStreamData::DeleteCachedTable(), DirectedChannelChangeSelectionCodeTable::DirectedChannelChangeSelectionCodeTable(), DirectedChannelChangeTable::DirectedChannelChangeTable(), DVBEventInformationTable::DVBEventInformationTable(), EventInformationTable::EventInformationTable(), ExtendedTextTable::ExtendedTextTable(), ATSCStreamData::HandleTables(), DVBStreamData::HandleTables(), MPEGStreamData::HandleTables(), MPEGStreamData::HandleTSTables(), HasCRC(), HasSectionNumber(), insert_crc(), ScanStreamData::IsRedundant(), ATSCStreamData::IsRedundant(), DVBStreamData::IsRedundant(), MPEGStreamData::IsRedundant(), MasterGuideTable::MasterGuideTable(), ServiceDescriptionTable::Mutate(), NetworkInformationTable::NetworkInformationTable(), NetworkTextTable::NetworkTextTable(), SpliceInformationTable::Parse(), PremiereContentInformationTable::PremiereContentInformationTable(), ProgramAssociationTable::ProgramAssociationTable(), ProgramInformationMessageTable::ProgramInformationMessageTable(), ProgramMapTable::ProgramMapTable(), ProgramNameMessageTable::ProgramNameMessageTable(), RatingRegionTable::RatingRegionTable(), return_4096_block(), SCTENetworkInformationTable::SCTENetworkInformationTable(), SCTESystemTimeTable::SCTESystemTimeTable(), ServiceDescriptionTable::ServiceDescriptionTable(), ShortVirtualChannelTable::ShortVirtualChannelTable(), SpliceInformationTable::SpliceInformationTable(), SystemTimeTable::SystemTimeTable(), TerrestrialVirtualChannelTable::TerrestrialVirtualChannelTable(), TimeDateTable::TimeDateTable(), VirtualChannelTable::toString(), toString(), VirtualChannelTable::toStringXML(), VerifyPSIP(), VirtualChannelTable::VirtualChannelTable(), and XMLValues().

bool PSIPTable::SectionSyntaxIndicator ( void  ) const
inline

Definition at line 404 of file mpegtables.h.

Referenced by DVBStreamHandler::RunSR().

bool PSIPTable::PrivateIndicator ( void  ) const
inline

Definition at line 406 of file mpegtables.h.

uint PSIPTable::SectionLength ( void  ) const
inline
uint PSIPTable::TableIDExtension ( void  ) const
inline
uint PSIPTable::Version ( void  ) const
inline
bool PSIPTable::IsCurrent ( void  ) const
inline
uint PSIPTable::Section ( void  ) const
inline
uint PSIPTable::LastSection ( void  ) const
inline
uint PSIPTable::ATSCProtocolVersion ( void  ) const
inline

Definition at line 441 of file mpegtables.h.

Referenced by toString(), and XMLValues().

const unsigned char* PSIPTable::psipdata ( void  ) const
inline
unsigned char* PSIPTable::psipdata ( void  )
inline

Definition at line 446 of file mpegtables.h.

void PSIPTable::SetTableID ( uint  id)
inline

Definition at line 450 of file mpegtables.h.

Referenced by ServiceDescriptionTable::Mutate().

void PSIPTable::SetSectionLength ( uint  length)
inline

Definition at line 453 of file mpegtables.h.

void PSIPTable::SetTableIDExtension ( uint  len)
inline
void PSIPTable::SetVersionNumber ( uint  ver)
inline

Definition at line 459 of file mpegtables.h.

void PSIPTable::SetCurrent ( bool  cur)
inline

Definition at line 461 of file mpegtables.h.

void PSIPTable::SetSection ( uint  num)
inline

Definition at line 463 of file mpegtables.h.

void PSIPTable::SetLastSection ( uint  num)
inline

Definition at line 464 of file mpegtables.h.

void PSIPTable::SetATSCProtocolVersion ( int  ver)
inline

Definition at line 467 of file mpegtables.h.

bool PSIPTable::HasCRC ( void  ) const
virtual

1 bit Cyclic Redundancy Check present

Reimplemented from PESPacket.

Definition at line 94 of file mpegtables.cpp.

Referenced by MPEGStreamData::HandleTSTables().

bool PSIPTable::HasSectionNumber ( void  ) const

Definition at line 210 of file mpegtables.cpp.

Referenced by XMLValues().

bool PSIPTable::VerifyPSIP ( bool  verify_crc) const

Definition at line 236 of file mpegtables.cpp.

Referenced by MPEGStreamData::HandleTSTables().

QString PSIPTable::toString ( void  ) const
virtual
QString PSIPTable::toStringXML ( uint  indent_level) const
virtual
QString PSIPTable::XMLValues ( uint  indent_level) const
protected

Member Data Documentation

const uint PSIPTable::PSIP_OFFSET = 8
static

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