Main Page | Class Hierarchy | Class List | Directories | Class Members

MntMPEGRTPReassemblerBuffer Class Reference

MntMPEGRTPReassemblerBuffer is a packet buffer where received packets are stored (in increasing order of sequence number) before the packets are passed to decoder. More...

#include <mnt_mpeg_rtp_reassembler_buffer.h>

Inheritance diagram for MntMPEGRTPReassemblerBuffer:

MntData List of all members.

Public Member Functions

 MntMPEGRTPReassemblerBuffer ()
 Allocate a buffer to hold (pointer to) 100 MntRTPMPEGPacket objects.
uint16_t get_num_of_pkts ()
 Return the number of packets currently in the buffer.
MntRTPMPEGPacketget_packet (int i)
 Return the packet at position i.
void set_timestamp (uint32_t ts)
 Set the timestamp of the buffer to ts.
uint32_t get_timestamp ()
 Return the timestamp of the buffer.
void free_packets ()
 Free each packets in the buffer, and reset the number of packets to 0.
void add (MntRTPMPEGPacket *p)
 Add packet p into the buffer in increasing RTP seq number.

Private Attributes

uint32_t ts_
uint16_t num_of_pkts_
uint16_t buffer_size_
MntRTPMPEGPacket ** pkt_buf_

Detailed Description

MntMPEGRTPReassemblerBuffer is a packet buffer where received packets are stored (in increasing order of sequence number) before the packets are passed to decoder.

This is where packets wait before other packets from the same frame arrives.


Member Function Documentation

void MntMPEGRTPReassemblerBuffer::add MntRTPMPEGPacket p  ) 
 

Add packet p into the buffer in increasing RTP seq number.

NOTE: wrap-around of sequence number is not considered.


Member Data Documentation

uint16_t MntMPEGRTPReassemblerBuffer::buffer_size_ [private]
 

The maximum number of packets this buffer can hold

uint16_t MntMPEGRTPReassemblerBuffer::num_of_pkts_ [private]
 

Number of packets currently in the buffer

MntRTPMPEGPacket** MntMPEGRTPReassemblerBuffer::pkt_buf_ [private]
 

The buffer

uint32_t MntMPEGRTPReassemblerBuffer::ts_ [private]
 

Timestamp of the frame in this buffer


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 12:37:13 2005 for mnt by  doxygen 1.4.4