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

#include <ByteStreamMemoryBufferSource.hh>

Inheritance diagram for ByteStreamMemoryBufferSource:
Inheritance graph
[legend]
Collaboration diagram for ByteStreamMemoryBufferSource:
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 bufferSize () const
 
void seekToByteAbsolute (u_int64_t byteNumber, u_int64_t numBytesToStream=0)
 
void seekToByteRelative (int64_t offset, u_int64_t numBytesToStream=0)
 
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
 
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 ByteStreamMemoryBufferSourcecreateNew (UsageEnvironment &env, u_int8_t *buffer, u_int64_t bufferSize, Boolean deleteBufferOnClose=True, unsigned preferredFrameSize=0, unsigned playTimePerFrame=0)
 
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

 ByteStreamMemoryBufferSource (UsageEnvironment &env, u_int8_t *buffer, u_int64_t bufferSize, Boolean deleteBufferOnClose, unsigned preferredFrameSize, unsigned playTimePerFrame)
 
virtual ~ByteStreamMemoryBufferSource ()
 
virtual void doStopGettingFrames ()
 
TaskTokennextTask ()
 

Protected Attributes

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

Private Member Functions

virtual void doGetNextFrame ()
 

Private Attributes

u_int8_t * fBuffer
 
u_int64_t fBufferSize
 
u_int64_t fCurIndex
 
Boolean fDeleteBufferOnClose
 
unsigned fPreferredFrameSize
 
unsigned fPlayTimePerFrame
 
unsigned fLastPlayTime
 
Boolean fLimitNumBytesToStream
 
u_int64_t fNumBytesToStream
 

Detailed Description

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

◆ ByteStreamMemoryBufferSource()

ByteStreamMemoryBufferSource::ByteStreamMemoryBufferSource ( UsageEnvironment env,
u_int8_t *  buffer,
u_int64_t  bufferSize,
Boolean  deleteBufferOnClose,
unsigned  preferredFrameSize,
unsigned  playTimePerFrame 
)
protected

◆ ~ByteStreamMemoryBufferSource()

virtual ByteStreamMemoryBufferSource::~ByteStreamMemoryBufferSource ( )
protectedvirtual

Member Function Documentation

◆ afterGetting()

static void FramedSource::afterGetting ( FramedSource source)
staticinherited

◆ bufferSize()

u_int64_t ByteStreamMemoryBufferSource::bufferSize ( ) const
inline

Definition at line 38 of file ByteStreamMemoryBufferSource.hh.

References fBufferSize.

◆ 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 ByteStreamMemoryBufferSource* ByteStreamMemoryBufferSource::createNew ( UsageEnvironment env,
u_int8_t *  buffer,
u_int64_t  bufferSize,
Boolean  deleteBufferOnClose = True,
unsigned  preferredFrameSize = 0,
unsigned  playTimePerFrame = 0 
)
static

◆ doGetNextFrame()

virtual void ByteStreamMemoryBufferSource::doGetNextFrame ( )
privatevirtual

Implements FramedSource.

◆ doStopGettingFrames()

virtual void FramedSource::doStopGettingFrames ( )
protectedvirtualinherited

◆ 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

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

◆ seekToByteAbsolute()

void ByteStreamMemoryBufferSource::seekToByteAbsolute ( u_int64_t  byteNumber,
u_int64_t  numBytesToStream = 0 
)

◆ seekToByteRelative()

void ByteStreamMemoryBufferSource::seekToByteRelative ( int64_t  offset,
u_int64_t  numBytesToStream = 0 
)

◆ stopGettingFrames()

void FramedSource::stopGettingFrames ( )
inherited

Field Documentation

◆ fBuffer

u_int8_t* ByteStreamMemoryBufferSource::fBuffer
private

Definition at line 59 of file ByteStreamMemoryBufferSource.hh.

◆ fBufferSize

u_int64_t ByteStreamMemoryBufferSource::fBufferSize
private

Definition at line 60 of file ByteStreamMemoryBufferSource.hh.

Referenced by bufferSize().

◆ fCurIndex

u_int64_t ByteStreamMemoryBufferSource::fCurIndex
private

Definition at line 61 of file ByteStreamMemoryBufferSource.hh.

◆ fDeleteBufferOnClose

Boolean ByteStreamMemoryBufferSource::fDeleteBufferOnClose
private

Definition at line 62 of file ByteStreamMemoryBufferSource.hh.

◆ fDurationInMicroseconds

unsigned FramedSource::fDurationInMicroseconds
protectedinherited

◆ fFrameSize

unsigned FramedSource::fFrameSize
protectedinherited

◆ fLastPlayTime

unsigned ByteStreamMemoryBufferSource::fLastPlayTime
private

Definition at line 65 of file ByteStreamMemoryBufferSource.hh.

◆ fLimitNumBytesToStream

Boolean ByteStreamMemoryBufferSource::fLimitNumBytesToStream
private

Definition at line 66 of file ByteStreamMemoryBufferSource.hh.

◆ fMaxSize

unsigned FramedSource::fMaxSize
protectedinherited

◆ fNumBytesToStream

u_int64_t ByteStreamMemoryBufferSource::fNumBytesToStream
private

Definition at line 67 of file ByteStreamMemoryBufferSource.hh.

◆ fNumTruncatedBytes

unsigned FramedSource::fNumTruncatedBytes
protectedinherited

◆ fPlayTimePerFrame

unsigned ByteStreamMemoryBufferSource::fPlayTimePerFrame
private

Definition at line 64 of file ByteStreamMemoryBufferSource.hh.

◆ fPreferredFrameSize

unsigned ByteStreamMemoryBufferSource::fPreferredFrameSize
private

Definition at line 63 of file ByteStreamMemoryBufferSource.hh.

◆ fPresentationTime

struct timeval FramedSource::fPresentationTime
protectedinherited

◆ fTo

unsigned char* FramedSource::fTo
protectedinherited

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