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

#include <MPEG4GenericRTPSource.hh>

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

Boolean curPacketMarkerBit () const
 
unsigned char rtpPayloadFormat () const
 
virtual Boolean hasBeenSynchronizedUsingRTCP ()
 
GroupsockRTPgs () const
 
u_int32_t SSRC () const
 
void registerForMultiplexedRTCPPackets (class RTCPInstance *rtcpInstance)
 
void deregisterForMultiplexedRTCPPackets ()
 
unsigned timestampFrequency () const
 
RTPReceptionStatsDBreceptionStatsDB () const
 
u_int32_t lastReceivedSSRC () const
 
BooleanenableRTCPReports ()
 
Boolean const & enableRTCPReports () const
 
void setStreamSocket (int sockNum, unsigned char streamChannelId)
 
void setAuxilliaryReadHandler (AuxHandlerFunc *handlerFunc, void *handlerClientData)
 
u_int16_t curPacketRTPSeqNum () 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 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 MPEG4GenericRTPSourcecreateNew (UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *mediumName, char const *mode, unsigned sizeLength, unsigned indexLength, unsigned indexDeltaLength)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sourceName, RTPSource *&resultSource)
 
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

virtual ~MPEG4GenericRTPSource ()
 
virtual Boolean packetIsUsableInJitterCalculation (unsigned char *packet, unsigned packetSize)
 
virtual void doStopGettingFrames ()
 
TaskTokennextTask ()
 

Protected Attributes

Boolean fCurrentPacketBeginsFrame
 
Boolean fCurrentPacketCompletesFrame
 
RTPInterface fRTPInterface
 
u_int16_t fCurPacketRTPSeqNum
 
u_int32_t fCurPacketRTPTimestamp
 
Boolean fCurPacketMarkerBit
 
Boolean fCurPacketHasBeenSynchronizedUsingRTCP
 
u_int32_t fLastReceivedSSRC
 
class RTCPInstancefRTCPInstanceForMultiplexedRTCPPackets
 
unsigned char * fTo
 
unsigned fMaxSize
 
unsigned fFrameSize
 
unsigned fNumTruncatedBytes
 
struct timeval fPresentationTime
 
unsigned fDurationInMicroseconds
 

Private Member Functions

 MPEG4GenericRTPSource (UsageEnvironment &env, Groupsock *RTPgs, unsigned char rtpPayloadFormat, unsigned rtpTimestampFrequency, char const *mediumName, char const *mode, unsigned sizeLength, unsigned indexLength, unsigned indexDeltaLength)
 
virtual Boolean processSpecialHeader (BufferedPacket *packet, unsigned &resultSpecialHeaderSize)
 
virtual char const * MIMEtype () const
 

Private Attributes

char * fMIMEType
 
char * fMode
 
unsigned fSizeLength
 
unsigned fIndexLength
 
unsigned fIndexDeltaLength
 
unsigned fNumAUHeaders
 
unsigned fNextAUHeader
 
struct AUHeader * fAUHeaders
 

Friends

class MPEG4GenericBufferedPacket
 

Detailed Description

Definition at line 28 of file MPEG4GenericRTPSource.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

virtual MPEG4GenericRTPSource::~MPEG4GenericRTPSource ( )
protectedvirtual
MPEG4GenericRTPSource::MPEG4GenericRTPSource ( UsageEnvironment env,
Groupsock RTPgs,
unsigned char  rtpPayloadFormat,
unsigned  rtpTimestampFrequency,
char const *  mediumName,
char const *  mode,
unsigned  sizeLength,
unsigned  indexLength,
unsigned  indexDeltaLength 
)
private

Member Function Documentation

static void FramedSource::afterGetting ( FramedSource source)
staticinherited
static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
)
staticinherited
static void Medium::close ( Medium medium)
staticinherited
static MPEG4GenericRTPSource* MPEG4GenericRTPSource::createNew ( UsageEnvironment env,
Groupsock RTPgs,
unsigned char  rtpPayloadFormat,
unsigned  rtpTimestampFrequency,
char const *  mediumName,
char const *  mode,
unsigned  sizeLength,
unsigned  indexLength,
unsigned  indexDeltaLength 
)
static
Boolean RTPSource::curPacketMarkerBit ( ) const
inlineinherited

Definition at line 38 of file RTPSource.hh.

References RTPSource::fCurPacketMarkerBit.

38 { return fCurPacketMarkerBit; }
Boolean fCurPacketMarkerBit
Definition: RTPSource.hh:97
u_int16_t RTPSource::curPacketRTPSeqNum ( ) const
inlineinherited

