MatroskaDemuxedTrack Class Reference

#include <MatroskaDemuxedTrack.hh>

Inheritance diagram for MatroskaDemuxedTrack:

Inheritance graph
Collaboration diagram for MatroskaDemuxedTrack:

Collaboration graph

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
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 ()
timeval & presentationTime ()
unsigned & durationInMicroseconds ()
timeval & prevPresentationTime ()
int & durationImbalance ()

Private Attributes

unsigned fOurTrackNumber
timeval fPrevPresentationTime
int fDurationImbalance
unsigned fOpusTrackNumber


class MatroskaDemux
class MatroskaFileParser
class MediaLookupTable

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 (  )  [private, virtual]

Member Function Documentation

void MatroskaDemuxedTrack::seekToTime ( double &  seekNPT  ) 

virtual void MatroskaDemuxedTrack::doGetNextFrame (  )  [private, virtual]

Implements FramedSource.

virtual char const* MatroskaDemuxedTrack::MIMEtype (  )  const [private, virtual]

Reimplemented from MediaSource.

unsigned char* MatroskaDemuxedTrack::to (  )  [inline, private]

Definition at line 46 of file MatroskaDemuxedTrack.hh.

References FramedSource::fTo.

00046 { return fTo; }

unsigned MatroskaDemuxedTrack::maxSize (  )  [inline, private]

Definition at line 47 of file MatroskaDemuxedTrack.hh.

References FramedSource::fMaxSize.

00047 { return fMaxSize; }

unsigned& MatroskaDemuxedTrack::frameSize (  )  [inline, private]

Definition at line 48 of file MatroskaDemuxedTrack.hh.

References FramedSource::fFrameSize.

00048 { return fFrameSize; }

unsigned& MatroskaDemuxedTrack::numTruncatedBytes (  )  [inline, private]

Definition at line 49 of file MatroskaDemuxedTrack.hh.

References FramedSource::fNumTruncatedBytes.

00049 { return fNumTruncatedBytes; }

struct timeval& MatroskaDemuxedTrack::presentationTime (  )  [inline, read, private]

Definition at line 50 of file MatroskaDemuxedTrack.hh.

References FramedSource::fPresentationTime.

00050 { return fPresentationTime; }

unsigned& MatroskaDemuxedTrack::durationInMicroseconds (  )  [inline, private]

Definition at line 51 of file MatroskaDemuxedTrack.hh.

References FramedSource::fDurationInMicroseconds.

00051 { return fDurationInMicroseconds; }

struct timeval& MatroskaDemuxedTrack::prevPresentationTime (  )  [inline, read, private]

Definition at line 53 of file MatroskaDemuxedTrack.hh.

References fPrevPresentationTime.

00053 { return fPrevPresentationTime; }

int& MatroskaDemuxedTrack::durationImbalance (  )  [inline, private]

Definition at line 54 of file MatroskaDemuxedTrack.hh.

References fDurationImbalance.

00054 { return fDurationImbalance; }

static Boolean FramedSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
FramedSource *&  resultSource 
) [static, inherited]

static Boolean MediaSource::lookupByName ( UsageEnvironment env,
char const *  sourceName,
MediaSource *&  resultSource 
) [static, inherited]

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

void FramedSource::getNextFrame ( unsigned char *  to,
unsigned  maxSize,
afterGettingFunc afterGettingFunc,
void *  afterGettingClientData,
onCloseFunc onCloseFunc,
void *  onCloseClientData 
) [inherited]

static void FramedSource::handleClosure ( void *  clientData  )  [static, inherited]

void FramedSource::handleClosure (  )  [inherited]

void FramedSource::stopGettingFrames (  )  [inherited]

virtual unsigned FramedSource::maxFrameSize (  )  const [virtual, inherited]

Reimplemented in MPEG1or2DemuxedElementaryStream.

Boolean FramedSource::isCurrentlyAwaitingData (  )  const [inline, inherited]

Definition at line 61 of file FramedSource.hh.

References FramedSource::fIsCurrentlyAwaitingData.

00061 {return fIsCurrentlyAwaitingData;}

static void FramedSource::afterGetting ( FramedSource source  )  [static, inherited]

virtual void FramedSource::doStopGettingFrames (  )  [protected, virtual, inherited]

Reimplemented in BasicUDPSource, ByteStreamFileSource, FramedFilter, MPEG1or2DemuxedElementaryStream, MPEG2TransportStreamFramer, MPEG2TransportStreamFromESSource, MPEG2TransportStreamFromPESSource, MPEG2TransportStreamTrickModeFilter, MultiFramedRTPSource, T140IdleFilter, and WAVAudioFileSource.

virtual void MediaSource::getAttributes (  )  const [virtual, inherited]

Reimplemented in FramedFilter, MP3ADUTranscoder, MP3FileSource, and RTPSource.

virtual Boolean MediaSource::isRTPSource (  )  const [virtual, inherited]

