OPAL  Version 3.18.8
OpalMediaFormatPair Class Reference

#include <transcoders.h>

Inheritance diagram for OpalMediaFormatPair:
Collaboration diagram for OpalMediaFormatPair:

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
inputMediaFormatInput media format
outputMediaFormatOutput 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
objObject to compare against.
const OpalMediaFormat& OpalMediaFormatPair::GetInputFormat ( ) const
inline

Get the names of the input or output formats.

References inputMediaFormat.

const OpalMediaFormat& OpalMediaFormatPair::GetOutputFormat ( ) const
inline

Get the names of the input or output formats.

References outputMediaFormat.

void OpalMediaFormatPair::PrintOn ( ostream &  strm) const

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

Parameters
strmStream to output text representation

Field Documentation

OpalMediaFormat OpalMediaFormatPair::inputMediaFormat
protected

Referenced by GetInputFormat().

OpalMediaFormat OpalMediaFormatPair::outputMediaFormat
protected

Referenced by GetOutputFormat().


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