apps/streamer/rtp.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rtp_packet

Defines

#define RTP_VERSION   2
#define RTP_HEADER_SIZE   12
#define RTP_MAX_PACKET_LEN   1500
#define IP_UDP_SIZE   28
#define JPEG_PAYLOAD_NUM   26

Functions

int32_t rtp_init (struct param *p)
int32_t rtp_send_data (struct param *p, uint32_t rtp_ts, int8_t pt, int32_t m, int8_t *data, int32_t data_len, unsigned char *h_buf, int h_offset, int h_len)
void rtp_done (struct param *p)
int32_t ismulticast (struct param *p)


Define Documentation

#define IP_UDP_SIZE   28

Definition at line 8 of file rtp.h.

Referenced by grab_and_send().

#define JPEG_PAYLOAD_NUM   26

Definition at line 9 of file rtp.h.

Referenced by jpeg_session_start(), and write_sdp().

#define RTP_HEADER_SIZE   12

Definition at line 6 of file rtp.h.

Referenced by rtp_send_data().

#define RTP_MAX_PACKET_LEN   1500

Definition at line 7 of file rtp.h.

#define RTP_VERSION   2

Definition at line 5 of file rtp.h.


Function Documentation

int32_t ismulticast ( struct param p  ) 

Definition at line 248 of file rtp.c.

void rtp_done ( struct param p  ) 

Definition at line 243 of file rtp.c.

References udp_exit4().

Referenced by session_finish().

int32_t rtp_init ( struct param p  ) 

Definition at line 77 of file rtp.c.

References param::dport, init_rng(), param::ip_id, param::my_ssrc, param::rtp_seq, and udp_init4().

Referenced by jpeg_session_start().

int32_t rtp_send_data ( struct param p,
uint32_t  rtp_ts,
int8_t  pt,
int32_t  m,
int8_t *  data,
int32_t  data_len,
unsigned char *  h_buf,
int  h_offset,
int  h_len 
)

Definition at line 134 of file rtp.c.

References buffer, rtp_packet::cc, param::dport, param::dst_addr4, param::fd_raw, param::fd_udp, in_chksum(), param::ip_id, rtp_packet::m, param::msg, param::my_ssrc, rtp_packet::p, rtp_packet::pt, param::raw, RTP_HEADER_SIZE, param::rtp_seq, rtp_packet::seq, SOURCE_UDP_PORT, param::src_addr4, rtp_packet::ssrc, rtp_packet::ts, param::ttl, rtp_packet::v, and rtp_packet::x.

Referenced by send_jpeg().


Generated on Fri Nov 28 00:07:27 2008 for elphel by  doxygen 1.5.1