Reimplemented in RTPSource.

virtual Boolean MediaSource::isMPEG1or2VideoStreamFramer (  )  const [virtual, inherited]

Reimplemented in MPEG1or2VideoStreamFramer.

virtual Boolean MediaSource::isMPEG4VideoStreamFramer (  )  const [virtual, inherited]

Reimplemented in MPEG4VideoStreamFramer.

virtual Boolean MediaSource::isH264VideoStreamFramer (  )  const [virtual, inherited]

Reimplemented in H264VideoStreamDiscreteFramer, and H264VideoStreamFramer.

virtual Boolean MediaSource::isH265VideoStreamFramer (  )  const [virtual, inherited]

Reimplemented in H265VideoStreamDiscreteFramer, and H265VideoStreamFramer.

virtual Boolean MediaSource::isDVVideoStreamFramer (  )  const [virtual, inherited]

Reimplemented in DVVideoStreamFramer.

virtual Boolean MediaSource::isJPEGVideoSource (  )  const [virtual, inherited]

Reimplemented in JPEGVideoSource.

virtual Boolean MediaSource::isAMRAudioSource (  )  const [virtual, inherited]

Reimplemented in AMRAudioSource.

static void Medium::close ( UsageEnvironment env,
char const *  mediumName 
) [static, inherited]

static void Medium::close ( Medium medium  )  [static, inherited]

UsageEnvironment& Medium::envir (  )  const [inline, inherited]

Definition at line 59 of file Media.hh.

References Medium::fEnviron.

Referenced by MediaSubsession::env(), RTSPServer::RTSPClientSession::envir(), RTSPServer::RTSPClientConnection::envir(), and RTPInterface::envir().

00059 {return fEnviron;}

char const* Medium::name (  )  const [inline, inherited]

Definition at line 61 of file Media.hh.

References Medium::fMediumName.

00061 {return fMediumName;}

virtual Boolean Medium::isSink (  )  const [virtual, inherited]

Reimplemented in MediaSink.

virtual Boolean Medium::isRTCPInstance (  )  const [virtual, inherited]

Reimplemented in RTCPInstance.

virtual Boolean Medium::isRTSPClient (  )  const [virtual, inherited]

Reimplemented in RTSPClient.

virtual Boolean Medium::isRTSPServer (  )  const [virtual, inherited]

Reimplemented in RTSPServer.

virtual Boolean Medium::isMediaSession (  )  const [virtual, inherited]

Reimplemented in MediaSession.

virtual Boolean Medium::isServerMediaSession (  )  const [virtual, inherited]

Reimplemented in ServerMediaSession.

virtual Boolean Medium::isDarwinInjector (  )  const [virtual, inherited]

Reimplemented in DarwinInjector.

TaskToken& Medium::nextTask (  )  [inline, protected, inherited]

Definition at line 78 of file Media.hh.

References Medium::fNextTask.

00078                         {
00079         return fNextTask;
00080   }

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.

friend class MediaLookupTable [friend, inherited]

Definition at line 74 of file Media.hh.

Field Documentation

unsigned MatroskaDemuxedTrack::fOurTrackNumber [private]

Definition at line 57 of file MatroskaDemuxedTrack.hh.

MatroskaDemux& MatroskaDemuxedTrack::fOurSourceDemux [private]

Definition at line 58 of file MatroskaDemuxedTrack.hh.

struct timeval MatroskaDemuxedTrack::fPrevPresentationTime [read, private]

Definition at line 59 of file MatroskaDemuxedTrack.hh.

Referenced by prevPresentationTime().

int MatroskaDemuxedTrack::fDurationImbalance [private]

Definition at line 60 of file MatroskaDemuxedTrack.hh.

Referenced by durationImbalance().

unsigned MatroskaDemuxedTrack::fOpusTrackNumber [private]

Definition at line 61 of file MatroskaDemuxedTrack.hh.

unsigned char* FramedSource::fTo [protected, inherited]

Definition at line 75 of file FramedSource.hh.

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

unsigned FramedSource::fMaxSize [protected, inherited]

Definition at line 76 of file FramedSource.hh.

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

unsigned FramedSource::fFrameSize [protected, inherited]

Definition at line 77 of file FramedSource.hh.

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

unsigned FramedSource::fNumTruncatedBytes [protected, inherited]

Definition at line 78 of file FramedSource.hh.

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

struct timeval FramedSource::fPresentationTime [read, protected, inherited]

Definition at line 79 of file FramedSource.hh.

Referenced by OggDemuxedTrack::presentationTime(), presentationTime(), and H264or5VideoStreamFramer::setPresentationTime().

unsigned FramedSource::fDurationInMicroseconds [protected, inherited]

Definition at line 80 of file FramedSource.hh.

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

The documentation for this class was generated from the following file:
Generated on Wed Dec 17 07:46:52 2014 for live by  doxygen 1.5.2