EMIPLIB
Public Member Functions

MIPRTPPacketDecoder Class Reference

Abstract base class for RTP packet decoders for a specific kind of payload. More...

#include <miprtppacketdecoder.h>

Inheritance diagram for MIPRTPPacketDecoder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool validatePacket (const jrtplib::RTPPacket *pRTPPack, real_t &timestampUnit, 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 > &timestamps)=0
 Creates a new message from an RTP packet.

Detailed Description


Member Function Documentation

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.

Parameters:
pRTPPackThe RTP packet which should be processed.
messagesA list in which the resulting messages should be stored.
timestampsA 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.


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