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 44 of file tspacket.h.
using TSHeader::Clock = std::chrono::steady_clock |
Definition at line 47 of file tspacket.h.
using TSHeader::TimePoint = std::chrono::time_point<Clock, std::chrono::microseconds> |
Definition at line 48 of file tspacket.h.
|
inline |
Definition at line 50 of file tspacket.h.
|
inlineexplicit |
Definition at line 58 of file tspacket.h.
|
inline |
Definition at line 67 of file tspacket.h.
|
inline |
Definition at line 81 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 84 of file tspacket.h.
Referenced by FirewireDevice::ProcessPATPacket(), TSStreamData::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), MPEGStreamData::ProcessTSPacket(), and TSPacket::toString().
|
inline |
Definition at line 87 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 89 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 91 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), ATSCStreamData::DeleteCachedTable(), PESPacket::GetAsTSPackets(), MPEGStreamData::HandleTSTables(), DTVRecorder::ProcessAVTSPacket(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), TSStreamData::ProcessTSPacket(), MpegRecorder::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), DTVRecorder::ProcessTSPacket(), MPEGStreamData::ProcessTSPacket(), DTVRecorder::ProcessVideoTSPacket(), return_4096_block(), and TSPacket::toString().
|
inline |
Definition at line 95 of file tspacket.h.
Referenced by TSPacket::toString().
|
inline |
Definition at line 101 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::ProcessTSPacket(), and TSPacket::toString().
|
inline |
Definition at line 107 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 110 of file tspacket.h.
Referenced by MPEGStreamData::HandleTSTables(), MPEGStreamData::ProcessEncryptedPacket(), FirewireDevice::ProcessPATPacket(), TSStreamData::ProcessTSPacket(), FirewireRecorder::ProcessTSPacket(), and MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 111 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), TSPacket::AFCOffset(), FirewireRecorder::ProcessTSPacket(), and MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 112 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), and MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 114 of file tspacket.h.
Referenced by DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), DTVRecorder::ProcessAudioTSPacket(), FirewireDevice::ProcessPATPacket(), FirewireRecorder::ProcessTSPacket(), MPEGStreamData::ProcessTSPacket(), and DTVRecorder::ProcessVideoTSPacket().
|
inline |
Definition at line 116 of file tspacket.h.
|
inline |
Definition at line 119 of file tspacket.h.
Referenced by MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 129 of file tspacket.h.
|
inline |
Definition at line 137 of file tspacket.h.
|
inline |
Definition at line 142 of file tspacket.h.
|
inline |
Definition at line 146 of file tspacket.h.
Referenced by MPEGStreamData::ProcessTSPacket().
|
inline |
Definition at line 149 of file tspacket.h.
|
inline |
Definition at line 152 of file tspacket.h.
|
inline |
Definition at line 155 of file tspacket.h.
|
inline |
Definition at line 158 of file tspacket.h.
Referenced by ProgramMapTable::Create(), and PESPacket::GetAsTSPackets().
|
inline |
Definition at line 162 of file tspacket.h.
|
inline |
Definition at line 165 of file tspacket.h.
|
inline |
Definition at line 168 of file tspacket.h.
Referenced by MPEGStreamData::CreatePATSingleProgram(), MPEGStreamData::CreatePMTSingleProgram(), PESPacket::GetAsTSPackets(), DTVRecorder::HandleSingleProgramPAT(), DTVRecorder::HandleSingleProgramPMT(), and MpegRecorder::ProcessTSPacket().
|
inline |
Definition at line 172 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 173 of file tspacket.h.
|
staticconstexpr |
Definition at line 175 of file tspacket.h.
Referenced by PESPacket::AddTSPacket().
|
static |
Definition at line 176 of file tspacket.h.
|
private |
Definition at line 178 of file tspacket.h.