OpalMediaFormatPair Class Reference

#include <transcoders.h>

Inheritance diagram for OpalMediaFormatPair:

OpalTranscoder OpalFramedTranscoder OpalStreamedTranscoder OpalVideoTranscoder OpalEmptyFramedAudioTranscoder Opal_G711_ALaw_PCM Opal_G711_uLaw_PCM Opal_Linear16Mono_PCM Opal_PCM_G711_ALaw Opal_PCM_G711_uLaw Opal_PCM_Linear16Mono OpalUncompVideoTranscoder List of all members.

Public Member Functions

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

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

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

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.


Member Data Documentation

OpalMediaFormat OpalMediaFormatPair::inputMediaFormat [protected]

OpalMediaFormat OpalMediaFormatPair::outputMediaFormat [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:34:05 2008 for OPAL by  doxygen 1.5.1