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

This table tells the decoder on which PIDs to find A/V data. More...

#include <dvbtables.h>

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

Public Member Functions

 ServiceDescriptionTable (const ServiceDescriptionTable &table)
 ServiceDescriptionTable (const PSIPTable &table)
 ~ServiceDescriptionTable ()
uint TSID () const
 transport_stream_id 16 3.0 0x0000
uint OriginalNetworkID () const
 original_network_id 16 8.0
uint ServiceCount () const
 Number of services.
uint ServiceID (uint i) const
 service_id 16 0.0+p
bool HasEITSchedule (uint i) const
bool HasEITPresentFollowing (uint i) const
uint RunningStatus (uint i) const
 running_status 3 3.0+p
bool IsEncrypted (uint i) const
 free_CA_mode 1 3.3+p
uint ServiceDescriptorsLength (uint i) const
 desc_loop_length 12 3.4+p
const unsigned char * ServiceDescriptors (uint i) const
 for (j=0;j<N;j++) x 5.0+p { descriptor() }
ServiceDescriptorGetServiceDescriptor (uint i) const
bool Mutate (void)
 mutates a SDTo into a SDTa and recalculates the CRC
void Parse (void) const
QString toString (void) const
- Public Member Functions inherited from PSIPTable
 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 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

Private Attributes

vector< const unsigned char * > _ptrs

Additional Inherited Members

- Static Public Member Functions inherited from PSIPTable
static const PSIPTable View (const TSPacket &tspacket)
static PSIPTable View (TSPacket &tspacket)
- Static Public Attributes inherited from PSIPTable
static const uint PSIP_OFFSET = 8
- Protected Member Functions inherited from PSIPTable
QString XMLValues (uint indent_level) const
- 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

This table tells the decoder on which PIDs to find A/V data.

Todo:
This is just a stub.

Definition at line 98 of file dvbtables.h.

Constructor & Destructor Documentation

ServiceDescriptionTable::ServiceDescriptionTable ( const ServiceDescriptionTable table)
inline

Definition at line 101 of file dvbtables.h.

ServiceDescriptionTable::ServiceDescriptionTable ( const PSIPTable table)
inline

Definition at line 107 of file dvbtables.h.

ServiceDescriptionTable::~ServiceDescriptionTable ( )
inline

Definition at line 112 of file dvbtables.h.

Member Function Documentation

uint ServiceDescriptionTable::TSID ( void  ) const
inline

transport_stream_id 16 3.0 0x0000

Definition at line 126 of file dvbtables.h.

Referenced by DVBStreamData::CacheSDT(), DTVSignalMonitor::HandleSDT(), ChannelScanSM::HandleSDT(), toString(), and update_info().

uint ServiceDescriptionTable::OriginalNetworkID ( ) const
inline

original_network_id 16 8.0

Definition at line 129 of file dvbtables.h.

Referenced by DTVSignalMonitor::HandleSDT(), ChannelScanSM::HandleSDT(), ChannelScanSM::HandleSDTo(), toString(), and update_info().

uint ServiceDescriptionTable::ServiceCount ( void  ) const
inline

Number of services.

Definition at line 133 of file dvbtables.h.

Referenced by ChannelScanSM::HandleSDT(), ChannelScanSM::HandleSDTo(), DVBStreamData::ProcessSDT(), and toString().

uint ServiceDescriptionTable::ServiceID ( uint  i) const
inline

service_id 16 0.0+p

Definition at line 138 of file dvbtables.h.

Referenced by ChannelScanSM::HandleSDT(), ChannelScanSM::HandleSDTo(), DVBStreamData::ProcessSDT(), toString(), and update_info().

bool ServiceDescriptionTable::HasEITSchedule ( uint  i) const
inline

Definition at line 141 of file dvbtables.h.

Referenced by DVBStreamData::ProcessSDT(), toString(), and update_info().

bool ServiceDescriptionTable::HasEITPresentFollowing ( uint  i) const
inline

Definition at line 143 of file dvbtables.h.

Referenced by DVBStreamData::ProcessSDT(), toString(), and update_info().

uint ServiceDescriptionTable::RunningStatus ( uint  i) const
inline

running_status 3 3.0+p

Definition at line 146 of file dvbtables.h.

bool ServiceDescriptionTable::IsEncrypted ( uint  i) const
inline

free_CA_mode 1 3.3+p

Definition at line 148 of file dvbtables.h.

Referenced by ChannelScanSM::HandleSDT(), and toString().

uint ServiceDescriptionTable::ServiceDescriptorsLength ( uint  i) const
inline

desc_loop_length 12 3.4+p

Definition at line 150 of file dvbtables.h.

Referenced by GetServiceDescriptor(), ChannelScanSM::HandleSDTo(), Parse(), toString(), and update_info().

const unsigned char* ServiceDescriptionTable::ServiceDescriptors ( uint  i) const
inline

for (j=0;j<N;j++) x 5.0+p { descriptor() }

Definition at line 154 of file dvbtables.h.

Referenced by GetServiceDescriptor(), ChannelScanSM::HandleSDTo(), toString(), and update_info().

ServiceDescriptor * ServiceDescriptionTable::GetServiceDescriptor ( uint  i) const

Definition at line 125 of file dvbtables.cpp.

Referenced by update_info().

bool ServiceDescriptionTable::Mutate ( void  )

mutates a SDTo into a SDTa and recalculates the CRC

Definition at line 140 of file dvbtables.cpp.

Referenced by DVBStreamData::HandleTables().

void ServiceDescriptionTable::Parse ( void  ) const

Definition at line 82 of file dvbtables.cpp.

Referenced by GetServiceDescriptor(), and toString().

QString ServiceDescriptionTable::toString ( void  ) const
virtual

Reimplemented from PSIPTable.

Definition at line 94 of file dvbtables.cpp.

Referenced by ChannelScanSM::HandleSDT(), and ChannelScanSM::HandleSDTo().

Member Data Documentation

vector<const unsigned char*> ServiceDescriptionTable::_ptrs
mutableprivate

Definition at line 166 of file dvbtables.h.

Referenced by Parse().


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