EMIPLIB
|
Abstract base class for RTP packet decoders for a specific kind of payload. More...
#include <miprtppacketdecoder.h>
Public Member Functions | |
virtual bool | validatePacket (const jrtplib::RTPPacket *pRTPPack, real_t ×tampUnit, real_t timestampUnitEstimate)=0 |
Validates an RTP packet and gives information about the timestamp unit of the packet data. | |
virtual void | createNewMessages (const jrtplib::RTPPacket *pRTPPack, std::list< MIPMediaMessage * > &messages, std::list< uint32_t > ×tamps)=0 |
Creates a new message from an RTP packet. |
virtual void MIPRTPPacketDecoder::createNewMessages | ( | const jrtplib::RTPPacket * | pRTPPack, |
std::list< MIPMediaMessage * > & | messages, | ||
std::list< uint32_t > & | timestamps | ||
) | [pure virtual] |
This function has to be implemented by a derived class. Based on the validated RTP packet pRTPPack
, one or more appropriate messages should be generated.
pRTPPack | The RTP packet which should be processed. |
messages | A list in which the resulting messages should be stored. |
timestamps | A list containing the RTP timestamp for each message in the 'messages' list. |
virtual bool MIPRTPPacketDecoder::validatePacket | ( | const jrtplib::RTPPacket * | pRTPPack, |
real_t & | timestampUnit, | ||
real_t | timestampUnitEstimate | ||
) | [pure virtual] |
This function validates an RTP packet and provides information about the timestamp unit of the packet data. It has to be implemented in a derived class. The function should return true if the packet is valid and false otherwise and if possible, the timestamp unit should be filled in.