RTP Audio System  2.0.0
DecoderInterface Class Reference

Decoder Interface. More...

#include <decoderinterface.h>

Inheritance diagram for DecoderInterface:
AudioDecoderInterface DecoderRepositoryInterface AdvancedAudioDecoder AudioDecoderRepository SimpleAudioDecoder AudioDecoderRepository

List of all members.

Public Member Functions

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

Detailed Description

Decoder Interface.

This class is the interface for a decoder.

Author:
Thomas Dreibholz
Version:
1.0

Member Function Documentation

virtual void DecoderInterface::activate ( ) [pure virtual]

Activate the decoder. Usage example: Start an decoder thread.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual bool DecoderInterface::checkNextPacket ( DecoderPacket packet) [pure virtual]

Check next packet. This function has to set valid packet->Layers and packet->Layer value.

Parameters:
decoderPacketDecoderPacket structure.
Returns:
true, if packet is valid; false otherwise.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual void DecoderInterface::deactivate ( ) [pure virtual]

Deactivate the decoder. Usage example: Stop an decoder thread.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual card8 DecoderInterface::getErrorCode ( ) const [pure virtual]

Get error code Usage example: Return error, if reading from file failed.

Returns:
Error code

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual card64 DecoderInterface::getMaxPosition ( ) const [pure virtual]

Get maximum position in nanoseconds.

Returns:
Maximum position in nanoseconds.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual void DecoderInterface::getMediaInfo ( MediaInfo mediaInfo) const [pure virtual]

Get media info.

Parameters:
mediaInfoReference to store MediaInfo to.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual card64 DecoderInterface::getPosition ( ) const [pure virtual]

Get current position in nanoseconds.

Returns:
Position in nanoseconds.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual const card16 DecoderInterface::getTypeID ( ) const [pure virtual]

Get the decoder's type ID.

Returns:
Decoder's type ID.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual const char* DecoderInterface::getTypeName ( ) const [pure virtual]

Get the decoder's name.

Returns:
Decoder's name

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual void DecoderInterface::handleNextPacket ( const DecoderPacket decoderPacket) [pure virtual]

Handle next received packet.

Parameters:
decoderPacketDecoderPacket structure.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.

virtual void DecoderInterface::reset ( ) [pure virtual]

Reset the decoder. Usage example: Reset an decoder thread.

Implemented in AudioDecoderRepository, AdvancedAudioDecoder, and SimpleAudioDecoder.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines