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

#include <MPEG1or2VideoRTPSink.hh>

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

Public Types

typedef void() onSendErrorFunc(void *clientData)
 
typedef void() afterPlayingFunc(void *clientData)
 

Public Member Functions

void setPacketSizes (unsigned preferredPacketSize, unsigned maxPacketSize)
 
void setOnSendErrorFunc (onSendErrorFunc *onSendErrorFunc, void *onSendErrorFuncData)
 
virtual void stopPlaying ()
 
Groupsock const & groupsockBeingUsed () const
 
GroupsockgroupsockBeingUsed ()
 
unsigned char rtpPayloadType () const
 
unsigned rtpTimestampFrequency () const
 
void setRTPTimestampFrequency (unsigned freq)
 
char const * rtpPayloadFormatName () const
 
unsigned numChannels () const
 
void setupForSRTP (Boolean useEncryption)
 
u_int8_t * setupForSRTP (Boolean useEncryption, unsigned &resultMIKEYStateMessageSize)
 
void setupForSRTP (u_int8_t const *MIKEYStateMessage, unsigned MIKEYStateMessageSize)
 
virtual char * rtpmapLine () const
 
virtual char * keyMgmtLine ()
 
virtual char const * auxSDPLine ()
 
u_int16_t currentSeqNo () const
 
u_int32_t presetNextTimestamp ()
 
RTPTransmissionStatsDBtransmissionStatsDB () const
 
Boolean nextTimestampHasBeenPreset () const
 
BooleanenableRTCPReports ()
 
void getTotalBitrate (unsigned &outNumBytes, double &outElapsedTime)
 
struct timeval const & creationTime () const
 
struct timeval const & initialPresentationTime () const
 
struct timeval const & mostRecentPresentationTime () const
 
void resetPresentationTimes ()
 
void setStreamSocket (int sockNum, unsigned char streamChannelId, TLSState *tlsState)
 
void addStreamSocket (int sockNum, unsigned char streamChannelId, TLSState *tlsState)
 
void removeStreamSocket (int sockNum, unsigned char streamChannelId)
 
unsigned & estimatedBitrate ()
 
u_int32_t SSRC () const
 
SRTPCryptographicContextgetCrypto () const
 
Boolean startPlaying (MediaSource &source, afterPlayingFunc *afterFunc, void *afterClientData)
 
FramedSourcesource () const
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSource () 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 MPEG1or2VideoRTPSinkcreateNew (UsageEnvironment &env, Groupsock *RTPgs)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sinkName, RTPSink *&resultSink)
 
static Boolean lookupByName (UsageEnvironment &env, char const *sinkName, MediaSink *&resultSink)
 
static Boolean lookupByName (UsageEnvironment &env, char const *mediumName, Medium *&resultMedium)
 
static void close (UsageEnvironment &env, char const *mediumName)
 
static void close (Medium *medium)
 

Protected Member Functions

 MPEG1or2VideoRTPSink (UsageEnvironment &env, Groupsock *RTPgs)
 
virtual ~MPEG1or2VideoRTPSink ()
 
virtual Boolean allowOtherFramesAfterLastFragment () const
 
virtual unsigned frameSpecificHeaderSize () const
 
virtual unsigned computeOverflowForNewFrame (unsigned newFrameSize) const
 
Boolean isFirstPacket () const
 
Boolean isFirstFrameInPacket () const
 
unsigned curFragmentationOffset () const
 
void setMarkerBit ()
 
void setTimestamp (struct timeval framePresentationTime)
 
void setSpecialHeaderWord (unsigned word, unsigned wordPosition=0)
 
void setSpecialHeaderBytes (unsigned char const *bytes, unsigned numBytes, unsigned bytePosition=0)
 
void setFrameSpecificHeaderWord (unsigned word, unsigned wordPosition=0)
 
void setFrameSpecificHeaderBytes (unsigned char const *bytes, unsigned numBytes, unsigned bytePosition=0)
 
void setFramePadding (unsigned numPaddingBytes)
 
unsigned numFramesUsedSoFar () const
 
unsigned ourMaxPacketSize () const
 
virtual Boolean continuePlaying ()
 
u_int32_t convertToRTPTimestamp (struct timeval tv)
 
unsigned packetCount () const
 
unsigned octetCount () const
 
void onSourceClosure ()
 
TaskTokennextTask ()
 

Static Protected Member Functions

