TSPacket Class Reference

#include <tspacket.h>

Inheritance diagram for TSPacket:

TSHeader

List of all members.


Detailed Description

Used to access the data of a Transport Stream packet.

See also:
TSHeader, PESPacket, HDTVRecorder

Definition at line 118 of file tspacket.h.


Public Member Functions

 TSPacket ()
TSPacketCreateClone () const
void InitPayload (const unsigned char *payload)
unsigned int StartOfFieldPointer () const
void SetStartOfFieldPointer (uint sof)
QString toString () const

Static Public Member Functions

static TSPacketCreatePayloadOnlyPacket ()

Static Public Attributes

static const unsigned int SIZE = 188
static const unsigned int PAYLOAD_SIZE = 188-4
static const TSPacketNULL_PACKET

Private Attributes

unsigned char _tspayload [184]

Friends

class PESPacket

Constructor & Destructor Documentation

TSPacket::TSPacket (  )  [inline]

Definition at line 122 of file tspacket.h.

Referenced by CreateClone(), and CreatePayloadOnlyPacket().


Member Function Documentation

static TSPacket* TSPacket::CreatePayloadOnlyPacket (  )  [inline, static]

TSPacket* TSPacket::CreateClone (  )  const [inline]

Definition at line 132 of file tspacket.h.

void TSPacket::InitPayload ( const unsigned char *  payload  )  [inline]

Definition at line 138 of file tspacket.h.

unsigned int TSPacket::StartOfFieldPointer (  )  const [inline]

Definition at line 145 of file tspacket.h.

Referenced by MPEGStreamData::AssemblePSIP(), and PESPacket::InitPESPacket().

void TSPacket::SetStartOfFieldPointer ( uint  sof  )  [inline]

Definition at line 146 of file tspacket.h.

Referenced by CreatePayloadOnlyPacket().

QString TSPacket::toString ( void   )  const

Definition at line 32 of file tspacket.cpp.


Friends And Related Function Documentation

friend class PESPacket [friend]

Definition at line 120 of file tspacket.h.


Member Data Documentation

const unsigned int TSPacket::SIZE = 188 [static]

const unsigned int TSPacket::PAYLOAD_SIZE = 188-4 [static]

const TSPacket * TSPacket::NULL_PACKET [static]

Initial value:

    reinterpret_cast<const TSPacket*>(NULL_PACKET_BYTES)

Definition at line 152 of file tspacket.h.

unsigned char TSPacket::_tspayload[184] [private]

Definition at line 154 of file tspacket.h.

Referenced by CreatePayloadOnlyPacket(), and InitPayload().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:12 2010 for MythTV by  doxygen 1.5.5