IndexRecord Class Reference

Collaboration diagram for IndexRecord:

Collaboration graph
[legend]

Public Member Functions

 IndexRecord (u_int8_t startOffset, u_int8_t size, unsigned long transportPacketNumber, float pcr)
virtual ~IndexRecord ()
RecordTyperecordType ()
void setFirstFlag ()
u_int8_t startOffset () const
u_int8_t & size ()
float pcr () const
unsigned long transportPacketNumber () const
IndexRecordnext () const
void addAfter (IndexRecord *prev)
void unlink ()

Private Attributes

IndexRecordfNext
IndexRecordfPrev
RecordType fRecordType
u_int8_t fStartOffset
u_int8_t fSize
float fPCR
unsigned long fTransportPacketNumber

Detailed Description

Definition at line 40 of file MPEG2IndexFromTransportStream.cpp.


Constructor & Destructor Documentation

IndexRecord::IndexRecord ( u_int8_t  startOffset,
u_int8_t  size,
unsigned long  transportPacketNumber,
float  pcr 
)

Definition at line 615 of file MPEG2IndexFromTransportStream.cpp.

IndexRecord::~IndexRecord (  )  [virtual]

Definition at line 622 of file MPEG2IndexFromTransportStream.cpp.

References next(), and unlink().

00622                           {
00623   IndexRecord* nextRecord = next();
00624   unlink();
00625   if (nextRecord != this) delete nextRecord;
00626 }


Member Function Documentation

RecordType& IndexRecord::recordType (  )  [inline]

Definition at line 46 of file MPEG2IndexFromTransportStream.cpp.

References fRecordType.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00046 { return fRecordType; }

void IndexRecord::setFirstFlag (  )  [inline]

Definition at line 47 of file MPEG2IndexFromTransportStream.cpp.

References fRecordType.

Referenced by MPEG2IFrameIndexFromTransportStream::parseFrame().

00047 { fRecordType = (RecordType)(((u_int8_t)fRecordType) | 0x80); }

u_int8_t IndexRecord::startOffset (  )  const [inline]

Definition at line 48 of file MPEG2IndexFromTransportStream.cpp.

References fStartOffset.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00048 { return fStartOffset; }

u_int8_t& IndexRecord::size (  )  [inline]

Definition at line 49 of file MPEG2IndexFromTransportStream.cpp.

References fSize.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00049 { return fSize; }

float IndexRecord::pcr (  )  const [inline]

Definition at line 50 of file MPEG2IndexFromTransportStream.cpp.

References fPCR.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00050 { return fPCR; }

unsigned long IndexRecord::transportPacketNumber (  )  const [inline]

Definition at line 51 of file MPEG2IndexFromTransportStream.cpp.

References fTransportPacketNumber.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00051 { return fTransportPacketNumber; }

IndexRecord* IndexRecord::next (  )  const [inline]

Definition at line 53 of file MPEG2IndexFromTransportStream.cpp.

References fNext.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), MPEG2IFrameIndexFromTransportStream::parseFrame(), and ~IndexRecord().

00053 { return fNext; }

void IndexRecord::addAfter ( IndexRecord prev  ) 

Definition at line 628 of file MPEG2IndexFromTransportStream.cpp.

References fNext, and fPrev.

Referenced by MPEG2IFrameIndexFromTransportStream::addToTail(), and MPEG2IFrameIndexFromTransportStream::parseFrame().

00628                                             {
00629   fNext = prev->fNext;
00630   fPrev = prev;
00631   prev->fNext->fPrev = this;
00632   prev->fNext = this;
00633 }

void IndexRecord::unlink (  ) 

Definition at line 635 of file MPEG2IndexFromTransportStream.cpp.

References fNext, and fPrev.

Referenced by MPEG2IFrameIndexFromTransportStream::deliverIndexRecord(), and ~IndexRecord().

00635                          {
00636   fNext->fPrev = fPrev;
00637   fPrev->fNext = fNext;
00638   fNext = fPrev = this;
00639 }


Field Documentation

IndexRecord* IndexRecord::fNext [private]

Definition at line 59 of file MPEG2IndexFromTransportStream.cpp.

Referenced by addAfter(), next(), and unlink().

IndexRecord* IndexRecord::fPrev [private]

Definition at line 60 of file MPEG2IndexFromTransportStream.cpp.

Referenced by addAfter(), and unlink().

RecordType IndexRecord::fRecordType [private]

Definition at line 62 of file MPEG2IndexFromTransportStream.cpp.

Referenced by recordType(), and setFirstFlag().

u_int8_t IndexRecord::fStartOffset [private]

Definition at line 63 of file MPEG2IndexFromTransportStream.cpp.

Referenced by startOffset().

u_int8_t IndexRecord::fSize [private]

Definition at line 64 of file MPEG2IndexFromTransportStream.cpp.

Referenced by size().

float IndexRecord::fPCR [private]

Definition at line 66 of file MPEG2IndexFromTransportStream.cpp.

Referenced by pcr().

unsigned long IndexRecord::fTransportPacketNumber [private]

Definition at line 67 of file MPEG2IndexFromTransportStream.cpp.

Referenced by transportPacketNumber().


The documentation for this class was generated from the following file:
Generated on Mon Apr 29 13:31:40 2013 for live by  doxygen 1.5.2