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

#include <MPEG2TransportStreamFromESSource.hh>

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

Public Types

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

Public Member Functions

void addNewVideoSource (FramedSource *inputSource, int mpegVersion, int16_t PID=-1)
 
void addNewAudioSource (FramedSource *inputSource, int mpegVersion, int16_t PID=-1)
 
void setTimedSegmentation (unsigned segmentationDuration, onEndOfSegmentFunc *onEndOfSegmentFunc=NULL, void *onEndOfSegmentClientData=NULL)
 
double currentSegmentDuration () const
 
Boolean canDeliverNewFrameImmediately () const
 
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 void getAttributes () const
 
virtual char const * MIMEtype () 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
 

Static Public Member Functions

static MPEG2TransportStreamFromESSourcecreateNew (UsageEnvironment &env)
 
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)
 

Static Public Attributes

static unsigned maxInputESFrameSize
 

Protected Member Functions

 MPEG2TransportStreamFromESSource (UsageEnvironment &env)
 
virtual ~MPEG2TransportStreamFromESSource ()
 
void addNewInputSource (FramedSource *inputSource, u_int8_t streamId, int mpegVersion, int16_t PID=-1)
 
void handleNewBuffer (unsigned char *buffer, unsigned bufferSize, int mpegVersion, MPEG1or2Demux::SCR scr, int16_t PID=-1)
 
TaskTokennextTask ()
 

Protected Attributes

Boolean fHaveVideoStreams
 
unsigned char * fTo
 
unsigned fMaxSize
 
unsigned fFrameSize
 
unsigned fNumTruncatedBytes
 
struct timeval fPresentationTime
 
unsigned fDurationInMicroseconds
 

Private Member Functions

virtual void doStopGettingFrames ()
 
virtual void awaitNewBuffer (unsigned char *oldBuffer)
 

Private Attributes

class InputESSourceRecordfInputSources
 
unsigned fVideoSourceCounter
 
unsigned fAudioSourceCounter
 
Boolean fAwaitingBackgroundDelivery
 

Friends

class InputESSourceRecord
 

Detailed Description

Definition at line 29 of file MPEG2TransportStreamFromESSource.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.

◆ onEndOfSegmentFunc

typedef void() MPEG2TransportStreamMultiplexor::onEndOfSegmentFunc(void *clientData, double segmentDuration)
inherited

Definition at line 36 of file MPEG2TransportStreamMultiplexor.hh.

Constructor & Destructor Documentation

◆ MPEG2TransportStreamFromESSource()

MPEG2TransportStreamFromESSource::MPEG2TransportStreamFromESSource ( UsageEnvironment env)
protected

◆ ~MPEG2TransportStreamFromESSource()

virtual MPEG2TransportStreamFromESSource::~MPEG2TransportStreamFromESSource ( )
protectedvirtual

Member Function Documentation

◆ addNewAudioSource()

void MPEG2TransportStreamFromESSource::addNewAudioSource ( FramedSource inputSource,
int  mpegVersion,
int16_t  PID = -1 
)

◆ addNewInputSource()

void MPEG2TransportStreamFromESSource::addNewInputSource ( FramedSource inputSource,
u_int8_t  streamId,
int  mpegVersion,
int16_t  PID = -1 
)
protected

◆ addNewVideoSource()

void MPEG2TransportStreamFromESSource::addNewVideoSource ( FramedSource inputSource,
int  mpegVersion,
int16_t  PID = -1 
)

◆ afterGetting()

static void FramedSource::afterGetting ( FramedSource source)
staticinherited

◆ awaitNewBuffer()

virtual void MPEG2TransportStreamFromESSource::awaitNewBuffer ( unsigned char *  oldBuffer)
privatevirtual

◆ canDeliverNewFrameImmediately()

Boolean MPEG2TransportStreamMultiplexor::canDeliverNewFrameImmediately ( ) const
inlineinherited

◆ close() [1/2]

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

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ createNew()

static MPEG2TransportStreamFromESSource* MPEG2TransportStreamFromESSource::createNew ( UsageEnvironment env)
static

