#include "rtp.h"#include "rtpptdefs.h"#include "bufferpool.h"

Go to the source code of this file.
Functions | |
| int | rtp_fill_buffers (rtp_thread *rtp_th) |
| int | rtp_fill_buffer (rtp_ssrc *stm_src, rtp_frame *fr, rtp_buff *config) |
| double | rtp_get_next_ts (rtp_ssrc *stm_src) |
| int16_t | rtp_get_next_pt (rtp_ssrc *stm_src) |
| void | rtp_update_fps (rtp_ssrc *stm_src, uint32_t timestamp, unsigned pt) |
| float | rtp_get_fps (rtp_ssrc *stm_src) |
| rtp_pkt * | rtp_get_n_pkt (rtp_ssrc *stm_src, unsigned int *len, unsigned int pkt_num) |
| rtp_pkt * | rtp_get_pkt (rtp_ssrc *stm_src, size_t *len) |
| int | rtp_rm_pkt (rtp_ssrc *stm_src) |
| static void | socket_clear (rtp_ssrc *stm_src) |
| void | rtp_rm_all_pkts (rtp_ssrc *stm_src) |
Definition in file rtp_buffer.c.
| rtp_pkt* rtp_get_n_pkt | ( | rtp_ssrc * | stm_src, | |
| unsigned int * | len, | |||
| unsigned int | pkt_num | |||
| ) |
Returns a pointer to Nth packet in the bufferpool for given playout buffer. WARNING: the pointer returned is the memory space of the slot inside buffer pool: Once the packet is decoded it must be removed from rtp queue using
| stm_src | The source for which to get the packet | |
| len | this is a return parameter for lenght of pkt. NULL value is allowed: in this case, we understand that you are not interested about this value. | |
| pkt_num | The index of the packet we want to get. shawill: this function put his dirty hands on bufferpool internals!!! |
Definition at line 175 of file rtp_buffer.c.
| static void socket_clear | ( | rtp_ssrc * | stm_src | ) | [static] |
Clears the buffer of the socket removing every pending packet
| stm_src | The source for which to clear the socket buffer |
Definition at line 249 of file rtp_buffer.c.
References BP_SLOT_SIZE.
Referenced by rtp_rm_all_pkts().
1.5.4