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

#include <MPEG4VideoStreamFramer.hh>

Inheritance diagram for MPEG4VideoStreamFramer:
Inheritance graph
[legend]
Collaboration diagram for MPEG4VideoStreamFramer:
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_int8_t profile_and_level_indication () const
 
unsigned char * getConfigBytes (unsigned &numBytes) const
 
void setConfigInfo (u_int8_t profileAndLevelIndication, char const *configStr)
 
BooleanpictureEndMarker ()
 
void flushInput ()
 
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 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 MPEG4VideoStreamFramercreateNew (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

 MPEG4VideoStreamFramer (UsageEnvironment &env, FramedSource *inputSource, Boolean createParser=True)
 
virtual ~MPEG4VideoStreamFramer ()
 
void startNewConfig ()
 
void appendToNewConfig (unsigned char *newConfigBytes, unsigned numNewBytes)
 
void completeNewConfig ()
 
void computePresentationTime (unsigned numAdditionalPictures)
 
void setTimeCode (unsigned hours, unsigned minutes, unsigned seconds, unsigned pictures, unsigned picturesSinceLastGOP)
 
virtual void doGetNextFrame ()
 
virtual void doStopGettingFrames ()
 
virtual char const * MIMEtype () const
 
virtual void getAttributes () const
 
TaskTokennextTask ()
 

Protected Attributes

u_int8_t fProfileAndLevelIndication
 
unsigned char * fConfigBytes
 
unsigned fNumConfigBytes
 
double fFrameRate
 
unsigned fPictureCount
 
Boolean fPictureEndMarker
 
struct timeval fPresentationTimeBase
 
class MPEGVideoStreamParserfParser
 
FramedSourcefInputSource
 
unsigned char * fTo
 
unsigned fMaxSize
 
unsigned fFrameSize
 
unsigned fNumTruncatedBytes
 
struct timeval fPresentationTime
 
unsigned fDurationInMicroseconds
 

Private Member Functions

virtual Boolean isMPEG4VideoStreamFramer () const
 

Private Attributes

unsigned char * fNewConfigBytes
 
unsigned fNumNewConfigBytes
 

Friends

class MPEG4VideoStreamParser
 

Detailed Description

Definition at line 33 of file MPEG4VideoStreamFramer.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

◆ MPEG4VideoStreamFramer()

MPEG4VideoStreamFramer::MPEG4VideoStreamFramer ( UsageEnvironment env,
FramedSource inputSource,
Boolean  createParser = True 
)
protected

◆ ~MPEG4VideoStreamFramer()

virtual MPEG4VideoStreamFramer::~MPEG4VideoStreamFramer ( )
protectedvirtual

Member Function Documentation

◆ afterGetting()

static void FramedSource::afterGetting ( FramedSource source)
staticinherited

◆ appendToNewConfig()

void MPEG4VideoStreamFramer::appendToNewConfig ( unsigned char *  newConfigBytes,
unsigned  numNewBytes 
)
protected

◆ close() [1/2]

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

◆ close() [2/2]

static void Medium::close ( Medium medium)
staticinherited

◆ completeNewConfig()

void MPEG4VideoStreamFramer::completeNewConfig ( )
protected

◆ computePresentationTime()

void MPEGVideoStreamFramer::computePresentationTime ( unsigned  numAdditionalPictures)
protectedinherited

◆ createNew()

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

◆ detachInputSource()

void FramedFilter::detachInputSource ( )
inherited

◆ doGetNextFrame()

virtual void MPEGVideoStreamFramer::doGetNextFrame ( )
protectedvirtualinherited

◆ doStopGettingFrames()

virtual void MPEGVideoStreamFramer::doStopGettingFrames ( )
protectedvirtualinherited

Reimplemented from FramedFilter.

◆ envir()

UsageEnvironment& Medium::envir ( ) const
inlineinherited

◆ flushInput()

void MPEGVideoStreamFramer::flushInput ( )
inherited

◆ getAttributes()

virtual void FramedFilter::getAttributes ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3ADUTranscoder.

◆ getConfigBytes()

unsigned char* MPEG4VideoStreamFramer::getConfigBytes ( unsigned &  numBytes) const

◆ 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

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

◆ 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 MPEG4VideoStreamFramer::isMPEG4VideoStreamFramer ( ) const
privatevirtual

Reimplemented from MediaSource.

◆ 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* FramedFilter::MIMEtype ( ) const
protectedvirtualinherited

Reimplemented from MediaSource.

Reimplemented in MP3FromADUSource, and ADUFromMP3Source.

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

◆ pictureEndMarker()

Boolean& MPEGVideoStreamFramer::pictureEndMarker ( )
inlineinherited

◆ profile_and_level_indication()

u_int8_t MPEG4VideoStreamFramer::profile_and_level_indication ( ) const
inline

Definition at line 38 of file MPEG4VideoStreamFramer.hh.

38  {
40  }

References fProfileAndLevelIndication.

◆ reassignInputSource()

void FramedFilter::reassignInputSource ( FramedSource newInputSource)
inlineinherited

Definition at line 32 of file FramedFilter.hh.

32 { fInputSource = newInputSource; }
FramedSource * fInputSource
Definition: FramedFilter.hh:49

References FramedFilter::fInputSource.

◆ setConfigInfo()

void MPEG4VideoStreamFramer::setConfigInfo ( u_int8_t  profileAndLevelIndication,
char const *  configStr 
)

◆ setTimeCode()

void MPEGVideoStreamFramer::setTimeCode ( unsigned  hours,
unsigned  minutes,
unsigned  seconds,
unsigned  pictures,
unsigned  picturesSinceLastGOP 
)
protectedinherited

◆ startNewConfig()

void MPEG4VideoStreamFramer::startNewConfig ( )
protected

◆ stopGettingFrames()

void FramedSource::stopGettingFrames ( )
inherited

Friends And Related Function Documentation

◆ MPEG4VideoStreamParser

friend class MPEG4VideoStreamParser
friend

Definition at line 72 of file MPEG4VideoStreamFramer.hh.

Field Documentation

◆ fConfigBytes

unsigned char* MPEG4VideoStreamFramer::fConfigBytes
protected

Definition at line 66 of file MPEG4VideoStreamFramer.hh.

◆ fDurationInMicroseconds

unsigned FramedSource::fDurationInMicroseconds
protectedinherited

◆ fFrameRate

double MPEGVideoStreamFramer::fFrameRate
protectedinherited

Definition at line 68 of file MPEGVideoStreamFramer.hh.

◆ fFrameSize

unsigned FramedSource::fFrameSize
protectedinherited

◆ fInputSource

FramedSource* FramedFilter::fInputSource
protectedinherited

◆ fMaxSize

unsigned FramedSource::fMaxSize
protectedinherited

◆ fNewConfigBytes

unsigned char* MPEG4VideoStreamFramer::fNewConfigBytes
private

Definition at line 70 of file MPEG4VideoStreamFramer.hh.

◆ fNumConfigBytes

unsigned MPEG4VideoStreamFramer::fNumConfigBytes
protected

Definition at line 67 of file MPEG4VideoStreamFramer.hh.

◆ fNumNewConfigBytes

unsigned MPEG4VideoStreamFramer::fNumNewConfigBytes
private

Definition at line 71 of file MPEG4VideoStreamFramer.hh.

◆ fNumTruncatedBytes

unsigned FramedSource::fNumTruncatedBytes
protectedinherited

◆ fParser

class MPEGVideoStreamParser* MPEGVideoStreamFramer::fParser
protectedinherited

Definition at line 74 of file MPEGVideoStreamFramer.hh.

◆ fPictureCount

unsigned MPEGVideoStreamFramer::fPictureCount
protectedinherited

Definition at line 69 of file MPEGVideoStreamFramer.hh.

◆ fPictureEndMarker

Boolean MPEGVideoStreamFramer::fPictureEndMarker
protectedinherited

Definition at line 70 of file MPEGVideoStreamFramer.hh.

Referenced by MPEGVideoStreamFramer::pictureEndMarker().

◆ fPresentationTime

struct timeval FramedSource::fPresentationTime
protectedinherited

◆ fPresentationTimeBase

struct timeval MPEGVideoStreamFramer::fPresentationTimeBase
protectedinherited

Definition at line 71 of file MPEGVideoStreamFramer.hh.

◆ fProfileAndLevelIndication

u_int8_t MPEG4VideoStreamFramer::fProfileAndLevelIndication
protected

Definition at line 65 of file MPEG4VideoStreamFramer.hh.

Referenced by profile_and_level_indication().

◆ fTo

unsigned char* FramedSource::fTo
protectedinherited

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