live
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
MPEG2IFrameIndexFromTransportStream Class Reference

#include <MPEG2IndexFromTransportStream.hh>

Inheritance diagram for MPEG2IFrameIndexFromTransportStream:
Inheritance graph
[legend]
Collaboration diagram for MPEG2IFrameIndexFromTransportStream:
Collaboration graph
[legend]

Public Types

typedef void() afterGettingFunc(void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
typedef void() onCloseFunc(void *clientData)
 

Public Member Functions

FramedSourceinputSource () const
 
void reassignInputSource (FramedSource *newInputSource)
 
void detachInputSource ()
 
void getNextFrame (unsigned char *to, unsigned maxSize, afterGettingFunc *afterGettingFunc, void *afterGettingClientData, onCloseFunc *onCloseFunc, void *onCloseClientData)
 
void handleClosure ()
 
void stopGettingFrames ()
 
virtual unsigned maxFrameSize () const
 
Boolean isCurrentlyAwaitingData () const
 
virtual Boolean isRTPSource () const
 
virtual Boolean isMPEG1or2VideoStreamFramer () const
 
virtual Boolean isMPEG4VideoStreamFramer () const
 
virtual Boolean isH264VideoStreamFramer () const
 
virtual Boolean isH265VideoStreamFramer () const
 
virtual Boolean isDVVideoStreamFramer () const
 
virtual Boolean isJPEGVideoSource () const
 
virtual Boolean isAMRAudioSource () const
 
virtual Boolean isMPEG2TransportStreamMultiplexor () const
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSink () const
 
virtual Boolean isRTCPInstance () const
 
virtual Boolean isRTSPClient () const
 
virtual Boolean isRTSPServer () const
 
virtual Boolean isMediaSession () const
 
virtual Boolean isServerMediaSession () const
 

Static Public Member Functions

static MPEG2IFrameIndexFromTransportStreamcreateNew (UsageEnvironment &env, FramedSource *inputSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, FramedSource *&resultSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, MediaSource *&resultSource)
 
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
 
static void handleClosure (void *clientData)
 
static void afterGetting (FramedSource *source)
 
static void close (UsageEnvironment &env, char const *mediumName)
 
static void close (Medium *medium)
 

Protected Member Functions

 MPEG2IFrameIndexFromTransportStream (UsageEnvironment &env, FramedSource *inputSource)
 
virtual ~MPEG2IFrameIndexFromTransportStream ()
 
virtual char const * MIMEtype () const
 
virtual void getAttributes () const
 
virtual void doStopGettingFrames ()
 
TaskTokennextTask ()
 

Protected Attributes

FramedSourcefInputSource
 
unsigned char * fTo
 
unsigned fMaxSize
 
unsigned fFrameSize
 
unsigned fNumTruncatedBytes
 
struct timeval fPresentationTime
 
unsigned fDurationInMicroseconds
 

Private Member Functions

virtual void doGetNextFrame ()
 
void afterGettingFrame1 (unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
void handleInputClosure1 ()
 
void analyzePAT (unsigned char *pkt, unsigned size)
 
void analyzePMT (unsigned char *pkt, unsigned size)
 
Boolean deliverIndexRecord ()
 
Boolean parseFrame ()
 
Boolean parseToNextCode (unsigned char &nextCode)
 
void compactParseBuffer ()
 
void addToTail (IndexRecord *newIndexRecord)
 
virtual Boolean isFramedSource () const
 
virtual Boolean isSource () const
 

Static Private Member Functions

static void afterGettingFrame (void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
static void handleInputClosure (void *clientData)
 

Private Attributes

Boolean fIsH264
 
Boolean fIsH265
 
unsigned long fInputTransportPacketCounter
 
unsigned fClosureNumber
 
u_int8_t fLastContinuityCounter
 
float fFirstPCR
 
float fLastPCR
 
Boolean fHaveSeenFirstPCR
 
u_int16_t fPMT_PID
 
u_int16_t fVideo_PID
 
unsigned char fInputBuffer [TRANSPORT_PACKET_SIZE]
 
unsigned char * fParseBuffer
 
unsigned fParseBufferSize
 
unsigned fParseBufferFrameStart
 
unsigned fParseBufferParseEnd
 
unsigned fParseBufferDataEnd
 
IndexRecord * fHeadIndexRecord
 
IndexRecord * fTailIndexRecord
 
afterGettingFuncfAfterGettingFunc
 
void * fAfterGettingClientData
 
onCloseFuncfOnCloseFunc
 
void * fOnCloseClientData
 
Boolean fIsCurrentlyAwaitingData
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Detailed Description

Definition at line 38 of file MPEG2IndexFromTransportStream.hh.

Member Typedef Documentation

◆ afterGettingFunc

typedef void() FramedSource::afterGettingFunc(void *clientData, unsigned frameSize, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
inherited

Definition at line 36 of file FramedSource.hh.

◆ onCloseFunc

typedef void() FramedSource::onCloseFunc(void *clientData)
inherited

Definition at line 40 of file FramedSource.hh.

Constructor & Destructor Documentation

◆ MPEG2IFrameIndexFromTransportStream()

MPEG2IFrameIndexFromTransportStream::MPEG2IFrameIndexFromTransportStream ( UsageEnvironment env,
FramedSource inputSource 
)
protected

◆ ~MPEG2IFrameIndexFromTransportStream()

virtual MPEG2IFrameIndexFromTransportStream::~MPEG2IFrameIndexFromTransportStream ( )
protectedvirtual

Member Function Documentation

◆ addToTail()

void MPEG2IFrameIndexFromTransportStream::addToTail ( IndexRecord *  newIndexRecord)
private

◆ afterGetting()

static void FramedSource::afterGetting ( FramedSource source)
staticinherited

◆ afterGettingFrame()

static void MPEG2IFrameIndexFromTransportStream::afterGettingFrame ( void *  clientData,
unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
staticprivate

◆ afterGettingFrame1()

void MPEG2IFrameIndexFromTransportStream::afterGettingFrame1 ( unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
private

◆ analyzePAT()

void MPEG2IFrameIndexFromTransportStream::analyzePAT ( unsigned char *  pkt,
unsigned  size 
)
private

◆ analyzePMT()

void MPEG2IFrameIndexFromTransportStream::analyzePMT ( unsigned char *  pkt,
unsigned  size 
)
private

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited

◆ compactParseBuffer()

void MPEG2IFrameIndexFromTransportStream::compactParseBuffer ( )
private

◆ createNew()

static MPEG2IFrameIndexFromTransportStream * MPEG2IFrameIndexFromTransportStream::createNew ( UsageEnvironment env,
FramedSource inputSource 
)
static

◆ deliverIndexRecord()

Boolean MPEG2IFrameIndexFromTransportStream::deliverIndexRecord ( )
private

◆ detachInputSource()

void FramedFilter::detachInputSource ( )
inherited

◆ doGetNextFrame()

virtual void MPEG2IFrameIndexFromTransportStream::doGetNextFrame ( )
privatevirtual

Implements FramedSource.

◆ doStopGettingFrames()

virtual void FramedFilter::doStopGettingFrames ( )
protectedvirtualinherited

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ getAttributes()

virtual void FramedFilter::getAttributes ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3ADUTranscoder.

◆ getNextFrame()

void FramedSource::getNextFrame ( unsigned char *  to,
unsigned  maxSize,
afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
inherited

◆ handleClosure() [1/2]

void FramedSource::handleClosure ( )
inherited

◆ handleClosure() [2/2]

static void FramedSource::handleClosure ( void *  clientData)
staticinherited

◆ handleInputClosure()

static void MPEG2IFrameIndexFromTransportStream::handleInputClosure ( void *  clientData)
staticprivate

◆ handleInputClosure1()

void MPEG2IFrameIndexFromTransportStream::handleInputClosure1 ( )
private

◆ inputSource()

FramedSource * FramedFilter::inputSource ( ) const
inlineinherited

Definition at line 30 of file FramedFilter.hh.

30{ return fInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49

References FramedFilter::fInputSource.

◆ isAMRAudioSource()

virtual Boolean MediaSource::isAMRAudioSource ( ) const
virtualinherited

Reimplemented in AMRAudioSource.

◆ isCurrentlyAwaitingData()

Boolean FramedSource::isCurrentlyAwaitingData ( ) const
inlineinherited

Definition at line 61 of file FramedSource.hh.

Boolean fIsCurrentlyAwaitingData
Definition: FramedSource.hh:92

References FramedSource::fIsCurrentlyAwaitingData.

◆ isDVVideoStreamFramer()

virtual Boolean MediaSource::isDVVideoStreamFramer ( ) const
virtualinherited

Reimplemented in DVVideoStreamFramer.

◆ isFramedSource()

virtual Boolean FramedSource::isFramedSource ( ) const
privatevirtualinherited

Reimplemented from MediaSource.

◆ isH264VideoStreamFramer()

virtual Boolean MediaSource::isH264VideoStreamFramer ( ) const
virtualinherited

◆ isH265VideoStreamFramer()

virtual Boolean MediaSource::isH265VideoStreamFramer ( ) const
virtualinherited

◆ isJPEGVideoSource()

virtual Boolean MediaSource::isJPEGVideoSource ( ) const
virtualinherited

Reimplemented in JPEGVideoSource.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isMPEG1or2VideoStreamFramer()

virtual Boolean MediaSource::isMPEG1or2VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG1or2VideoStreamFramer.

◆ isMPEG2TransportStreamMultiplexor()

virtual Boolean MediaSource::isMPEG2TransportStreamMultiplexor ( ) const
virtualinherited

◆ isMPEG4VideoStreamFramer()

virtual Boolean MediaSource::isMPEG4VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG4VideoStreamFramer.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTPSource()

virtual Boolean MediaSource::isRTPSource ( ) const
virtualinherited

Reimplemented in RTPSource.

◆ isRTSPClient()

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

◆ isRTSPServer()

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

◆ isServerMediaSession()

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

◆ isSink()

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

◆ isSource()

virtual Boolean MediaSource::isSource ( ) const
privatevirtualinherited

Reimplemented from Medium.

◆ lookupByName() [1/3]

static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited

◆ lookupByName() [2/3]

static Boolean FramedSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
FramedSource *&  resultSource 
)
staticinherited

◆ lookupByName() [3/3]

static Boolean MediaSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
MediaSource *&  resultSource 
)
staticinherited

◆ maxFrameSize()

virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited

◆ MIMEtype()

virtual char const * FramedFilter::MIMEtype ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in ADUFromMP3Source, and MP3FromADUSource.

◆ name()

char const * Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

61{return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:83

References Medium::fMediumName.

◆ nextTask()

TaskToken & Medium::nextTask ( )
inlineprotectedinherited

Definition at line 77 of file Media.hh.

77 {
78 return fNextTask;
79 }
TaskToken fNextTask
Definition: Media.hh:84

References Medium::fNextTask.

◆ parseFrame()

Boolean MPEG2IFrameIndexFromTransportStream::parseFrame ( )
private

◆ parseToNextCode()

Boolean MPEG2IFrameIndexFromTransportStream::parseToNextCode ( unsigned char &  nextCode)
private

◆ reassignInputSource()

void FramedFilter::reassignInputSource ( FramedSource newInputSource)
inlineinherited

Definition at line 32 of file FramedFilter.hh.

32{ fInputSource = newInputSource; }

References FramedFilter::fInputSource.

◆ stopGettingFrames()

void FramedSource::stopGettingFrames ( )
inherited

Field Documentation

◆ fAfterGettingClientData

void* FramedSource::fAfterGettingClientData
privateinherited

Definition at line 88 of file FramedSource.hh.

◆ fAfterGettingFunc

afterGettingFunc* FramedSource::fAfterGettingFunc
privateinherited

Definition at line 87 of file FramedSource.hh.

◆ fClosureNumber

unsigned MPEG2IFrameIndexFromTransportStream::fClosureNumber
private

Definition at line 79 of file MPEG2IndexFromTransportStream.hh.

◆ fDurationInMicroseconds

unsigned FramedSource::fDurationInMicroseconds
protectedinherited

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fFirstPCR

float MPEG2IFrameIndexFromTransportStream::fFirstPCR
private

Definition at line 81 of file MPEG2IndexFromTransportStream.hh.

◆ fFrameSize

unsigned FramedSource::fFrameSize
protectedinherited

◆ fHaveSeenFirstPCR

Boolean MPEG2IFrameIndexFromTransportStream::fHaveSeenFirstPCR
private

Definition at line 82 of file MPEG2IndexFromTransportStream.hh.

◆ fHeadIndexRecord

IndexRecord* MPEG2IFrameIndexFromTransportStream::fHeadIndexRecord
private

Definition at line 91 of file MPEG2IndexFromTransportStream.hh.

◆ fInputBuffer

unsigned char MPEG2IFrameIndexFromTransportStream::fInputBuffer[TRANSPORT_PACKET_SIZE]
private

Definition at line 85 of file MPEG2IndexFromTransportStream.hh.

◆ fInputSource

FramedSource* FramedFilter::fInputSource
protectedinherited

◆ fInputTransportPacketCounter

unsigned long MPEG2IFrameIndexFromTransportStream::fInputTransportPacketCounter
private

Definition at line 78 of file MPEG2IndexFromTransportStream.hh.

◆ fIsCurrentlyAwaitingData

Boolean FramedSource::fIsCurrentlyAwaitingData
privateinherited

Definition at line 92 of file FramedSource.hh.

Referenced by FramedSource::isCurrentlyAwaitingData().

◆ fIsH264

Boolean MPEG2IFrameIndexFromTransportStream::fIsH264
private

Definition at line 76 of file MPEG2IndexFromTransportStream.hh.

◆ fIsH265

Boolean MPEG2IFrameIndexFromTransportStream::fIsH265
private

Definition at line 77 of file MPEG2IndexFromTransportStream.hh.

◆ fLastContinuityCounter

u_int8_t MPEG2IFrameIndexFromTransportStream::fLastContinuityCounter
private

Definition at line 80 of file MPEG2IndexFromTransportStream.hh.

◆ fLastPCR

float MPEG2IFrameIndexFromTransportStream::fLastPCR
private

Definition at line 81 of file MPEG2IndexFromTransportStream.hh.

◆ fMaxSize

unsigned FramedSource::fMaxSize
protectedinherited

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fNumTruncatedBytes

unsigned FramedSource::fNumTruncatedBytes
protectedinherited

◆ fOnCloseClientData

void* FramedSource::fOnCloseClientData
privateinherited

Definition at line 90 of file FramedSource.hh.

◆ fOnCloseFunc

onCloseFunc* FramedSource::fOnCloseFunc
privateinherited

Definition at line 89 of file FramedSource.hh.

◆ fParseBuffer

unsigned char* MPEG2IFrameIndexFromTransportStream::fParseBuffer
private

Definition at line 86 of file MPEG2IndexFromTransportStream.hh.

◆ fParseBufferDataEnd

unsigned MPEG2IFrameIndexFromTransportStream::fParseBufferDataEnd
private

Definition at line 90 of file MPEG2IndexFromTransportStream.hh.

◆ fParseBufferFrameStart

unsigned MPEG2IFrameIndexFromTransportStream::fParseBufferFrameStart
private

Definition at line 88 of file MPEG2IndexFromTransportStream.hh.

◆ fParseBufferParseEnd

unsigned MPEG2IFrameIndexFromTransportStream::fParseBufferParseEnd
private

Definition at line 89 of file MPEG2IndexFromTransportStream.hh.

◆ fParseBufferSize

unsigned MPEG2IFrameIndexFromTransportStream::fParseBufferSize
private

Definition at line 87 of file MPEG2IndexFromTransportStream.hh.

◆ fPMT_PID

u_int16_t MPEG2IFrameIndexFromTransportStream::fPMT_PID
private

Definition at line 83 of file MPEG2IndexFromTransportStream.hh.

◆ fPresentationTime

struct timeval FramedSource::fPresentationTime
protectedinherited

◆ fTailIndexRecord

IndexRecord* MPEG2IFrameIndexFromTransportStream::fTailIndexRecord
private

Definition at line 92 of file MPEG2IndexFromTransportStream.hh.

◆ fTo

unsigned char* FramedSource::fTo
protectedinherited

◆ fVideo_PID

u_int16_t MPEG2IFrameIndexFromTransportStream::fVideo_PID
private

Definition at line 83 of file MPEG2IndexFromTransportStream.hh.


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