|
MythTV master
|
Used to access header of a TSPacket. More...
#include <libmythtv/mpeg/tspacket.h>
Public Types | |
| using | Clock = std::chrono::steady_clock |
| using | TimePoint = std::chrono::time_point< Clock, std::chrono::microseconds > |
Public Member Functions | |
| TSHeader (void) | |
| TSHeader (int cc) | |
| void | InitHeader (const unsigned char *header) |
| bool | HasSync (void) const |
| bool | TransportError (void) const |
| bool | PayloadStart (void) const |
| bool | Priority (void) const |
| unsigned int | PID (void) const |
| unsigned int | ScramblingControl (void) const |
| unsigned int | AdaptationFieldControl (void) const |
| unsigned int | ContinuityCounter (void) const |
| bool | Scrambled (void) const |
| bool | HasAdaptationField (void) const |
| size_t | AdaptationFieldSize (void) const |
| bool | HasPayload (void) const |
| bool | GetDiscontinuityIndicator (void) const |
| bool | HasPCR (void) const |
| int64_t | GetPCRbase (void) const |
| int32_t | GetPCRext (void) const |
| int64_t | GetPCRraw (void) const |
| TimePoint | GetPCR (void) 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 (void) const |
| unsigned char * | data (void) |
Static Public Attributes | |
| static constexpr unsigned int | kHeaderSize {4} |
| static const TSHeaderArray | kPayloadOnlyHeader |
Private Attributes | |
| TSHeaderArray | m_tsData |
Used to access header of a TSPacket.
This class is also used to determine which PID a PESPacket arrived on.
Definition at line 46 of file tspacket.h.
| using TSHeader::Clock = std::chrono::steady_clock |
Definition at line 49 of file tspacket.h.
| using TSHeader::TimePoint = std::chrono::time_point<Clock, std::chrono::microseconds> |
Definition at line 50 of file tspacket.h.
|
inline |
Definition at line 52 of file tspacket.h.
|
inlineexplicit |
Definition at line 60 of file tspacket.h.
|
inline |
Definition at line 103 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::ProcessTSPacket(), and TSPacket::toString().
|
inline |
Definition at line 114 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), and MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 109 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), DTVRecorder::HandleSingleProgramPAT(), DTVRecorder::HandleSingleProgramPMT(), DTVRecorder::ProcessAVTSPacket(), DTVRecorder::ProcessTSPacket(), PSIPTable::PSIPTable(), and TSPacket::toString().
|
inline |
Definition at line 175 of file tspacket.h.
|
inline |
Definition at line 174 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), DTVRecorder::BufferedWrite(), ProgramAssociationTable::CreateBlank(), ProgramMapTable::CreateBlank(), DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PESPacket::GetAsTSPackets(), PSIPTable::InitPESPacket(), PTSListener::ProcessTSPacket(), PSIPTable::PSIPTable(), and TSPacket::toString().
|
inline |
Definition at line 118 of file tspacket.h.
|
inline |
Definition at line 148 of file tspacket.h.
Referenced by MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 131 of file tspacket.h.
|
inline |
Definition at line 139 of file tspacket.h.
|
inline |
Definition at line 144 of file tspacket.h.
|
inline |
Definition at line 113 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::ProcessTSPacket(), and FirewireRecorder::ProcessTSPacket().
|
inline |
Definition at line 116 of file tspacket.h.
Referenced by DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), DTVRecorder::ProcessAudioTSPacket(), FirewireDevice::ProcessPATPacket(), MPEGStreamData::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and DTVRecorder::ProcessVideoTSPacket().
|
inline |
Definition at line 121 of file tspacket.h.
Referenced by MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 83 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 69 of file tspacket.h.
|
inline |
Definition at line 89 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PSIPTable::InitPESPacket(), DTVRecorder::ProcessAudioTSPacket(), FirewireDevice::ProcessPATPacket(), PTSListener::ProcessTSPacket(), DTVRecorder::ProcessVideoTSPacket(), and TSPacket::toString().
|
inline |
Definition at line 93 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), ATSCStreamData::DeleteCachedTable(), PESPacket::GetAsTSPackets(), MPEGStreamData::HandleTSTables(), DTVRecorder::ProcessAVTSPacket(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), MPEGStreamData::ProcessTSPacket(), TSStreamData::ProcessTSPacket(), DTVRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), MpegRecorder::ProcessTSPacket(), DTVRecorder::ProcessVideoTSPacket(), return_4096_block(), and TSPacket::toString().
|
inline |
Definition at line 91 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 112 of file tspacket.h.
Referenced by MPEGStreamData::HandleTSTables(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), MPEGStreamData::ProcessTSPacket(), TSStreamData::ProcessTSPacket(), and FirewireRecorder::ProcessTSPacket().
|
inline |
Definition at line 97 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 167 of file tspacket.h.
|
inline |
Definition at line 170 of file tspacket.h.
Referenced by MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), PESPacket::GetAsTSPackets(), DTVRecorder::HandleSingleProgramPAT(), DTVRecorder::HandleSingleProgramPMT(), and MpegRecorder::ProcessTSPacket().
|
inline |
Definition at line 154 of file tspacket.h.
|
inline |
Definition at line 160 of file tspacket.h.
Referenced by ProgramMapTable::Create(), and PESPacket::GetAsTSPackets().
|
inline |
Definition at line 157 of file tspacket.h.
|
inline |
Definition at line 164 of file tspacket.h.
|
inline |
Definition at line 151 of file tspacket.h.
|
inline |
Definition at line 86 of file tspacket.h.
Referenced by FirewireDevice::ProcessPATPacket(), MPEGStreamData::ProcessTSPacket(), TSStreamData::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and TSPacket::toString().
|
staticconstexpr |
Definition at line 177 of file tspacket.h.
Referenced by PESPacket::AddTSPacket().
|
static |
Definition at line 178 of file tspacket.h.
|
private |
Definition at line 180 of file tspacket.h.