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

#include <OggFile.hh>

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

Public Types

typedef void() onCreationFunc(OggFile *newFile, void *clientData)
 

Public Member Functions

OggTracklookup (u_int32_t trackNumber)
 
OggDemuxnewDemux (OggDemuxOnDeletionFunc *onDeletionFunc=NULL, void *objectToNotify=NULL)
 
char const * fileName () const
 
unsigned numTracks () const
 
FramedSourcecreateSourceForStreaming (FramedSource *baseSource, u_int32_t trackNumber, unsigned &estBitrate, unsigned &numFiltersInFrontOfTrack)
 
RTPSinkcreateRTPSinkForTrackNumber (u_int32_t trackNumber, Groupsock *rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic)
 
class OggTrackTable & trackTable ()
 
UsageEnvironmentenvir () const
 
char const * name () const
 
virtual Boolean isSource () 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 void createNew (UsageEnvironment &env, char const *fileName, onCreationFunc *onCreation, void *onCreationClientData)
 
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

TaskTokennextTask ()
 

Private Member Functions

 OggFile (UsageEnvironment &env, char const *fileName, onCreationFunc *onCreation, void *onCreationClientData)
 
virtual ~OggFile ()
 
void handleEndOfBosPageParsing ()
 
void addTrack (OggTrack *newTrack)
 
void removeDemux (OggDemux *demux)
 

Static Private Member Functions

static void handleEndOfBosPageParsing (void *clientData)
 

Private Attributes

char const * fFileName
 
onCreationFuncfOnCreation
 
void * fOnCreationClientData
 
class OggTrackTable * fTrackTable
 
HashTablefDemuxesTable
 
class OggFileParserfParserForInitialization
 
UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Friends

class OggFileParser
 
class OggDemux
 

Detailed Description

Definition at line 36 of file OggFile.hh.

Member Typedef Documentation

◆ onCreationFunc

typedef void() OggFile::onCreationFunc(OggFile *newFile, void *clientData)

Definition at line 38 of file OggFile.hh.

Constructor & Destructor Documentation

◆ OggFile()

OggFile::OggFile ( UsageEnvironment env,
char const *  fileName,
onCreationFunc onCreation,
void *  onCreationClientData 
)
private

◆ ~OggFile()

virtual OggFile::~OggFile ( )
privatevirtual

Member Function Documentation

◆ addTrack()

void OggFile::addTrack ( OggTrack newTrack)
private

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

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

◆ createNew()

static void OggFile::createNew ( UsageEnvironment env,
char const *  fileName,
onCreationFunc onCreation,
void *  onCreationClientData 
)
static

◆ createRTPSinkForTrackNumber()

RTPSink * OggFile::createRTPSinkForTrackNumber ( u_int32_t  trackNumber,
Groupsock rtpGroupsock,
unsigned char  rtpPayloadTypeIfDynamic 
)

◆ createSourceForStreaming()

FramedSource * OggFile::createSourceForStreaming ( FramedSource baseSource,
u_int32_t  trackNumber,
unsigned &  estBitrate,
unsigned &  numFiltersInFrontOfTrack 
)

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

◆ fileName()

char const * OggFile::fileName ( ) const
inline

Definition at line 53 of file OggFile.hh.

53{ return fFileName; }
char const * fFileName
Definition: OggFile.hh:83

References fFileName.

◆ handleEndOfBosPageParsing() [1/2]

void OggFile::handleEndOfBosPageParsing ( )
private

◆ handleEndOfBosPageParsing() [2/2]

static void OggFile::handleEndOfBosPageParsing ( void *  clientData)
staticprivate

◆ isMediaSession()

virtual Boolean Medium::isMediaSession ( ) const
virtualinherited

Reimplemented in MediaSession.

◆ isRTCPInstance()

virtual Boolean Medium::isRTCPInstance ( ) const
virtualinherited

Reimplemented in RTCPInstance.

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

◆ isSource()

virtual Boolean Medium::isSource ( ) const
virtualinherited

Reimplemented in MediaSource.

◆ lookup()

OggTrack * OggFile::lookup ( u_int32_t  trackNumber)

◆ lookupByName()

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

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

◆ newDemux()

OggDemux * OggFile::newDemux ( OggDemuxOnDeletionFunc onDeletionFunc = NULL,
void *  objectToNotify = NULL 
)

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

◆ numTracks()

unsigned OggFile::numTracks ( ) const

◆ removeDemux()

void OggFile::removeDemux ( OggDemux demux)
private

◆ trackTable()

class OggTrackTable & OggFile::trackTable ( )
inline

Definition at line 67 of file OggFile.hh.

67{ return *fTrackTable; }
class OggTrackTable * fTrackTable
Definition: OggFile.hh:87

References fTrackTable.

Friends And Related Function Documentation

◆ OggDemux

friend class OggDemux
friend

Definition at line 82 of file OggFile.hh.

◆ OggFileParser

friend class OggFileParser
friend

Definition at line 81 of file OggFile.hh.

Field Documentation

◆ fDemuxesTable

HashTable* OggFile::fDemuxesTable
private

Definition at line 88 of file OggFile.hh.

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

◆ fFileName

char const* OggFile::fFileName
private

Definition at line 83 of file OggFile.hh.

Referenced by fileName().

◆ fMediumName

char Medium::fMediumName[mediumNameMaxLen]
privateinherited

Definition at line 83 of file Media.hh.

Referenced by Medium::name().

◆ fNextTask

TaskToken Medium::fNextTask
privateinherited

Definition at line 84 of file Media.hh.

Referenced by Medium::nextTask().

◆ fOnCreation

onCreationFunc* OggFile::fOnCreation
private

Definition at line 84 of file OggFile.hh.

◆ fOnCreationClientData

void* OggFile::fOnCreationClientData
private

Definition at line 85 of file OggFile.hh.

◆ fParserForInitialization

class OggFileParser* OggFile::fParserForInitialization
private

Definition at line 89 of file OggFile.hh.

◆ fTrackTable

class OggTrackTable* OggFile::fTrackTable
private

Definition at line 87 of file OggFile.hh.

Referenced by trackTable().


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