OPAL
Version 3.18.8
|
#include <mediacmd.h>
Public Member Functions | |
OpalMediaCommand (const OpalMediaType &mediaType, unsigned sessionID=0, unsigned ssrc=0) | |
Overrides from PObject | |
virtual void | PrintOn (ostream &strm) const |
virtual Comparison | Compare (const PObject &obj) const |
virtual PObject * | Clone () const =0 |
Operations | |
virtual PString | GetName () const =0 |
virtual void * | GetPlugInData () const |
virtual unsigned * | GetPlugInSize () const |
Memebers | |
const OpalMediaType & | GetMediaType () const |
unsigned | GetSessionID () const |
unsigned | GetSyncSource () const |
Protected Attributes | |
OpalMediaType | m_mediaType |
unsigned | m_sessionID |
unsigned | m_ssrc |
This is the base class for a command to a media transcoder and/or media stream. The commands are highly context sensitive, for example OpalVideoUpdatePicture would only apply to a video transcoder.
OpalMediaCommand::OpalMediaCommand | ( | const OpalMediaType & | mediaType, |
unsigned | sessionID = 0 , |
||
unsigned | ssrc = 0 |
||
) |
mediaType | Media type to search for in open streams |
sessionID | Session for media stream, 0 is use first mediaType stream |
ssrc | Sync Source for media stream (if RTP) |
|
pure virtual |
|
virtual |
Compare the two objects and return their relative rank. This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.
The default function is to use the CompareObjectMemoryDirect()
function to do a byte wise memory comparison of the two objects.
LessThan
, EqualTo
or GreaterThan
according to the relative rank of the objects. obj | Object to compare against. |
|
inline |
References m_mediaType.
|
pure virtual |
Get the name of the command.
Implemented in OpalTemporalSpatialTradeOff, OpalVideoPictureLoss, OpalVideoUpdatePicture, OpalMediaMaxPayload, OpalMediaPacketLoss, and OpalMediaFlowControl.
|
virtual |
Get data buffer pointer for transfer to/from codec plug-in.
|
virtual |
Get data buffer size for transfer to/from codec plug-in.
|
inline |
References m_sessionID.
|
inline |
References m_ssrc.
|
virtual |
Standard stream print function. The PObject class has a << operator defined that calls this function polymorphically.
strm | Stream to output text representation |
|
protected |
Referenced by GetMediaType().
|
protected |
Referenced by GetSessionID().
|
protected |
Referenced by GetSyncSource().