live
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
MediaTranscodingTable Class Reference

#include <MediaTranscodingTable.hh>

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

Public Member Functions

virtual FramedFilterlookupTranscoder (MediaSubsession &, char *&outputCodecName)
 
virtual Boolean weWillTranscode (char const *, char const *)
 
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 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

 MediaTranscodingTable (UsageEnvironment &env)
 
virtual ~MediaTranscodingTable ()
 
TaskTokennextTask ()
 

Private Attributes

UsageEnvironmentfEnviron
 
char fMediumName [mediumNameMaxLen]
 
TaskToken fNextTask
 

Detailed Description

Definition at line 34 of file MediaTranscodingTable.hh.

Constructor & Destructor Documentation

◆ MediaTranscodingTable()

MediaTranscodingTable::MediaTranscodingTable ( UsageEnvironment env)
inlineprotected

Definition at line 59 of file MediaTranscodingTable.hh.

60 : Medium(env) {
61 }
Definition: Media.hh:50

◆ ~MediaTranscodingTable()

virtual MediaTranscodingTable::~MediaTranscodingTable ( )
inlineprotectedvirtual

Definition at line 62 of file MediaTranscodingTable.hh.

62 {
63 }

Member Function Documentation

◆ close() [1/2]

static void Medium::close ( Medium medium)
staticinherited

◆ close() [2/2]

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

◆ envir()

UsageEnvironment & Medium::envir ( ) const
inlineinherited

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

◆ lookupByName()

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

◆ lookupTranscoder()

virtual FramedFilter * MediaTranscodingTable::lookupTranscoder ( MediaSubsession ,
char *&  outputCodecName 
)
inlinevirtual

Definition at line 37 of file MediaTranscodingTable.hh.

38 {
39 // Default implementation: Return NULL (indicating: no transcoding).
40 // You would reimplement this virtual function in a subclass to return a new 'transcoding'
41 // "FramedFilter" (subclass) object for each ("mediumName","codecName") that you wish to
42 // transcode (or return NULL for no transcoding).
43 // (Note that "inputCodecDescription" must have a non-NULL "readSource()"; this is used
44 // as the input to the new "FramedFilter" (subclass) object.)
45 outputCodecName = NULL;
46 return NULL;
47 }
#define NULL

References NULL.

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

◆ weWillTranscode()

virtual Boolean MediaTranscodingTable::weWillTranscode ( char const *  ,
char const *   
)
inlinevirtual

Definition at line 49 of file MediaTranscodingTable.hh.

49 {
50 // Default implementation: Return False.
51 // You would reimplement this in a subclass - returning True for each
52 // <mediumName>/<codecName> for which you'll do transcoding.
53 // Note: Unlike "lookupTranscoder()", this function does not actually create any 'transcoding'
54 // filter objects. (It may be called before "MediaSubsession::initiate()".)
55 return False;
56 }
const Boolean False
Definition: Boolean.hh:28

References False.

Field Documentation

◆ fEnviron

UsageEnvironment& Medium::fEnviron
privateinherited

Definition at line 82 of file Media.hh.

Referenced by Medium::envir().

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


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