#include <pespacket.h>

Definition at line 21 of file pespacket.h.
Public Member Functions | |
| 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 TSHeader * | tsheader () const |
| TSHeader * | tsheader () |
| uint | WriteAsTSPackets (unsigned char *buf, uint &cc) const |
| Writes payload only PESPacket as series of TSPacket data. | |
| 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 | |
| virtual bool | HasCRC () const |
| 1 bit Cyclic Redundancy Check present | |
| bool | HasExtensionFlags () const |
| 1 bit Extension flags are present | |
| 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 PESPacket | View (const TSPacket &tspacket) |
| static PESPacket | View (TSPacket &tspacket) |
| static const PESPacket | ViewData (const unsigned char *pesdata) |
Protected Member Functions | |
| PESPacket (const TSPacket *tspacket, bool) | |
| PESPacket (const unsigned char *pesdata, bool) | |
| void | Finalize () |
Protected Attributes | |
| 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 | |
Private Member Functions | |
| void | InitPESPacket (TSPacket &tspacket) |
| Only handles single TS packet PES packets, for PMT/PAT tables basically. | |
| PESPacket & | operator= (const PESPacket &pkt) |
| PESPacket::PESPacket | ( | const unsigned char * | pesdata, | |
| bool | ||||
| ) | [inline, protected] |
Definition at line 55 of file pespacket.h.
| PESPacket::PESPacket | ( | const PESPacket & | pkt | ) | [inline] |
Definition at line 70 of file pespacket.h.
| PESPacket::PESPacket | ( | const TSPacket & | tspacket | ) | [inline] |
Definition at line 87 of file pespacket.h.
| PESPacket::PESPacket | ( | const TSPacket & | tspacket, | |
| const unsigned char * | pesdata, | |||
| uint | pes_size | |||
| ) | [inline] |
Definition at line 106 of file pespacket.h.
| virtual PESPacket::~PESPacket | ( | ) | [inline, virtual] |
Definition at line 120 of file pespacket.h.
| void PESPacket::InitPESPacket | ( | TSPacket & | tspacket | ) | [inline, private] |
Only handles single TS packet PES packets, for PMT/PAT tables basically.
Definition at line 24 of file pespacket.h.
Referenced by PESPacket().
Reimplemented in PSIPTable.
Definition at line 129 of file pespacket.h.
Referenced by FirewireDevice::ProcessPATPacket(), and PSIPTable::View().
| static const PESPacket PESPacket::ViewData | ( | const unsigned char * | pesdata | ) | [inline, static] |
Definition at line 135 of file pespacket.h.
Referenced by AvFormatDecoder::HasVideo(), DVBStreamHandler::RunSR(), AvFormatDecoder::ScanATSCCaptionStreams(), AvFormatDecoder::ScanDSMCCStreams(), and AvFormatDecoder::ScanTeletextCaptions().
| bool PESPacket::IsClone | ( | ) | const [inline] |
| bool PESPacket::IsGood | ( | ) | const [inline] |
Definition at line 143 of file pespacket.h.
Referenced by MPEGStreamData::AssemblePSIP(), and MPEGStreamData::HandleTSTables().
| const TSHeader* PESPacket::tsheader | ( | ) | const [inline] |
Definition at line 145 of file pespacket.h.
Referenced by AddTSPacket(), MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), ATSCStreamData::DeleteCachedTable(), IPTVRecorder::HandleSingleProgramPAT(), HDHRRecorder::HandleSingleProgramPAT(), FirewireRecorder::HandleSingleProgramPAT(), DVBRecorder::HandleSingleProgramPAT(), IPTVRecorder::HandleSingleProgramPMT(), HDHRRecorder::HandleSingleProgramPMT(), FirewireRecorder::HandleSingleProgramPMT(), DVBRecorder::HandleSingleProgramPMT(), ProgramMapTable::toString(), EventInformationTable::toString(), and WriteAsTSPackets().
| TSHeader* PESPacket::tsheader | ( | ) | [inline] |
Definition at line 147 of file pespacket.h.
Writes payload only PESPacket as series of TSPacket data.
Definition at line 103 of file pespacket.cpp.
Referenced by HDHRRecorder::HandleSingleProgramPMT(), and DVBRecorder::HandleSingleProgramPMT().
| uint PESPacket::StreamID | ( | ) | const [inline] |
Definition at line 153 of file pespacket.h.
Referenced by MPEGStreamData::AssemblePSIP(), PSIPTable::TableID(), VerifyCRC(), and PSIPTable::VerifyPSIP().
| uint PESPacket::Length | ( | void | ) | const [inline] |
Definition at line 154 of file pespacket.h.
Referenced by AddTSPacket(), CalcCRC(), CRC(), InitPESPacket(), ProgramMapTable::Parse(), DVBEventInformationTable::Parse(), ServiceDescriptionTable::Parse(), PESPacket(), PSIPTable::SectionLength(), SetCRC(), ProgramMapTable::toString(), PSIPTable::toString(), CableVirtualChannelTable::toString(), TerrestrialVirtualChannelTable::toString(), PSIPTable::VerifyPSIP(), and WriteAsTSPackets().
| uint PESPacket::ScramblingControl | ( | ) | const [inline] |
Definition at line 158 of file pespacket.h.
| bool PESPacket::HighPriority | ( | ) | const [inline] |
| bool PESPacket::DataAligned | ( | ) | const [inline] |
| bool PESPacket::CopyRight | ( | ) | const [inline] |
1 bit If true packet may contain copy righted material and is known to have once contained materiale with copy rights.
If false packet may contain copy righted material but is not known to have ever contained materiale with copy rights.
Definition at line 168 of file pespacket.h.
| bool PESPacket::OriginalRecording | ( | ) | const [inline] |
| bool PESPacket::HasPTS | ( | ) | const [inline] |
| bool PESPacket::HasDTS | ( | ) | const [inline] |
| bool PESPacket::HasESCR | ( | ) | const [inline] |
1 bit Elementary Stream Clock Reference field is present
Definition at line 177 of file pespacket.h.
| bool PESPacket::HasESR | ( | ) | const [inline] |
| bool PESPacket::HasDSM | ( | ) | const [inline] |
1 bit DSM field present (should always be false for broadcasts)
Definition at line 181 of file pespacket.h.
| bool PESPacket::HasACI | ( | ) | const [inline] |
| virtual bool PESPacket::HasCRC | ( | void | ) | const [inline, virtual] |
1 bit Cyclic Redundancy Check present
Reimplemented in PSIPTable.
Definition at line 185 of file pespacket.h.
Referenced by CRC(), PESPacket(), and VerifyCRC().
| bool PESPacket::HasExtensionFlags | ( | ) | const [inline] |
| uint PESPacket::TSSizeInBuffer | ( | ) | const [inline] |
| uint PESPacket::PSIOffset | ( | ) | const [inline] |
| const unsigned char* PESPacket::pesdata | ( | ) | const [inline] |
Definition at line 196 of file pespacket.h.
Referenced by ProgramMapTable::AppendStream(), MPEGStreamData::AssemblePSIP(), VirtualChannelTable::ChannelCount(), SystemTimeTable::DayDaylightSavingsStarts(), ScanStreamData::DeleteCachedTable(), SystemTimeTable::GPSOffset(), SystemTimeTable::GPSRaw(), SystemTimeTable::HourDaylightSavingsStarts(), SystemTimeTable::InDaylightSavingsTime(), PSIPTable::IsCurrent(), PSIPTable::LastSection(), DVBEventInformationTable::Parse(), ServiceDescriptionTable::Parse(), NetworkInformationTable::Parse(), PSIPTable::PrivateIndicator(), PSIPTable::ProtocolVersion(), PSIPTable::psipdata(), PSIPTable::Section(), PSIPTable::SectionSyntaxIndicator(), PSIPTable::SetCurrent(), PSIPTable::SetLastSection(), PSIPTable::SetProtocolVersion(), PSIPTable::SetSection(), PSIPTable::SetTableIDExtension(), PSIPTable::SetVersionNumber(), MasterGuideTable::TableCount(), PSIPTable::TableIDExtension(), TimeDateTable::UTCdata(), and PSIPTable::Version().
| unsigned char* PESPacket::pesdata | ( | ) | [inline] |
Definition at line 197 of file pespacket.h.
| const unsigned char* PESPacket::data | ( | ) | const [inline] |
| unsigned char* PESPacket::data | ( | ) | [inline] |
Definition at line 200 of file pespacket.h.
| void PESPacket::SetStreamID | ( | uint | id | ) | [inline] |
| void PESPacket::SetLength | ( | uint | len | ) | [inline] |
Definition at line 203 of file pespacket.h.
Referenced by ProgramMapTable::CreateBlank(), PSIPTable::SetSectionLength(), and SetTotalLength().
| void PESPacket::SetTotalLength | ( | uint | len | ) | [inline] |
Definition at line 208 of file pespacket.h.
Referenced by ProgramMapTable::AppendStream(), ProgramMapTable::CreateBlank(), and ProgramAssociationTable::CreateBlank().
| void PESPacket::SetPSIOffset | ( | uint | offset | ) | [inline] |
| uint PESPacket::CRC | ( | void | ) | const [inline] |
Definition at line 221 of file pespacket.h.
Referenced by DTVSignalMonitor::HandlePAT(), VerifyCRC(), and PSIPTable::VerifyPSIP().
| void PESPacket::SetCRC | ( | uint | crc | ) | [inline] |
Definition at line 232 of file pespacket.h.
Referenced by Finalize(), and ServiceDescriptionTable::Mutate().
| uint PESPacket::CalcCRC | ( | void | ) | const |
Definition at line 156 of file pespacket.cpp.
Referenced by Finalize(), ServiceDescriptionTable::Mutate(), FirewireDevice::ProcessPATPacket(), VerifyCRC(), and PSIPTable::VerifyPSIP().
| bool PESPacket::VerifyCRC | ( | void | ) | const |
Definition at line 164 of file pespacket.cpp.
Referenced by AddTSPacket(), InitPESPacket(), ServiceDescriptionTable::Mutate(), and PESPacket().
| void PESPacket::Finalize | ( | ) | [inline, protected] |
Definition at line 248 of file pespacket.h.
unsigned char* PESPacket::_pesdata [protected] |
Pointer to PES data in full buffer.
Definition at line 250 of file pespacket.h.
Referenced by AddTSPacket(), CalcCRC(), CopyRight(), CRC(), DataAligned(), HasACI(), HasCRC(), HasDSM(), HasDTS(), HasESCR(), HasESR(), HasExtensionFlags(), HasPTS(), HighPriority(), InitPESPacket(), Length(), OriginalRecording(), pesdata(), PESPacket(), ScramblingControl(), SetCRC(), SetLength(), SetPSIOffset(), SetStreamID(), StreamID(), PSIPTable::VerifyPSIP(), WriteAsTSPackets(), and ~PESPacket().
unsigned char* PESPacket::_fullbuffer [protected] |
Pointer to allocated data.
Definition at line 251 of file pespacket.h.
Referenced by AddTSPacket(), data(), PESPacket(), SetPSIOffset(), tsheader(), PSIPTable::VerifyPSIP(), WriteAsTSPackets(), and ~PESPacket().
uint PESPacket::_psiOffset [protected] |
AFCOffset + StartOfFieldPointer.
Definition at line 253 of file pespacket.h.
Referenced by AddTSPacket(), InitPESPacket(), PESPacket(), PSIOffset(), and SetPSIOffset().
uint PESPacket::_ccLast [protected] |
Continuity counter of last inserted TS Packet.
Definition at line 254 of file pespacket.h.
Referenced by AddTSPacket().
uint PESPacket::_pesdataSize [protected] |
Number of data bytes (TS header + PES data).
Definition at line 255 of file pespacket.h.
Referenced by AddTSPacket(), PESPacket(), and TSSizeInBuffer().
uint PESPacket::_allocSize [protected] |
Total number of bytes we allocated.
Definition at line 256 of file pespacket.h.
Referenced by AddTSPacket(), IsClone(), PESPacket(), and PSIPTable::VerifyPSIP().
bool PESPacket::_badPacket [protected] |
true if a CRC is not good yet
Definition at line 257 of file pespacket.h.
Referenced by AddTSPacket(), InitPESPacket(), IsGood(), and PESPacket().
1.5.5