MythTV
master
|
Used to access the data of a Transport Stream packet. More...
#include <libmythtv/mpeg/tspacket.h>
Public Member Functions | |
TSPacket (void)=default | |
TSPacket * | CreateClone (void) const |
void | InitPayload (const unsigned char *payload) |
void | InitPayload (const unsigned char *payload, uint size) |
unsigned int | AFCOffset (void) const |
unsigned int | StartOfFieldPointer (void) const |
void | SetStartOfFieldPointer (uint sof) |
QString | toString (void) const |
Public Member Functions inherited from TSHeader | |
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 Member Functions | |
static TSPacket * | CreatePayloadOnlyPacket (void) |
Static Public Attributes | |
static constexpr unsigned int | kSize {188} |
static constexpr unsigned int | kPayloadSize {188-4} |
static constexpr unsigned int | kDVBEmissionSize {204} |
static constexpr unsigned int | kISDBEmissionSize {204} |
static constexpr unsigned int | k8VSBEmissionSize {208} |
static const TSPacket * | kNullPacket |
Static Public Attributes inherited from TSHeader | |
static constexpr unsigned int | kHeaderSize {4} |
static const TSHeaderArray | kPayloadOnlyHeader |
Private Attributes | |
std::array< uint8_t, 184 > | m_tsPayload |
Friends | |
class | PESPacket |
Additional Inherited Members | |
Public Types inherited from TSHeader | |
using | Clock = std::chrono::steady_clock |
using | TimePoint = std::chrono::time_point< Clock, std::chrono::microseconds > |
Used to access the data of a Transport Stream packet.
Definition at line 205 of file tspacket.h.
|
default |
|
inlinestatic |
Definition at line 213 of file tspacket.h.
Referenced by ProgramAssociationTable::CreateBlank(), and ProgramMapTable::CreateBlank().
|
inline |
Definition at line 222 of file tspacket.h.
Referenced by MpegRecorder::ProcessTSPacket().
|
inline |
Definition at line 228 of file tspacket.h.
|
inline |
Definition at line 234 of file tspacket.h.
|
inline |
Definition at line 247 of file tspacket.h.
Referenced by MPEGStreamData::AssemblePSIP(), DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PSIPTable::InitPESPacket(), and PTSListener::ProcessTSPacket().
|
inline |
Definition at line 252 of file tspacket.h.
Referenced by MPEGStreamData::AssemblePSIP(), and PSIPTable::InitPESPacket().
|
inline |
Definition at line 254 of file tspacket.h.
QString TSPacket::toString | ( | void | ) | const |
Definition at line 28 of file tspacket.cpp.
Referenced by MPEGStreamData::ProcessTSPacket().
|
friend |
Definition at line 207 of file tspacket.h.
|
staticconstexpr |
Definition at line 259 of file tspacket.h.
Referenced by FirewireRecorder::AddData(), MPEGStreamData::AssemblePSIP(), FirewireDevice::BroadcastToListeners(), DTVRecorder::BufferedWrite(), DTVRecorder::DTVRecorder(), DTVRecorder::FindH2645Keyframes(), DTVRecorder::FindMPEG2Keyframes(), PESPacket::GetAsTSPackets(), ASIStreamHandler::Open(), MpegRecorder::OpenV4L2DeviceAsInput(), MPEGStreamData::ProcessData(), PTSListener::ProcessTSPacket(), PSIPTable::PSIPTable(), MPEGStreamData::ResyncStream(), V4L2encStreamHandler::run(), DVBStreamHandler::RunTS(), and LinuxFirewireDevice::SetAVStreamBufferSize().
|
staticconstexpr |
Definition at line 260 of file tspacket.h.
Referenced by PESPacket::AddTSPacket(), MPEGStreamData::AssemblePSIP(), ProgramAssociationTable::CreateBlank(), PESPacket::GetAsTSPackets(), and InitPayload().
|
staticconstexpr |
Definition at line 261 of file tspacket.h.
Referenced by ASIStreamHandler::Open().
|
staticconstexpr |
Definition at line 262 of file tspacket.h.
|
staticconstexpr |
Definition at line 263 of file tspacket.h.
|
static |
Definition at line 264 of file tspacket.h.
|
private |
Definition at line 266 of file tspacket.h.