#include <mnt_mpeg_rtp_reassembler_buffer.h>
Inheritance diagram for MntMPEGRTPReassemblerBuffer:
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. | |
MntRTPMPEGPacket * | get_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_ |
This is where packets wait before other packets from the same frame arrives.
|
Add packet p into the buffer in increasing RTP seq number. NOTE: wrap-around of sequence number is not considered. |
|
The maximum number of packets this buffer can hold |
|
Number of packets currently in the buffer |
|
The buffer |
|
Timestamp of the frame in this buffer |