![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|


Go to the source code of this file.
Classes | |
| struct | coded_data |
| struct | pbuf_audio_data |
| struct | pbuf_stats |
| struct | vcodec_state |
Typedefs | |
| typedef int | decode_frame_t(struct coded_data *cdata, void *decode_data, struct pbuf_stats *stats) |
Functions | |
| int | pbuf_decode (struct pbuf *playout_buf, time_ns_t curr_time, decode_frame_t decode_func, void *data) |
| void | pbuf_destroy (struct pbuf *) |
| struct pbuf * | pbuf_init (volatile int *delay_ms) |
| void | pbuf_insert (struct pbuf *playout_buf, rtp_packet *r) |
| int | pbuf_is_empty (struct pbuf *playout_buf) |
| void | pbuf_remove (struct pbuf *playout_buf, time_ns_t curr_time) |
| void | pbuf_set_playout_delay (struct pbuf *playout_buf, double playout_delay) |
| typedef int decode_frame_t(struct coded_data *cdata, void *decode_data, struct pbuf_stats *stats) |
| int pbuf_decode | ( | struct pbuf * | playout_buf, |
| time_ns_t | curr_time, | ||
| decode_frame_t | decode_func, | ||
| void * | data ) |
Definition at line 562 of file pbuf.c.
References pbuf_node::cdata, pbuf_node::completed, debug_msg, pbuf_node::decoded, pbuf::expected_pkts_cum, frame_complete(), pbuf::frst, NS_IN_SEC, pbuf_node::nxt, pbuf_validate(), pbuf_node::playout_time, pbuf::received_pkts_cum, and pbuf_node::rtp_timestamp.
Referenced by audio_receiver_thread(), ultragrid_rtp_video_rxtx::receiver_loop(), and vidcap_rtsp_thread().

| void pbuf_destroy | ( | struct pbuf * | playout_buf | ) |
Definition at line 195 of file pbuf.c.
References pbuf_node::cdata, pbuf::expected_pkts_cum, free_cdata(), pbuf::frst, pbuf::last, LOG_LEVEL_INFO, log_msg(), pbuf_node::nxt, pbuf_validate(), pbuf_node::prv, and pbuf::received_pkts_cum.
Referenced by pdb_destroy_item().

| struct pbuf * pbuf_init | ( | volatile int * | delay_ms | ) |
Definition at line 174 of file pbuf.c.
References debug_msg, DEFAULT_STATS_INTERVAL, pbuf::frst, pbuf::last, pbuf::last_report_seq, pbuf::offset_ms, pbuf::playout_delay_us, and pbuf::stats_interval.
Referenced by pdb_create_item().
| void pbuf_insert | ( | struct pbuf * | playout_buf, |
| rtp_packet * | r ) |
Definition at line 420 of file pbuf.c.
References add_coded_unit(), pbuf_node::completed, create_new_pnode(), debug_msg, pbuf_node::decoded, pbuf::frst, pbuf::last, LOG_LEVEL_VERBOSE, log_msg(), MOD_NAME, pbuf_node::nxt, pbuf::offset_ms, pbuf_process_stats(), pbuf_validate(), pbuf::playout_delay_us, pbuf_node::prv, pbuf_node::rtp_timestamp, and WRAPAROUND_THRESHOLD.
Referenced by rtp_recv_callback().

| int pbuf_is_empty | ( | struct pbuf * | playout_buf | ) |
Definition at line 553 of file pbuf.c.
References FALSE, pbuf::frst, and TRUE.
Referenced by audio_receiver_thread(), and ultragrid_rtp_video_rxtx::receiver_loop().
Definition at line 498 of file pbuf.c.
References pbuf_node::cdata, pbuf_node::deletion_time, frame_complete(), free_cdata(), pbuf::frst, pbuf::last, pbuf_node::nxt, pbuf_validate(), and pbuf_node::prv.
Referenced by audio_receiver_thread(), ultragrid_rtp_video_rxtx::receiver_loop(), and vidcap_rtsp_thread().

| void pbuf_set_playout_delay | ( | struct pbuf * | playout_buf, |
| double | playout_delay ) |
Definition at line 597 of file pbuf.c.
References pbuf::playout_delay_us.
Referenced by audio_receiver_thread(), and ultragrid_rtp_video_rxtx::receiver_process_messages().