Definition at line 83 of file RTPSource.hh.

References RTPSource::fCurPacketRTPSeqNum.

83 { return fCurPacketRTPSeqNum; }
u_int16_t fCurPacketRTPSeqNum
Definition: RTPSource.hh:95
void RTPSource::deregisterForMultiplexedRTCPPackets ( )
inlineinherited

Definition at line 55 of file RTPSource.hh.

References NULL, and RTPSource::registerForMultiplexedRTCPPackets().

#define NULL
void registerForMultiplexedRTCPPackets(class RTCPInstance *rtcpInstance)
Definition: RTPSource.hh:52
virtual void MultiFramedRTPSource::doStopGettingFrames ( )
protectedvirtualinherited

Reimplemented from FramedSource.

Boolean& RTPSource::enableRTCPReports ( )
inlineinherited

Definition at line 66 of file RTPSource.hh.

References RTPSource::fEnableRTCPReports.

66 { return fEnableRTCPReports; }
Boolean fEnableRTCPReports
Definition: RTPSource.hh:111
Boolean const& RTPSource::enableRTCPReports ( ) const
inlineinherited

Definition at line 67 of file RTPSource.hh.

References RTPSource::fEnableRTCPReports.

67 { return fEnableRTCPReports; }
Boolean fEnableRTCPReports
Definition: RTPSource.hh:111
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
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
virtual Boolean RTPSource::hasBeenSynchronizedUsingRTCP ( )
virtualinherited
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 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.

u_int32_t RTPSource::lastReceivedSSRC ( ) const
inlineinherited

Definition at line 63 of file RTPSource.hh.

References RTPSource::fLastReceivedSSRC.

63 { return fLastReceivedSSRC; }
u_int32_t fLastReceivedSSRC
Definition: RTPSource.hh:99
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 RTPSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
RTPSource *&  resultSource 
)
staticinherited
static Boolean Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited
virtual char const* MPEG4GenericRTPSource::MIMEtype ( ) const
privatevirtual

Reimplemented from MediaSource.

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
virtual Boolean MultiFramedRTPSource::packetIsUsableInJitterCalculation ( unsigned char *  packet,
unsigned  packetSize 
)
protectedvirtualinherited

Reimplemented in MPEG1or2VideoRTPSource.

virtual Boolean MPEG4GenericRTPSource::processSpecialHeader ( BufferedPacket packet,
unsigned &  resultSpecialHeaderSize 
)
privatevirtual

Reimplemented from MultiFramedRTPSource.

RTPReceptionStatsDB& RTPSource::receptionStatsDB ( ) const
inlineinherited

Definition at line 59 of file RTPSource.hh.

References RTPSource::fReceptionStatsDB.

59  {
60  return *fReceptionStatsDB;
61  }
RTPReceptionStatsDB * fReceptionStatsDB
Definition: RTPSource.hh:113
void RTPSource::registerForMultiplexedRTCPPackets ( class RTCPInstance rtcpInstance)
inlineinherited

Definition at line 52 of file RTPSource.hh.

References RTPSource::fRTCPInstanceForMultiplexedRTCPPackets.

Referenced by RTPSource::deregisterForMultiplexedRTCPPackets().

52  {
54  }
class RTCPInstance * fRTCPInstanceForMultiplexedRTCPPackets
Definition: RTPSource.hh:100
Groupsock* RTPSource::RTPgs ( ) const
inlineinherited

Definition at line 44 of file RTPSource.hh.

References RTPSource::fRTPInterface, and RTPInterface::gs().

44 { return fRTPInterface.gs(); }
Groupsock * gs() const
Definition: RTPInterface.hh:60
RTPInterface fRTPInterface
Definition: RTPSource.hh:94
unsigned char RTPSource::rtpPayloadFormat ( ) const
inlineinherited

Definition at line 40 of file RTPSource.hh.

References RTPSource::fRTPPayloadFormat.

40 { return fRTPPayloadFormat; }
unsigned char fRTPPayloadFormat
Definition: RTPSource.hh:108
void RTPSource::setAuxilliaryReadHandler ( AuxHandlerFunc handlerFunc,
void *  handlerClientData 
)
inlineinherited

Definition at line 74 of file RTPSource.hh.

References RTPSource::fRTPInterface, and RTPInterface::setAuxilliaryReadHandler().

