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

#include <MatroskaDemuxedTrack.hh>

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

void seekToTime (double &seekNPT)
 
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 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
 
virtual Boolean isDarwinInjector () const
 

Static Public Member Functions

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 void doStopGettingFrames ()
 
TaskTokennextTask ()
 

Protected Attributes

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

Private Member Functions

 MatroskaDemuxedTrack (UsageEnvironment &env, unsigned trackNumber, MatroskaDemux &sourceDemux)
 
virtual ~MatroskaDemuxedTrack ()
 
virtual void doGetNextFrame ()
 
virtual char const * MIMEtype () const
 
unsigned char * to ()
 
unsigned maxSize ()
 
unsigned & frameSize ()
 
unsigned & numTruncatedBytes ()
 
struct timeval & presentationTime ()
 
unsigned & durationInMicroseconds ()
 
struct timeval & prevPresentationTime ()
 
int & durationImbalance ()
 

Private Attributes

unsigned fOurTrackNumber
 
MatroskaDemuxfOurSourceDemux
 
struct timeval fPrevPresentationTime
 
int fDurationImbalance
 
unsigned fOpusTrackNumber
 

Friends

class MatroskaDemux
 
class MatroskaFileParser
 

Detailed Description

Definition at line 30 of file MatroskaDemuxedTrack.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

MatroskaDemuxedTrack::MatroskaDemuxedTrack ( UsageEnvironment env,
unsigned  trackNumber,
MatroskaDemux sourceDemux 
)
private
virtual MatroskaDemuxedTrack::~MatroskaDemuxedTrack ( )
privatevirtual

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
virtual void MatroskaDemuxedTrack::doGetNextFrame ( )
privatevirtual

Implements FramedSource.

virtual void FramedSource::doStopGettingFrames ( )
protectedvirtualinherited
int& MatroskaDemuxedTrack::durationImbalance ( )
inlineprivate

Definition at line 54 of file MatroskaDemuxedTrack.hh.

References fDurationImbalance.

unsigned& MatroskaDemuxedTrack::durationInMicroseconds ( )
inlineprivate

Definition at line 51 of file MatroskaDemuxedTrack.hh.

References FramedSource::fDurationInMicroseconds.

51 { return fDurationInMicroseconds; }
unsigned fDurationInMicroseconds
Definition: FramedSource.hh:80
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
unsigned& MatroskaDemuxedTrack::frameSize ( )
inlineprivate

Definition at line 48 of file MatroskaDemuxedTrack.hh.

References FramedSource::fFrameSize.

48 { return fFrameSize; }
unsigned fFrameSize
Definition: FramedSource.hh:77
virtual void MediaSource::getAttributes ( ) const
virtualinherited
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 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 MediaSource::isRTPSource ( ) const
virtualinherited

Reimplemented in RTPSource.

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.

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 Medium::lookupByName ( UsageEnvironment env,
char const *  mediumName,
Medium *&  resultMedium 
)
staticinherited
virtual unsigned FramedSource::maxFrameSize ( ) const
virtualinherited
unsigned MatroskaDemuxedTrack::maxSize ( )
inlineprivate

Definition at line 47 of file MatroskaDemuxedTrack.hh.

References FramedSource::fMaxSize.

47 { return fMaxSize; }
unsigned fMaxSize
Definition: FramedSource.hh:76
virtual char const* MatroskaDemuxedTrack::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
unsigned& MatroskaDemuxedTrack::numTruncatedBytes ( )
inlineprivate

Definition at line 49 of file MatroskaDemuxedTrack.hh.

References FramedSource::fNumTruncatedBytes.

49 { return fNumTruncatedBytes; }
unsigned fNumTruncatedBytes
Definition: FramedSource.hh:78
struct timeval& MatroskaDemuxedTrack::presentationTime ( )
inlineprivate

Definition at line 50 of file MatroskaDemuxedTrack.hh.

References FramedSource::fPresentationTime.

50 { return fPresentationTime; }
struct timeval fPresentationTime
Definition: FramedSource.hh:79
struct timeval& MatroskaDemuxedTrack::prevPresentationTime ( )
inlineprivate

Definition at line 53 of file MatroskaDemuxedTrack.hh.

References fPrevPresentationTime.

53 { return fPrevPresentationTime; }
struct timeval fPrevPresentationTime
void MatroskaDemuxedTrack::seekToTime ( double &  seekNPT)
void FramedSource::stopGettingFrames ( )
inherited
unsigned char* MatroskaDemuxedTrack::to ( )
inlineprivate

Definition at line 46 of file MatroskaDemuxedTrack.hh.

References FramedSource::fTo.

46 { return fTo; }
unsigned char * fTo
Definition: FramedSource.hh:75

Friends And Related Function Documentation

friend class MatroskaDemux
friend

Definition at line 35 of file MatroskaDemuxedTrack.hh.

friend class MatroskaFileParser
friend

Definition at line 45 of file MatroskaDemuxedTrack.hh.

Field Documentation

int MatroskaDemuxedTrack::fDurationImbalance
private

Definition at line 60 of file MatroskaDemuxedTrack.hh.

Referenced by durationImbalance().

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

Definition at line 77 of file FramedSource.hh.

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

unsigned FramedSource::fMaxSize
protectedinherited

Definition at line 76 of file FramedSource.hh.

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

unsigned FramedSource::fNumTruncatedBytes
protectedinherited

Definition at line 78 of file FramedSource.hh.

Referenced by OggDemuxedTrack::numTruncatedBytes(), and numTruncatedBytes().

unsigned MatroskaDemuxedTrack::fOpusTrackNumber
private

Definition at line 61 of file MatroskaDemuxedTrack.hh.

MatroskaDemux& MatroskaDemuxedTrack::fOurSourceDemux
private

Definition at line 58 of file MatroskaDemuxedTrack.hh.

unsigned MatroskaDemuxedTrack::fOurTrackNumber
private

Definition at line 57 of file MatroskaDemuxedTrack.hh.

struct timeval FramedSource::fPresentationTime
protectedinherited
struct timeval MatroskaDemuxedTrack::fPrevPresentationTime
private

Definition at line 59 of file MatroskaDemuxedTrack.hh.

Referenced by prevPresentationTime().

unsigned char* FramedSource::fTo
protectedinherited

Definition at line 75 of file FramedSource.hh.

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


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