static void onSourceClosure (void *clientData)
 

Protected Attributes

RTPInterface fRTPInterface
 
unsigned char fRTPPayloadType
 
unsigned fPacketCount
 
unsigned fOctetCount
 
unsigned fTotalOctetCount
 
struct timeval fTotalOctetCountStartTime fInitialPresentationTime fMostRecentPresentationTime
 
u_int32_t fCurrentTimestamp
 
u_int16_t fSeqNo
 
MIKEYStatefMIKEYState
 
SRTPCryptographicContextfCrypto
 
FramedSourcefSource
 

Private Member Functions

virtual Boolean sourceIsCompatibleWithUs (MediaSource &source)
 
virtual void doSpecialFrameHandling (unsigned fragmentationOffset, unsigned char *frameStart, unsigned numBytesInFrame, struct timeval framePresentationTime, unsigned numRemainingBytes)
 
virtual Boolean allowFragmentationAfterStart () const
 
virtual Boolean frameCanAppearAfterPacketStart (unsigned char const *frameStart, unsigned numBytesInFrame) const
 
virtual unsigned specialHeaderSize () const
 
virtual char const * sdpMediaType () const
 
void buildAndSendPacket (Boolean isFirstPacket)
 
void packFrame ()
 
void sendPacketIfNecessary ()
 
