OpalMediaFormatPair Class Reference

#include <transcoders.h>

Inheritance diagram for OpalMediaFormatPair:

OpalTranscoder OpalFramedTranscoder OpalStreamedTranscoder OpalVideoTranscoder Opal_GSM0610 Opal_iLBC_Decoder Opal_iLBC_Encoder Opal_LPC10_PCM Opal_MSIMA_PCM Opal_PCM_LPC10 Opal_PCM_MSIMA Opal_Speex_Transcoder Opal_G711_ALaw_PCM Opal_G711_uLaw_PCM Opal_G726_Transcoder Opal_Linear16Mono_PCM Opal_PCM_G711_ALaw Opal_PCM_G711_uLaw Opal_PCM_Linear16Mono Opal_H261_YUV420P Opal_YUV420P_H261 OpalUncompVideoTranscoder List of all members.

Public Member Functions

Construction
 OpalMediaFormatPair (const OpalMediaFormat &inputMediaFormat, const OpalMediaFormat &outputMediaFormat)
Overrides from PObject
void PrintOn (ostream &strm) const
virtual Comparison Compare (const PObject &obj) const
Operations
const OpalMediaFormatGetInputFormat () const
const OpalMediaFormatGetOutputFormat () const

Protected Attributes

OpalMediaFormat inputMediaFormat
OpalMediaFormat outputMediaFormat

Detailed Description

This class described an OpalTranscoder in terms of a pair of OpalMediaFormat instances, for input and output.


Constructor & Destructor Documentation

OpalMediaFormatPair::OpalMediaFormatPair ( const OpalMediaFormat inputMediaFormat,
const OpalMediaFormat outputMediaFormat 
)

Create a new transcoder implementation.

Parameters:
inputMediaFormat  Input media format
outputMediaFormat  Output media format


Member Function Documentation

virtual Comparison OpalMediaFormatPair::Compare ( const PObject &  obj  )  const [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.

Returns:
LessThan#, EqualTo# or GreaterThan# according to the relative rank of the objects.
Parameters:
obj  Object to compare against.

const OpalMediaFormat& OpalMediaFormatPair::GetInputFormat (  )  const [inline]

Get the names of the input or output formats.

const OpalMediaFormat& OpalMediaFormatPair::GetOutputFormat (  )  const [inline]

Get the names of the input or output formats.

void OpalMediaFormatPair::PrintOn ( ostream &  strm  )  const

Standard stream print function. The PObject class has a << operator defined that calls this function polymorphically.

Parameters:
strm  Stream to output text representation


Member Data Documentation

OpalMediaFormat OpalMediaFormatPair::inputMediaFormat [protected]

OpalMediaFormat OpalMediaFormatPair::outputMediaFormat [protected]


The documentation for this class was generated from the following file:
Generated on Mon Sep 25 16:21:52 2006 for OPAL by  doxygen 1.4.7