EMIPLIB
Public Types | Public Member Functions | Protected Member Functions

MIPMediaMessage Class Reference

Base class for media messages (like audio and video). More...

#include <mipmediamessage.h>

Inheritance diagram for MIPMediaMessage:
Inheritance graph
[legend]
Collaboration diagram for MIPMediaMessage:
Collaboration graph
[legend]

List of all members.

Public Types

enum  MediumType
 

Medium type.

More...

Public Member Functions

uint64_t getSourceID () const
 Returns the source ID.
MIPTime getTime () const
 Returns the timing information.
void setSourceID (uint64_t id)
 Sets the source ID.
void setTime (MIPTime t)
 Sets the timing information.
void copyMediaInfoFrom (const MIPMediaMessage &msg)
 Copies the source ID and timing information from another message.
virtual MIPMediaMessagecreateCopy () const
 Virtual function to allow copies of subclass instances to be made.

Protected Member Functions

 MIPMediaMessage (MediumType mType, bool isRaw, uint32_t msgSubtype)
 Constructor, intended to be used by subclasses only.

Detailed Description

This class is the base class for media messages (currently only for audio and video). Methods are provided to store timing information and a source identifier. Input components should store the sampling instant of the first sample in the timing information. The MIPRTPDecoder class uses the timing information to store the position of the data in the output stream.


Member Enumeration Documentation


Constructor & Destructor Documentation

MIPMediaMessage::MIPMediaMessage ( MediumType  mType,
bool  isRaw,
uint32_t  msgSubtype 
) [inline, protected]

With this constructor, a MIPMediaMessage instance can be created. It should only be used by subclasses.

Parameters:
mTypeMedium type.
isRawFlag indicating if the data contained in the message corresponds to raw data or encoded (compressed) data.
msgSubtypeThe subtype of the message.

Member Function Documentation

void MIPMediaMessage::copyMediaInfoFrom ( const MIPMediaMessage msg) [inline]
virtual MIPMediaMessage* MIPMediaMessage::createCopy ( ) const [inline, virtual]
uint64_t MIPMediaMessage::getSourceID ( ) const [inline]
MIPTime MIPMediaMessage::getTime ( ) const [inline]
void MIPMediaMessage::setSourceID ( uint64_t  id) [inline]
void MIPMediaMessage::setTime ( MIPTime  t) [inline]

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