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

#include <MPEG2TransportStreamFramer.hh>

Inheritance diagram for MPEG2TransportStreamFramer:
Inheritance graph
[legend]
Collaboration diagram for MPEG2TransportStreamFramer:
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

u_int64_t tsPacketCount () const
 
void changeInputSource (FramedSource *newInputSource)
 
void clearPIDStatusTable ()
 
void setNumTSPacketsToStream (unsigned long numTSRecordsToStream)
 
void setPCRLimit (float pcrLimit)
 
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
 
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
 
virtual Boolean isDarwinInjector () const
 

Static Public Member Functions

static MPEG2TransportStreamFramercreateNew (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

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

Protected Attributes

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

Private Member Functions

virtual void doGetNextFrame ()
 
virtual void doStopGettingFrames ()
 
void afterGettingFrame1 (unsigned frameSize, struct timeval presentationTime)
 
Boolean updateTSPacketDurationEstimate (unsigned char *pkt, double timeNow)
 

Static Private Member Functions

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

Private Attributes

u_int64_t fTSPacketCount
 
double fTSPacketDurationEstimate
 
HashTablefPIDStatusTable
 
u_int64_t fTSPCRCount
 
Boolean fLimitNumTSPacketsToStream
 
unsigned long fNumTSPacketsToStream
 
Boolean fLimitTSPacketsToStreamByPCR
 
float fPCRLimit
 

Detailed Description

Definition at line 34 of file MPEG2TransportStreamFramer.hh.

Member Typedef Documentation

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

Definition at line 36 of file FramedSource.hh.

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

Definition at line 40 of file FramedSource.hh.

Constructor & Destructor Documentation

MPEG2TransportStreamFramer::MPEG2TransportStreamFramer ( UsageEnvironment env,
FramedSource inputSource 
)
protected
virtual MPEG2TransportStreamFramer::~MPEG2TransportStreamFramer ( )
protectedvirtual

Member Function Documentation

static void FramedSource::afterGetting ( FramedSource source)
staticinherited
static void MPEG2TransportStreamFramer::afterGettingFrame ( void *  clientData,
unsigned  frameSize,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
staticprivate
void MPEG2TransportStreamFramer::afterGettingFrame1 ( unsigned  frameSize,
struct timeval  presentationTime 
)
private
void MPEG2TransportStreamFramer::changeInputSource ( FramedSource newInputSource)
inline

Definition at line 41 of file MPEG2TransportStreamFramer.hh.

References FramedFilter::fInputSource.

41 { fInputSource = newInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49
void MPEG2TransportStreamFramer::clearPIDStatusTable ( )
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
static MPEG2TransportStreamFramer* MPEG2TransportStreamFramer::createNew ( UsageEnvironment env,
FramedSource inputSource 
)
static
void FramedFilter::detachInputSource ( )
inherited
virtual void MPEG2TransportStreamFramer::doGetNextFrame ( )
privatevirtual

Implements FramedSource.

virtual void MPEG2TransportStreamFramer::doStopGettingFrames ( )
privatevirtual

Reimplemented from FramedFilter.

UsageEnvironment& Medium::envir ( ) const
inlineinherited

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTPInterface::envir(), RTSPServer::RTSPClientConnection::envir(), and RTSPServer::RTSPClientSession::envir().

59 {return fEnviron;}
UsageEnvironment & fEnviron
Definition: Media.hh:83
virtual void FramedFilter::getAttributes ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3ADUTranscoder.

void FramedSource::getNextFrame ( unsigned char *  to,
unsigned  maxSize,
afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
onCloseFunc onCloseFunc,
void *  onCloseClientData 
)
inherited
static void FramedSource::handleClosure ( void *  clientData)
staticinherited
void FramedSource::handleClosure ( )
inherited
FramedSource* FramedFilter::inputSource ( ) const
inlineinherited

Definition at line 30 of file FramedFilter.hh.

References FramedFilter::fInputSource.

30 { return fInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49
virtual Boolean MediaSource::isAMRAudioSource ( ) const
virtualinherited

Reimplemented in AMRAudioSource.

Boolean FramedSource::isCurrentlyAwaitingData ( ) const
inlineinherited

Definition at line 61 of file FramedSource.hh.

References FramedSource::fIsCurrentlyAwaitingData.

Boolean fIsCurrentlyAwaitingData
Definition: FramedSource.hh:92
virtual Boolean Medium::isDarwinInjector ( ) const
virtualinherited

Reimplemented in DarwinInjector.

virtual Boolean MediaSource::isDVVideoStreamFramer ( ) const
virtualinherited

Reimplemented in DVVideoStreamFramer.

virtual Boolean MediaSource::isH264VideoStreamFramer ( ) const
virtualinherited
virtual Boolean MediaSource::isH265VideoStreamFramer ( ) const
virtualinherited
virtual Boolean MediaSource::isJPEGVideoSource ( ) const
virtualinherited

Reimplemented in JPEGVideoSource.

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

virtual Boolean MediaSource::isMPEG1or2VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG1or2VideoStreamFramer.

virtual Boolean MediaSource::isMPEG4VideoStreamFramer ( ) const
virtualinherited

Reimplemented in MPEG4VideoStreamFramer.

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

virtual Boolean MediaSource::isRTPSource ( ) const
virtualinherited

Reimplemented in RTPSource.

virtual Boolean Medium::isRTSPClient ( ) const
virtualinherited

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer ( ) const
virtualinherited

Reimplemented in RTSPServer.

virtual Boolean Medium::isServerMediaSession ( ) const
virtualinherited

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isSink ( ) const
virtualinherited

Reimplemented in MediaSink.

static Boolean MediaSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
MediaSource *&  resultSource 
)
staticinherited
static Boolean FramedSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
FramedSource *&  resultSource 
)
staticinherited
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited
virtual char const* FramedFilter::MIMEtype ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3FromADUSource, and ADUFromMP3Source.

char const* Medium::name ( ) const
inlineinherited

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

61 {return fMediumName;}
char fMediumName[mediumNameMaxLen]
Definition: Media.hh:84
TaskToken& Medium::nextTask ( )
inlineprotectedinherited

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

78  {
79  return fNextTask;
80  }
TaskToken fNextTask
Definition: Media.hh:85
void FramedFilter::reassignInputSource ( FramedSource newInputSource)
inlineinherited

Definition at line 32 of file FramedFilter.hh.

References FramedFilter::fInputSource.

32 { fInputSource = newInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49
void MPEG2TransportStreamFramer::setNumTSPacketsToStream ( unsigned long  numTSRecordsToStream)
void MPEG2TransportStreamFramer::setPCRLimit ( float  pcrLimit)
void FramedSource::stopGettingFrames ( )
inherited
u_int64_t MPEG2TransportStreamFramer::tsPacketCount ( ) const
inline

Definition at line 39 of file MPEG2TransportStreamFramer.hh.

References fTSPacketCount.

Boolean MPEG2TransportStreamFramer::updateTSPacketDurationEstimate ( unsigned char *  pkt,
double  timeNow 
)
private

Field Documentation

unsigned FramedSource::fDurationInMicroseconds
protectedinherited
unsigned FramedSource::fFrameSize
protectedinherited

Definition at line 77 of file FramedSource.hh.

Referenced by OggDemuxedTrack::frameSize(), and MatroskaDemuxedTrack::frameSize().

FramedSource* FramedFilter::fInputSource
protectedinherited
Boolean MPEG2TransportStreamFramer::fLimitNumTSPacketsToStream
private

Definition at line 72 of file MPEG2TransportStreamFramer.hh.

Boolean MPEG2TransportStreamFramer::fLimitTSPacketsToStreamByPCR
private

Definition at line 74 of file MPEG2TransportStreamFramer.hh.

unsigned FramedSource::fMaxSize
protectedinherited

Definition at line 76 of file FramedSource.hh.

Referenced by OggDemuxedTrack::maxSize(), and MatroskaDemuxedTrack::maxSize().

unsigned FramedSource::fNumTruncatedBytes
protectedinherited
unsigned long MPEG2TransportStreamFramer::fNumTSPacketsToStream
private

Definition at line 73 of file MPEG2TransportStreamFramer.hh.

float MPEG2TransportStreamFramer::fPCRLimit
private

Definition at line 75 of file MPEG2TransportStreamFramer.hh.

HashTable* MPEG2TransportStreamFramer::fPIDStatusTable
private

Definition at line 70 of file MPEG2TransportStreamFramer.hh.

struct timeval FramedSource::fPresentationTime
protectedinherited
unsigned char* FramedSource::fTo
protectedinherited

Definition at line 75 of file FramedSource.hh.

Referenced by OggDemuxedTrack::to(), and MatroskaDemuxedTrack::to().

u_int64_t MPEG2TransportStreamFramer::fTSPacketCount
private

Definition at line 68 of file MPEG2TransportStreamFramer.hh.

Referenced by tsPacketCount().

double MPEG2TransportStreamFramer::fTSPacketDurationEstimate
private

Definition at line 69 of file MPEG2TransportStreamFramer.hh.

u_int64_t MPEG2TransportStreamFramer::fTSPCRCount
private

Definition at line 71 of file MPEG2TransportStreamFramer.hh.


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