RTP Trace System
1.0
|
Decoder Interface. More...
#include <decoderinterface.h>
Public Member Functions | |
virtual | ~DecoderInterface () |
virtual const card16 | getTypeID () const =0 |
virtual const char * | getTypeName () const =0 |
virtual void | activate ()=0 |
virtual void | deactivate ()=0 |
virtual void | reset ()=0 |
virtual bool | checkNextPacket (DecoderPacket *packet)=0 |
virtual void | handleNextPacket (const DecoderPacket *decoderPacket)=0 |
virtual void | getMediaInfo (MediaInfo &mediaInfo) const =0 |
virtual card8 | getErrorCode () const =0 |
virtual card64 | getPosition () const =0 |
virtual card64 | getMaxPosition () const =0 |
Decoder Interface.
This class is the interface for a decoder.
Coral::DecoderInterface::~DecoderInterface | ( | ) | [virtual] |
Virtual destructor.
virtual void Coral::DecoderInterface::activate | ( | ) | [pure virtual] |
Activate the decoder. Usage example: Start an decoder thread.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual bool Coral::DecoderInterface::checkNextPacket | ( | DecoderPacket * | packet | ) | [pure virtual] |
Check next packet. This function has to set valid packet->Layers and packet->Layer value.
decoderPacket | DecoderPacket structure. |
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual void Coral::DecoderInterface::deactivate | ( | ) | [pure virtual] |
Deactivate the decoder. Usage example: Stop an decoder thread.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual card8 Coral::DecoderInterface::getErrorCode | ( | ) | const [pure virtual] |
Get error code Usage example: Return error, if reading from file failed.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual card64 Coral::DecoderInterface::getMaxPosition | ( | ) | const [pure virtual] |
Get maximum position in nanoseconds.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual void Coral::DecoderInterface::getMediaInfo | ( | MediaInfo & | mediaInfo | ) | const [pure virtual] |
Get media info.
mediaInfo | Reference to store MediaInfo to. |
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual card64 Coral::DecoderInterface::getPosition | ( | ) | const [pure virtual] |
Get current position in nanoseconds.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual const card16 Coral::DecoderInterface::getTypeID | ( | ) | const [pure virtual] |
Get the decoder's type ID.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual const char* Coral::DecoderInterface::getTypeName | ( | ) | const [pure virtual] |
Get the decoder's name.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual void Coral::DecoderInterface::handleNextPacket | ( | const DecoderPacket * | decoderPacket | ) | [pure virtual] |
Handle next received packet.
decoderPacket | DecoderPacket structure. |
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.
virtual void Coral::DecoderInterface::reset | ( | ) | [pure virtual] |
Reset the decoder. Usage example: Reset an decoder thread.
Implemented in Coral::TraceDecoderRepository, and Coral::TraceDecoder.