void afterGettingFrame1 (unsigned numBytesRead, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
Boolean isTooBigForAPacket (unsigned numBytes) const
 
virtual Boolean isRTPSink () const
 
virtual Boolean isSink () const
 

Static Private Member Functions

static void sendNext (void *firstArg)
 
static void afterGettingFrame (void *clientData, unsigned numBytesRead, unsigned numTruncatedBytes, struct timeval presentationTime, unsigned durationInMicroseconds)
 
static void ourHandleClosure (void *clientData)
 

Private Attributes

struct {
   unsigned   temporal_reference
 
   unsigned char   picture_coding_type
 
   unsigned char   vector_code_bits
 
fPictureState
 
Boolean fPreviousFrameWasSlice
 
Boolean fSequenceHeaderPresent
 
Boolean fPacketBeginsSlice
 
Boolean fPacketEndsSlice
 
OutPacketBufferfOutBuf
 
Boolean fNoFramesLeft
 
unsigned fNumFramesUsedSoFar
 
unsigned fCurFragmentationOffset
 
Boolean fPreviousFrameEndedFragmentation
 
Boolean fIsFirstPacket
 
struct timeval fNextSendTime
 
unsigned fTimestampPosition
 
unsigned fSpecialHeaderPosition
 
unsigned fSpecialHeaderSize
 
unsigned fCurFrameSpecificHeaderPosition
 
unsigned fCurFrameSpecificHeaderSize
 
unsigned fTotalFrameSpecificHeaderSizes
 
unsigned fOurMaxPacketSize
 
onSendErrorFuncfOnSendErrorFunc
 
void * fOnSendErrorData
 
u_int32_t fSSRC
 
u_int32_t fTimestampBase
 
unsigned fTimestampFrequency
 
Boolean fNextTimestampHasBeenPreset
 
Boolean fEnableRTCPReports
 
char const * fRTPPayloadFormatName
 
unsigned fNumChannels
 
struct timeval fCreationTime
 
unsigned fEstimatedBitrate
 
RTPTransmissionStatsDBfTransmissionStatsDB
 
afterPlayingFuncfAfterFunc
 
void * fAfterClientData
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Detailed Description

Definition at line 28 of file MPEG1or2VideoRTPSink.hh.

Member Typedef Documentation

◆ afterPlayingFunc

typedef void() MediaSink::afterPlayingFunc(void *clientData)
inherited

Definition at line 33 of file MediaSink.hh.

◆ onSendErrorFunc

typedef void() MultiFramedRTPSink::onSendErrorFunc(void *clientData)
inherited

Definition at line 33 of file MultiFramedRTPSink.hh.

Constructor & Destructor Documentation

◆ MPEG1or2VideoRTPSink()

MPEG1or2VideoRTPSink::MPEG1or2VideoRTPSink ( UsageEnvironment env,
Groupsock RTPgs 
)
protected

◆ ~MPEG1or2VideoRTPSink()

virtual MPEG1or2VideoRTPSink::~MPEG1or2VideoRTPSink ( )
protectedvirtual

Member Function Documentation

◆ addStreamSocket()

void RTPSink::addStreamSocket ( int  sockNum,
unsigned char  streamChannelId,
TLSState tlsState 
)
inlineinherited

Definition at line 92 of file RTPSink.hh.

92 {
93 fRTPInterface.addStreamSocket(sockNum, streamChannelId, tlsState);
94 }
void addStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
RTPInterface fRTPInterface
Definition: RTPSink.hh:123

References RTPInterface::addStreamSocket(), and RTPSink::fRTPInterface.

◆ afterGettingFrame()

static void MultiFramedRTPSink::afterGettingFrame ( void *  clientData,
unsigned  numBytesRead,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
staticprivateinherited

◆ afterGettingFrame1()

void MultiFramedRTPSink::afterGettingFrame1 ( unsigned  numBytesRead,
unsigned  numTruncatedBytes,
struct timeval  presentationTime,
unsigned  durationInMicroseconds 
)
privateinherited

◆ allowFragmentationAfterStart()

virtual Boolean MPEG1or2VideoRTPSink::allowFragmentationAfterStart ( ) const
privatevirtual

Reimplemented from MultiFramedRTPSink.

◆ allowOtherFramesAfterLastFragment()

virtual Boolean MultiFramedRTPSink::allowOtherFramesAfterLastFragment ( ) const
protectedvirtualinherited

◆ auxSDPLine()

virtual char const * RTPSink::auxSDPLine ( )
virtualinherited

◆ buildAndSendPacket()

void MultiFramedRTPSink::buildAndSendPacket ( Boolean  isFirstPacket)
privateinherited

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

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

◆ computeOverflowForNewFrame()

virtual unsigned MultiFramedRTPSink::computeOverflowForNewFrame ( unsigned  newFrameSize) const
protectedvirtualinherited

Reimplemented in DVVideoRTPSink, and RawVideoRTPSink.

◆ continuePlaying()

virtual Boolean MultiFramedRTPSink::continuePlaying ( )
protectedvirtualinherited

Implements MediaSink.

Reimplemented in H264or5VideoRTPSink, and T140TextRTPSink.

◆ convertToRTPTimestamp()

u_int32_t RTPSink::convertToRTPTimestamp ( struct timeval  tv)
protectedinherited

◆ createNew()

static MPEG1or2VideoRTPSink * MPEG1or2VideoRTPSink::createNew ( UsageEnvironment env,
Groupsock RTPgs 
)
static

◆ creationTime()

struct timeval const & RTPSink::creationTime ( ) const
inlineinherited

Definition at line 83 of file RTPSink.hh.

83{ return fCreationTime; }
struct timeval fCreationTime
Definition: RTPSink.hh:145

References RTPSink::fCreationTime.

◆ curFragmentationOffset()

unsigned MultiFramedRTPSink::curFragmentationOffset ( ) const
inlineprotectedinherited

◆ currentSeqNo()

u_int16_t RTPSink::currentSeqNo ( ) const
inlineinherited

Definition at line 67 of file RTPSink.hh.

67{ return fSeqNo; }
u_int16_t fSeqNo
Definition: RTPSink.hh:128

References RTPSink::fSeqNo.

◆ doSpecialFrameHandling()

virtual void MPEG1or2VideoRTPSink::doSpecialFrameHandling ( unsigned  fragmentationOffset,
unsigned char *  frameStart,
unsigned  numBytesInFrame,
struct timeval  framePresentationTime,
unsigned  numRemainingBytes 
)
privatevirtual

Reimplemented from MultiFramedRTPSink.

◆ enableRTCPReports()

Boolean & RTPSink::enableRTCPReports ( )
inlineinherited

Definition at line 77 of file RTPSink.hh.

77{ return fEnableRTCPReports; }
Boolean fEnableRTCPReports
Definition: RTPSink.hh:142

References RTPSink::fEnableRTCPReports.

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ estimatedBitrate()

unsigned & RTPSink::estimatedBitrate ( )
inlineinherited

Definition at line 98 of file RTPSink.hh.

98{ return fEstimatedBitrate; } // kbps; usually 0 (i.e., unset)
unsigned fEstimatedBitrate
Definition: RTPSink.hh:146

References RTPSink::fEstimatedBitrate.

◆ frameCanAppearAfterPacketStart()

virtual Boolean MPEG1or2VideoRTPSink::frameCanAppearAfterPacketStart ( unsigned char const *  frameStart,
unsigned  numBytesInFrame 
) const
privatevirtual

Reimplemented from MultiFramedRTPSink.

◆ frameSpecificHeaderSize()

virtual unsigned MultiFramedRTPSink::frameSpecificHeaderSize ( ) const
protectedvirtualinherited

Reimplemented in VorbisAudioRTPSink.

◆ getCrypto()

SRTPCryptographicContext * RTPSink::getCrypto ( ) const
inlineinherited

Definition at line 103 of file RTPSink.hh.

103{ return fCrypto; }
SRTPCryptographicContext * fCrypto
Definition: RTPSink.hh:132

References RTPSink::fCrypto.

◆ getTotalBitrate()

void RTPSink::getTotalBitrate ( unsigned &  outNumBytes,
double &  outElapsedTime 
)
inherited

◆ groupsockBeingUsed() [1/2]

Groupsock & RTPSink::groupsockBeingUsed ( )
inlineinherited

Definition at line 43 of file RTPSink.hh.

43{ return *(fRTPInterface.gs()); }
Groupsock * gs() const
Definition: RTPInterface.hh:51

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

◆ groupsockBeingUsed() [2/2]

Groupsock const & RTPSink::groupsockBeingUsed ( ) const
inlineinherited

Definition at line 42 of file RTPSink.hh.

42{ return *(fRTPInterface.gs()); }

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

◆ initialPresentationTime()

struct timeval const & RTPSink::initialPresentationTime ( ) const
inlineinherited

Definition at line 84 of file RTPSink.hh.

84{ return fInitialPresentationTime; }

◆ isFirstFrameInPacket()

Boolean MultiFramedRTPSink::isFirstFrameInPacket ( ) const
inlineprotectedinherited

Definition at line 78 of file MultiFramedRTPSink.hh.

78{ return fNumFramesUsedSoFar == 0; }

References MultiFramedRTPSink::fNumFramesUsedSoFar.

◆ isFirstPacket()

Boolean MultiFramedRTPSink::isFirstPacket ( ) const
inlineprotectedinherited

Definition at line 77 of file MultiFramedRTPSink.hh.

77{ return fIsFirstPacket; }

References MultiFramedRTPSink::fIsFirstPacket.

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

◆ isRTPSink()

virtual Boolean RTPSink::isRTPSink ( ) const
privatevirtualinherited

Reimplemented from MediaSink.

◆ 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 MediaSink::isSink ( ) const
privatevirtualinherited

Reimplemented from Medium.

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ isTooBigForAPacket()

Boolean MultiFramedRTPSink::isTooBigForAPacket ( unsigned  numBytes) const
privateinherited

◆ keyMgmtLine()

virtual char * RTPSink::keyMgmtLine ( )
virtualinherited

◆ lookupByName() [1/3]

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

◆ lookupByName() [2/3]

static Boolean MediaSink::lookupByName ( UsageEnvironment env,
char const *  sinkName,
MediaSink *&  resultSink 
)
staticinherited

◆ lookupByName() [3/3]

static Boolean RTPSink::lookupByName ( UsageEnvironment env,
char const *  sinkName,
RTPSink *&  resultSink 
)
staticinherited

◆ mostRecentPresentationTime()

struct timeval const & RTPSink::mostRecentPresentationTime ( ) const
inlineinherited

Definition at line 85 of file RTPSink.hh.

struct timeval fTotalOctetCountStartTime fInitialPresentationTime fMostRecentPresentationTime
Definition: RTPSink.hh:126

References RTPSink::fMostRecentPresentationTime.

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

◆ nextTimestampHasBeenPreset()

Boolean RTPSink::nextTimestampHasBeenPreset ( ) const
inlineinherited

Definition at line 76 of file RTPSink.hh.

Boolean fNextTimestampHasBeenPreset
Definition: RTPSink.hh:141

References RTPSink::fNextTimestampHasBeenPreset.

◆ numChannels()

unsigned RTPSink::numChannels ( ) const
inlineinherited

Definition at line 52 of file RTPSink.hh.

52{ return fNumChannels; }
unsigned fNumChannels
Definition: RTPSink.hh:144

References RTPSink::fNumChannels.

◆ numFramesUsedSoFar()

unsigned MultiFramedRTPSink::numFramesUsedSoFar ( ) const
inlineprotectedinherited

Definition at line 91 of file MultiFramedRTPSink.hh.

91{ return fNumFramesUsedSoFar; }

References MultiFramedRTPSink::fNumFramesUsedSoFar.

◆ octetCount()

unsigned RTPSink::octetCount ( ) const
inlineprotectedinherited

Definition at line 120 of file RTPSink.hh.

120{return fOctetCount;}
unsigned fOctetCount
Definition: RTPSink.hh:125

References RTPSink::fOctetCount.

◆ onSourceClosure() [1/2]

void MediaSink::onSourceClosure ( )
protectedinherited

◆ onSourceClosure() [2/2]

static void MediaSink::onSourceClosure ( void *  clientData)
staticprotectedinherited

◆ ourHandleClosure()

static void MultiFramedRTPSink::ourHandleClosure ( void *  clientData)
staticprivateinherited

◆ ourMaxPacketSize()

unsigned MultiFramedRTPSink::ourMaxPacketSize ( ) const
inlineprotectedinherited

Definition at line 92 of file MultiFramedRTPSink.hh.

92{ return fOurMaxPacketSize; }

References MultiFramedRTPSink::fOurMaxPacketSize.

◆ packetCount()

unsigned RTPSink::packetCount ( ) const
inlineprotectedinherited

Definition at line 119 of file RTPSink.hh.

119{return fPacketCount;}
unsigned fPacketCount
Definition: RTPSink.hh:125

References RTPSink::fPacketCount.

◆ packFrame()

void MultiFramedRTPSink::packFrame ( )
privateinherited

◆ presetNextTimestamp()

u_int32_t RTPSink::presetNextTimestamp ( )
inherited

◆ removeStreamSocket()

void RTPSink::removeStreamSocket ( int  sockNum,
unsigned char  streamChannelId 
)
inlineinherited

Definition at line 95 of file RTPSink.hh.

95 {
96 fRTPInterface.removeStreamSocket(sockNum, streamChannelId);
97 }
void removeStreamSocket(int sockNum, unsigned char streamChannelId)

References RTPSink::fRTPInterface, and RTPInterface::removeStreamSocket().

◆ resetPresentationTimes()

void RTPSink::resetPresentationTimes ( )
inherited

◆ rtpmapLine()

virtual char * RTPSink::rtpmapLine ( ) const
virtualinherited

◆ rtpPayloadFormatName()

char const * RTPSink::rtpPayloadFormatName ( ) const
inlineinherited

Definition at line 50 of file RTPSink.hh.

char const * fRTPPayloadFormatName
Definition: RTPSink.hh:143

References RTPSink::fRTPPayloadFormatName.

◆ rtpPayloadType()

unsigned char RTPSink::rtpPayloadType ( ) const
inlineinherited

Definition at line 45 of file RTPSink.hh.

45{ return fRTPPayloadType; }
unsigned char fRTPPayloadType
Definition: RTPSink.hh:124

References RTPSink::fRTPPayloadType.

◆ rtpTimestampFrequency()

unsigned RTPSink::rtpTimestampFrequency ( ) const
inlineinherited

Definition at line 46 of file RTPSink.hh.

46{ return fTimestampFrequency; }
unsigned fTimestampFrequency
Definition: RTPSink.hh:140

References RTPSink::fTimestampFrequency.

◆ sdpMediaType()

virtual char const * VideoRTPSink::sdpMediaType ( ) const
privatevirtualinherited

Reimplemented from RTPSink.

◆ sendNext()

static void MultiFramedRTPSink::sendNext ( void *  firstArg)
staticprivateinherited

◆ sendPacketIfNecessary()

void MultiFramedRTPSink::sendPacketIfNecessary ( )
privateinherited

◆ setFramePadding()

void MultiFramedRTPSink::setFramePadding ( unsigned  numPaddingBytes)
protectedinherited

◆ setFrameSpecificHeaderBytes()

void MultiFramedRTPSink::setFrameSpecificHeaderBytes ( unsigned char const *  bytes,
unsigned  numBytes,
unsigned  bytePosition = 0 
)
protectedinherited

◆ setFrameSpecificHeaderWord()

void MultiFramedRTPSink::setFrameSpecificHeaderWord ( unsigned  word,
unsigned  wordPosition = 0 
)
protectedinherited

◆ setMarkerBit()

void MultiFramedRTPSink::setMarkerBit ( )
protectedinherited

◆ setOnSendErrorFunc()

void MultiFramedRTPSink::setOnSendErrorFunc ( onSendErrorFunc onSendErrorFunc,
void *  onSendErrorFuncData 
)
inlineinherited

Definition at line 34 of file MultiFramedRTPSink.hh.

34 {
35 // Can be used to set a callback function to be called if there's an error sending RTP packets on our socket.
37 fOnSendErrorData = onSendErrorFuncData;
38 }
void() onSendErrorFunc(void *clientData)
onSendErrorFunc * fOnSendErrorFunc

References MultiFramedRTPSink::fOnSendErrorData, and MultiFramedRTPSink::fOnSendErrorFunc.

◆ setPacketSizes()

void MultiFramedRTPSink::setPacketSizes ( unsigned  preferredPacketSize,
unsigned  maxPacketSize 
)
inherited

◆ setRTPTimestampFrequency()

void RTPSink::setRTPTimestampFrequency ( unsigned  freq)
inlineinherited

Definition at line 47 of file RTPSink.hh.

47 {
49 }

References RTPSink::fTimestampFrequency.

◆ setSpecialHeaderBytes()

void MultiFramedRTPSink::setSpecialHeaderBytes ( unsigned char const *  bytes,
unsigned  numBytes,
unsigned  bytePosition = 0 
)
protectedinherited

◆ setSpecialHeaderWord()

void MultiFramedRTPSink::setSpecialHeaderWord ( unsigned  word,
unsigned  wordPosition = 0 
)
protectedinherited

◆ setStreamSocket()

void RTPSink::setStreamSocket ( int  sockNum,
unsigned char  streamChannelId,
TLSState tlsState 
)
inlineinherited

Definition at line 89 of file RTPSink.hh.

89 {
90 fRTPInterface.setStreamSocket(sockNum, streamChannelId, tlsState);
91 }
void setStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)

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

◆ setTimestamp()

void MultiFramedRTPSink::setTimestamp ( struct timeval  framePresentationTime)
protectedinherited

◆ setupForSRTP() [1/3]

void RTPSink::setupForSRTP ( Boolean  useEncryption)
inherited

◆ setupForSRTP() [2/3]

u_int8_t * RTPSink::setupForSRTP ( Boolean  useEncryption,
unsigned &  resultMIKEYStateMessageSize 
)
inherited

◆ setupForSRTP() [3/3]

void RTPSink::setupForSRTP ( u_int8_t const *  MIKEYStateMessage,
unsigned  MIKEYStateMessageSize 
)
inherited

◆ source()

FramedSource * MediaSink::source ( ) const
inlineinherited

Definition at line 42 of file MediaSink.hh.

42{return fSource;}
FramedSource * fSource
Definition: MediaSink.hh:58

References MediaSink::fSource.

◆ sourceIsCompatibleWithUs()

virtual Boolean MPEG1or2VideoRTPSink::sourceIsCompatibleWithUs ( MediaSource source)
privatevirtual

Reimplemented from MediaSink.

◆ specialHeaderSize()

virtual unsigned MPEG1or2VideoRTPSink::specialHeaderSize ( ) const
privatevirtual

Reimplemented from MultiFramedRTPSink.

◆ SSRC()

u_int32_t RTPSink::SSRC ( ) const
inlineinherited

Definition at line 100 of file RTPSink.hh.

100{return fSSRC;}
u_int32_t fSSRC
Definition: RTPSink.hh:139

References RTPSink::fSSRC.

◆ startPlaying()

Boolean MediaSink::startPlaying ( MediaSource source,
afterPlayingFunc afterFunc,
void *  afterClientData 
)
inherited

◆ stopPlaying()

virtual void MultiFramedRTPSink::stopPlaying ( )
virtualinherited

Reimplemented from MediaSink.

◆ transmissionStatsDB()

RTPTransmissionStatsDB & RTPSink::transmissionStatsDB ( ) const
inlineinherited

Definition at line 72 of file RTPSink.hh.

72 {
74 }
RTPTransmissionStatsDB * fTransmissionStatsDB
Definition: RTPSink.hh:148

References RTPSink::fTransmissionStatsDB.

Field Documentation

◆ fAfterClientData

void* MediaSink::fAfterClientData
privateinherited

Definition at line 67 of file MediaSink.hh.

◆ fAfterFunc

afterPlayingFunc* MediaSink::fAfterFunc
privateinherited

Definition at line 66 of file MediaSink.hh.

◆ fCreationTime

struct timeval RTPSink::fCreationTime
privateinherited

Definition at line 145 of file RTPSink.hh.

Referenced by RTPSink::creationTime().

◆ fCrypto

SRTPCryptographicContext* RTPSink::fCrypto
protectedinherited

Definition at line 132 of file RTPSink.hh.

Referenced by RTPSink::getCrypto().

◆ fCurFragmentationOffset

unsigned MultiFramedRTPSink::fCurFragmentationOffset
privateinherited

Definition at line 123 of file MultiFramedRTPSink.hh.

Referenced by MultiFramedRTPSink::curFragmentationOffset().

◆ fCurFrameSpecificHeaderPosition

unsigned MultiFramedRTPSink::fCurFrameSpecificHeaderPosition
privateinherited

Definition at line 131 of file MultiFramedRTPSink.hh.

◆ fCurFrameSpecificHeaderSize

unsigned MultiFramedRTPSink::fCurFrameSpecificHeaderSize
privateinherited

Definition at line 132 of file MultiFramedRTPSink.hh.

◆ fCurrentTimestamp

u_int32_t RTPSink::fCurrentTimestamp
protectedinherited

Definition at line 127 of file RTPSink.hh.

◆ fEnableRTCPReports

Boolean RTPSink::fEnableRTCPReports
privateinherited

Definition at line 142 of file RTPSink.hh.

Referenced by RTPSink::enableRTCPReports().

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fEstimatedBitrate

unsigned RTPSink::fEstimatedBitrate
privateinherited

Definition at line 146 of file RTPSink.hh.

Referenced by RTPSink::estimatedBitrate().

◆ fIsFirstPacket

Boolean MultiFramedRTPSink::fIsFirstPacket
privateinherited

Definition at line 126 of file MultiFramedRTPSink.hh.

Referenced by MultiFramedRTPSink::isFirstPacket().

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fMIKEYState

MIKEYState* RTPSink::fMIKEYState
protectedinherited

Definition at line 131 of file RTPSink.hh.

◆ fMostRecentPresentationTime

struct timeval fTotalOctetCountStartTime fInitialPresentationTime RTPSink::fMostRecentPresentationTime
protectedinherited

Definition at line 126 of file RTPSink.hh.

Referenced by RTPSink::mostRecentPresentationTime().

◆ fNextSendTime

struct timeval MultiFramedRTPSink::fNextSendTime
privateinherited

Definition at line 127 of file MultiFramedRTPSink.hh.

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fNextTimestampHasBeenPreset

Boolean RTPSink::fNextTimestampHasBeenPreset
privateinherited

Definition at line 141 of file RTPSink.hh.

Referenced by RTPSink::nextTimestampHasBeenPreset().

◆ fNoFramesLeft

Boolean MultiFramedRTPSink::fNoFramesLeft
privateinherited

Definition at line 121 of file MultiFramedRTPSink.hh.

◆ fNumChannels

unsigned RTPSink::fNumChannels
privateinherited

Definition at line 144 of file RTPSink.hh.

Referenced by RTPSink::numChannels().

◆ fNumFramesUsedSoFar

unsigned MultiFramedRTPSink::fNumFramesUsedSoFar
privateinherited

◆ fOctetCount

unsigned RTPSink::fOctetCount
protectedinherited

Definition at line 125 of file RTPSink.hh.

Referenced by RTPSink::octetCount().

◆ fOnSendErrorData

void* MultiFramedRTPSink::fOnSendErrorData
privateinherited

Definition at line 137 of file MultiFramedRTPSink.hh.

Referenced by MultiFramedRTPSink::setOnSendErrorFunc().

◆ fOnSendErrorFunc

onSendErrorFunc* MultiFramedRTPSink::fOnSendErrorFunc
privateinherited

Definition at line 136 of file MultiFramedRTPSink.hh.

Referenced by MultiFramedRTPSink::setOnSendErrorFunc().

◆ fOurMaxPacketSize

unsigned MultiFramedRTPSink::fOurMaxPacketSize
privateinherited

Definition at line 134 of file MultiFramedRTPSink.hh.

Referenced by MultiFramedRTPSink::ourMaxPacketSize().

◆ fOutBuf

OutPacketBuffer* MultiFramedRTPSink::fOutBuf
privateinherited

Definition at line 119 of file MultiFramedRTPSink.hh.

◆ fPacketBeginsSlice

Boolean MPEG1or2VideoRTPSink::fPacketBeginsSlice
private

Definition at line 66 of file MPEG1or2VideoRTPSink.hh.

◆ fPacketCount

unsigned RTPSink::fPacketCount
protectedinherited

Definition at line 125 of file RTPSink.hh.

Referenced by RTPSink::packetCount().

◆ fPacketEndsSlice

Boolean MPEG1or2VideoRTPSink::fPacketEndsSlice
private

Definition at line 66 of file MPEG1or2VideoRTPSink.hh.

◆ 

struct { ... } MPEG1or2VideoRTPSink::fPictureState

◆ fPreviousFrameEndedFragmentation

Boolean MultiFramedRTPSink::fPreviousFrameEndedFragmentation
privateinherited

Definition at line 124 of file MultiFramedRTPSink.hh.

◆ fPreviousFrameWasSlice

Boolean MPEG1or2VideoRTPSink::fPreviousFrameWasSlice
private

Definition at line 63 of file MPEG1or2VideoRTPSink.hh.

◆ fRTPInterface

RTPInterface RTPSink::fRTPInterface
protectedinherited

◆ fRTPPayloadFormatName

char const* RTPSink::fRTPPayloadFormatName
privateinherited

Definition at line 143 of file RTPSink.hh.

Referenced by RTPSink::rtpPayloadFormatName().

◆ fRTPPayloadType

unsigned char RTPSink::fRTPPayloadType
protectedinherited

Definition at line 124 of file RTPSink.hh.

Referenced by RTPSink::rtpPayloadType().

◆ fSeqNo

u_int16_t RTPSink::fSeqNo
protectedinherited

Definition at line 128 of file RTPSink.hh.

Referenced by RTPSink::currentSeqNo().

◆ fSequenceHeaderPresent

Boolean MPEG1or2VideoRTPSink::fSequenceHeaderPresent
private

Definition at line 65 of file MPEG1or2VideoRTPSink.hh.

◆ fSource

FramedSource* MediaSink::fSource
protectedinherited

Definition at line 58 of file MediaSink.hh.

Referenced by MediaSink::source().

◆ fSpecialHeaderPosition

unsigned MultiFramedRTPSink::fSpecialHeaderPosition
privateinherited

Definition at line 129 of file MultiFramedRTPSink.hh.

◆ fSpecialHeaderSize

unsigned MultiFramedRTPSink::fSpecialHeaderSize
privateinherited

Definition at line 130 of file MultiFramedRTPSink.hh.

◆ fSSRC

u_int32_t RTPSink::fSSRC
privateinherited

Definition at line 139 of file RTPSink.hh.

Referenced by RTPSink::SSRC().

◆ fTimestampBase

u_int32_t RTPSink::fTimestampBase
privateinherited

Definition at line 139 of file RTPSink.hh.

◆ fTimestampFrequency

unsigned RTPSink::fTimestampFrequency
privateinherited

◆ fTimestampPosition

unsigned MultiFramedRTPSink::fTimestampPosition
privateinherited

Definition at line 128 of file MultiFramedRTPSink.hh.

◆ fTotalFrameSpecificHeaderSizes

unsigned MultiFramedRTPSink::fTotalFrameSpecificHeaderSizes
privateinherited

Definition at line 133 of file MultiFramedRTPSink.hh.

◆ fTotalOctetCount

unsigned RTPSink::fTotalOctetCount
protectedinherited

Definition at line 125 of file RTPSink.hh.

◆ fTransmissionStatsDB

RTPTransmissionStatsDB* RTPSink::fTransmissionStatsDB
privateinherited

Definition at line 148 of file RTPSink.hh.

Referenced by RTPSink::transmissionStatsDB().

◆ picture_coding_type

unsigned char MPEG1or2VideoRTPSink::picture_coding_type

Definition at line 60 of file MPEG1or2VideoRTPSink.hh.

◆ temporal_reference

unsigned MPEG1or2VideoRTPSink::temporal_reference

Definition at line 59 of file MPEG1or2VideoRTPSink.hh.

◆ vector_code_bits

unsigned char MPEG1or2VideoRTPSink::vector_code_bits

Definition at line 61 of file MPEG1or2VideoRTPSink.hh.


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