75  {
77  handlerClientData);
78  }
void setAuxilliaryReadHandler(AuxHandlerFunc *handlerFunc, void *handlerClientData)
Definition: RTPInterface.hh:86
RTPInterface fRTPInterface
Definition: RTPSource.hh:94
void RTPSource::setStreamSocket ( int  sockNum,
unsigned char  streamChannelId 
)
inlineinherited

Definition at line 69 of file RTPSource.hh.

References RTPSource::fRTPInterface, and RTPInterface::setStreamSocket().

69  {
70  // hack to allow sending RTP over TCP (RFC 2236, section 10.12)
71  fRTPInterface.setStreamSocket(sockNum, streamChannelId);
72  }
void setStreamSocket(int sockNum, unsigned char streamChannelId)
RTPInterface fRTPInterface
Definition: RTPSource.hh:94
u_int32_t RTPSource::SSRC ( ) const
inlineinherited

Definition at line 49 of file RTPSource.hh.

References RTPSource::fSSRC.

49 { return fSSRC; }
u_int32_t fSSRC
Definition: RTPSource.hh:110
void FramedSource::stopGettingFrames ( )
inherited
unsigned RTPSource::timestampFrequency ( ) const
inlineinherited

Definition at line 57 of file RTPSource.hh.

References RTPSource::fTimestampFrequency.

57 {return fTimestampFrequency;}
unsigned fTimestampFrequency
Definition: RTPSource.hh:109

Friends And Related Function Documentation

friend class MPEG4GenericBufferedPacket
friend

Definition at line 71 of file MPEG4GenericRTPSource.hh.

Field Documentation

struct AUHeader* MPEG4GenericRTPSource::fAUHeaders
private

Definition at line 69 of file MPEG4GenericRTPSource.hh.

Boolean RTPSource::fCurPacketHasBeenSynchronizedUsingRTCP
protectedinherited

Definition at line 98 of file RTPSource.hh.

Boolean RTPSource::fCurPacketMarkerBit
protectedinherited

Definition at line 97 of file RTPSource.hh.

Referenced by RTPSource::curPacketMarkerBit().

u_int16_t RTPSource::fCurPacketRTPSeqNum
protectedinherited

Definition at line 95 of file RTPSource.hh.

Referenced by RTPSource::curPacketRTPSeqNum().

u_int32_t RTPSource::fCurPacketRTPTimestamp
protectedinherited

Definition at line 96 of file RTPSource.hh.

Referenced by RTPSource::curPacketRTPTimestamp().

Boolean MultiFramedRTPSource::fCurrentPacketBeginsFrame
protectedinherited

Definition at line 51 of file MultiFramedRTPSource.hh.

Boolean MultiFramedRTPSource::fCurrentPacketCompletesFrame
protectedinherited

Definition at line 52 of file MultiFramedRTPSource.hh.

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

Definition at line 77 of file FramedSource.hh.

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

unsigned MPEG4GenericRTPSource::fIndexDeltaLength
private

Definition at line 66 of file MPEG4GenericRTPSource.hh.

unsigned MPEG4GenericRTPSource::fIndexLength
private

Definition at line 66 of file MPEG4GenericRTPSource.hh.

u_int32_t RTPSource::fLastReceivedSSRC
protectedinherited

Definition at line 99 of file RTPSource.hh.

Referenced by RTPSource::lastReceivedSSRC().

unsigned FramedSource::fMaxSize
protectedinherited

Definition at line 76 of file FramedSource.hh.

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

char* MPEG4GenericRTPSource::fMIMEType
private

Definition at line 63 of file MPEG4GenericRTPSource.hh.

char* MPEG4GenericRTPSource::fMode
private

Definition at line 65 of file MPEG4GenericRTPSource.hh.

unsigned MPEG4GenericRTPSource::fNextAUHeader
private

Definition at line 68 of file MPEG4GenericRTPSource.hh.

unsigned MPEG4GenericRTPSource::fNumAUHeaders
private

Definition at line 67 of file MPEG4GenericRTPSource.hh.

unsigned FramedSource::fNumTruncatedBytes
protectedinherited
struct timeval FramedSource::fPresentationTime
protectedinherited
class RTCPInstance* RTPSource::fRTCPInstanceForMultiplexedRTCPPackets
protectedinherited

Definition at line 100 of file RTPSource.hh.

Referenced by RTPSource::registerForMultiplexedRTCPPackets().

RTPInterface RTPSource::fRTPInterface
protectedinherited
unsigned MPEG4GenericRTPSource::fSizeLength
private

Definition at line 66 of file MPEG4GenericRTPSource.hh.

unsigned char* FramedSource::fTo
protectedinherited

Definition at line 75 of file FramedSource.hh.

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


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