|
MythTV
0.26-pre
|
Used to access header of a TSPacket. More...
#include <tspacket.h>
Public Member Functions | |
| TSHeader () | |
| TSHeader (int cc) | |
| void | InitHeader (const unsigned char *header) |
| bool | HasSync () const |
| bool | TransportError () const |
| bool | PayloadStart () const |
| bool | Priority () const |
| unsigned int | PID () const |
| unsigned int | ScramblingControl () const |
| unsigned int | AdaptationFieldControl () const |
| unsigned int | ContinuityCounter () const |
| bool | Scrambled () const |
| bool | HasAdaptationField () const |
| bool | HasPayload () const |
| void | SetTransportError (bool err) |
| void | SetPayloadStart (bool start) |
| void | SetPriority (bool priority) |
| void | SetPID (unsigned int pid) |
| void | SetScrambled (unsigned int scr) |
| void | SetAdaptationFieldControl (unsigned int afc) |
| void | SetContinuityCounter (unsigned int cc) |
| const unsigned char * | data () const |
| unsigned char * | data () |
Static Public Attributes | |
| static const unsigned int | kHeaderSize = 4 |
| static const unsigned char | kPayloadOnlyHeader [4] |
Private Attributes | |
| unsigned char | _tsdata [4] |
Used to access header of a TSPacket.
This class is also used to determine which PID a PESPacket arrived on.
Definition at line 23 of file tspacket.h.
| TSHeader::TSHeader | ( | ) | [inline] |
Definition at line 26 of file tspacket.h.
| TSHeader::TSHeader | ( | int | cc | ) | [inline] |
Definition at line 34 of file tspacket.h.
| void TSHeader::InitHeader | ( | const unsigned char * | header | ) | [inline] |
Definition at line 43 of file tspacket.h.
Referenced by TSPacket::CreatePayloadOnlyPacket().
| bool TSHeader::HasSync | ( | ) | const [inline] |
Definition at line 57 of file tspacket.h.
Referenced by TSPacket::toString().
| bool TSHeader::TransportError | ( | ) | const [inline] |
Definition at line 60 of file tspacket.h.
Referenced by FirewireDevice::ProcessPATPacket(), IPTVRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), MPEGStreamData::ProcessTSPacket(), and TSPacket::toString().
| bool TSHeader::PayloadStart | ( | ) | const [inline] |
Definition at line 63 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), DTVRecorder::FindH264Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PESPacket::InitPESPacket(), DTVRecorder::ProcessAVTSPacket(), FirewireDevice::ProcessPATPacket(), PTSListener::ProcessTSPacket(), and TSPacket::toString().
| bool TSHeader::Priority | ( | void | ) | const [inline] |
Definition at line 65 of file tspacket.h.
Referenced by TSPacket::toString().
| unsigned int TSHeader::PID | ( | void | ) | const [inline] |
Definition at line 67 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), ATSCStreamData::DeleteCachedTable(), PrintMPEGStreamListener::HandlePMT(), MPEGStreamData::HandleTSTables(), DTVRecorder::ProcessAVTSPacket(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), IPTVRecorder::ProcessTSPacket(), MpegRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), DTVRecorder::ProcessTSPacket(), MPEGStreamData::ProcessTSPacket(), DTVRecorder::ProcessVideoTSPacket(), return_4096_block(), and TSPacket::toString().
| unsigned int TSHeader::ScramblingControl | ( | ) | const [inline] |
Definition at line 71 of file tspacket.h.
Referenced by TSPacket::toString().
| unsigned int TSHeader::AdaptationFieldControl | ( | ) | const [inline] |
Definition at line 77 of file tspacket.h.
Referenced by TSPacket::toString().
| unsigned int TSHeader::ContinuityCounter | ( | ) | const [inline] |
Definition at line 83 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), DTVRecorder::HandleSingleProgramPAT(), DTVRecorder::HandleSingleProgramPMT(), DTVRecorder::ProcessAVTSPacket(), DTVRecorder::ProcessTSPacket(), and TSPacket::toString().
| bool TSHeader::Scrambled | ( | ) | const [inline] |
Definition at line 86 of file tspacket.h.
Referenced by MPEGStreamData::HandleTSTables(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), IPTVRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and MPEGStreamData::ProcessTSPacket().
| bool TSHeader::HasAdaptationField | ( | ) | const [inline] |
Definition at line 87 of file tspacket.h.
Referenced by TSPacket::AFCOffset(), IPTVRecorder::ProcessTSPacket(), and FirewireRecorder::ProcessTSPacket().
| bool TSHeader::HasPayload | ( | ) | const [inline] |
Definition at line 88 of file tspacket.h.
Referenced by DTVRecorder::FindH264Keyframes(), DTVRecorder::FindMPEG2Keyframes(), DTVRecorder::ProcessAVTSPacket(), FirewireDevice::ProcessPATPacket(), IPTVRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and MPEGStreamData::ProcessTSPacket().
| void TSHeader::SetTransportError | ( | bool | err | ) | [inline] |
Definition at line 90 of file tspacket.h.
| void TSHeader::SetPayloadStart | ( | bool | start | ) | [inline] |
Definition at line 93 of file tspacket.h.
| void TSHeader::SetPriority | ( | bool | priority | ) | [inline] |
Definition at line 96 of file tspacket.h.
| void TSHeader::SetPID | ( | unsigned int | pid | ) | [inline] |
Definition at line 99 of file tspacket.h.
Referenced by PESPacket::GetAsTSPackets().
| void TSHeader::SetScrambled | ( | unsigned int | scr | ) | [inline] |
Definition at line 103 of file tspacket.h.
| void TSHeader::SetAdaptationFieldControl | ( | unsigned int | afc | ) | [inline] |
Definition at line 106 of file tspacket.h.
| void TSHeader::SetContinuityCounter | ( | unsigned int | cc | ) | [inline] |
Definition at line 109 of file tspacket.h.
Referenced by MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), PESPacket::GetAsTSPackets(), DTVRecorder::HandleSingleProgramPAT(), DTVRecorder::HandleSingleProgramPMT(), and MpegRecorder::ProcessTSPacket().
| const unsigned char* TSHeader::data | ( | ) | const [inline] |
Definition at line 113 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), DTVRecorder::BufferedWrite(), ProgramAssociationTable::CreateBlank(), ProgramMapTable::CreateBlank(), DTVRecorder::FindH264Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PESPacket::GetAsTSPackets(), PESPacket::InitPESPacket(), PESPacket::PESPacket(), PTSListener::ProcessTSPacket(), and TSPacket::toString().
| unsigned char* TSHeader::data | ( | ) | [inline] |
Definition at line 114 of file tspacket.h.
const unsigned int TSHeader::kHeaderSize = 4 [static] |
Definition at line 116 of file tspacket.h.
Referenced by PESPacket::AddTSPacket().
const unsigned char TSHeader::kPayloadOnlyHeader [static] |
{
SYNC_BYTE,
0x40,
0x0,
0x10,
}
Definition at line 117 of file tspacket.h.
unsigned char TSHeader::_tsdata[4] [private] |
Definition at line 119 of file tspacket.h.
1.7.6.1