◆ currentSegmentDuration()

double MPEG2TransportStreamMultiplexor::currentSegmentDuration ( ) const
inlineinherited

◆ doStopGettingFrames()

virtual void MPEG2TransportStreamFromESSource::doStopGettingFrames ( )
privatevirtual

Reimplemented from FramedSource.

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ getAttributes()

virtual void MediaSource::getAttributes ( ) const
virtualinherited

◆ getNextFrame()

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

◆ handleClosure() [1/2]

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

◆ handleClosure() [2/2]

void FramedSource::handleClosure ( )
inherited

◆ handleNewBuffer()

void MPEG2TransportStreamMultiplexor::handleNewBuffer ( unsigned char *  buffer,
unsigned  bufferSize,
int  mpegVersion,
MPEG1or2Demux::SCR  scr,
int16_t  PID = -1 
)
protectedinherited

◆ 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.

◆ 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.

◆ 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.

◆ lookupByName() [1/3]

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

◆ lookupByName() [2/3]

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

◆ lookupByName() [3/3]

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

◆ maxFrameSize()

virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited

◆ MIMEtype()

virtual char const* MediaSource::MIMEtype ( ) const
virtualinherited

◆ 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.

◆ setTimedSegmentation()

void MPEG2TransportStreamMultiplexor::setTimedSegmentation ( unsigned  segmentationDuration,
onEndOfSegmentFunc onEndOfSegmentFunc = NULL,
void *  onEndOfSegmentClientData = NULL 
)
inherited

◆ stopGettingFrames()

void FramedSource::stopGettingFrames ( )
inherited

Friends And Related Function Documentation

◆ InputESSourceRecord

friend class InputESSourceRecord
friend

Definition at line 60 of file MPEG2TransportStreamFromESSource.hh.

Field Documentation

◆ counter

unsigned MPEG2TransportStreamMultiplexor::counter
inherited

Definition at line 91 of file MPEG2TransportStreamMultiplexor.hh.

◆ fAudioSourceCounter

unsigned MPEG2TransportStreamFromESSource::fAudioSourceCounter
private

Definition at line 62 of file MPEG2TransportStreamFromESSource.hh.

◆ fAwaitingBackgroundDelivery

Boolean MPEG2TransportStreamFromESSource::fAwaitingBackgroundDelivery
private

Definition at line 63 of file MPEG2TransportStreamFromESSource.hh.

◆ fDurationInMicroseconds

unsigned FramedSource::fDurationInMicroseconds
protectedinherited

◆ fFrameSize

unsigned FramedSource::fFrameSize
protectedinherited

◆ fHaveVideoStreams

Boolean MPEG2TransportStreamMultiplexor::fHaveVideoStreams
protectedinherited

Definition at line 83 of file MPEG2TransportStreamMultiplexor.hh.

◆ fInputSources

class InputESSourceRecord* MPEG2TransportStreamFromESSource::fInputSources
private

Definition at line 61 of file MPEG2TransportStreamFromESSource.hh.

◆ fMaxSize

unsigned FramedSource::fMaxSize
protectedinherited

◆ fNumTruncatedBytes

unsigned FramedSource::fNumTruncatedBytes
protectedinherited

◆ fPresentationTime

struct timeval FramedSource::fPresentationTime
protectedinherited

◆ fTo

unsigned char* FramedSource::fTo
protectedinherited

◆ fVideoSourceCounter

unsigned MPEG2TransportStreamFromESSource::fVideoSourceCounter
private

Definition at line 62 of file MPEG2TransportStreamFromESSource.hh.

◆ maxInputESFrameSize

unsigned MPEG2TransportStreamFromESSource::maxInputESFrameSize
static

Definition at line 43 of file MPEG2TransportStreamFromESSource.hh.

◆ streamType

u_int8_t MPEG2TransportStreamMultiplexor::streamType
inherited

Definition at line 92 of file MPEG2TransportStreamMultiplexor.hh.


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