EMIPLIB
|
Base class for media messages (like audio and video). More...
#include <mipmediamessage.h>
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 MIPMediaMessage * | createCopy () 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. |
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.
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.
mType | Medium type. |
isRaw | Flag indicating if the data contained in the message corresponds to raw data or encoded (compressed) data. |
msgSubtype | The subtype of the message. |
void MIPMediaMessage::copyMediaInfoFrom | ( | const MIPMediaMessage & | msg | ) | [inline] |
Referenced by MIPRawRGBVideoMessage::createCopy(), MIPRawYUYVVideoMessage::createCopy(), MIPRawYUV420PVideoMessage::createCopy(), MIPRaw16bitAudioMessage::createCopy(), MIPRawU8AudioMessage::createCopy(), MIPRawFloatAudioMessage::createCopy(), MIPEncodedVideoMessage::createCopy(), MIPEncodedAudioMessage::createCopy(), and MIPAudioMessage::setNumberOfChannels().
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] |