Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Encodes a vide stream with RTP (JPEG) More...
Go to the source code of this file.
Functions | |
void | rtp_frame_send (struct UdpSocket *udp, struct image_t *img, uint8_t format_code, uint8_t quality_code, uint8_t has_dri_header, uint32_t delta_t) |
Send an RTP frame. More... | |
void | rtp_frame_test (struct UdpSocket *udp) |
Send a test RTP frame. More... | |
Encodes a vide stream with RTP (JPEG)
Definition in file rtp.h.
void rtp_frame_send | ( | struct UdpSocket * | udp, |
struct image_t * | img, | ||
uint8_t | format_code, | ||
uint8_t | quality_code, | ||
uint8_t | has_dri_header, | ||
uint32_t | delta_t | ||
) |
Send an RTP frame.
[in] | *udp | The UDP connection to send the frame over |
[in] | *img | The image to send over the RTP connection |
[in] | format_code | 0 for YUV422 and 1 for YUV421 |
[in] | quality_code | The JPEG encoding quality |
[in] | has_dri_header | Whether we have an DRI header or not |
[in] | delta_t | Time between images (if set to 0 or less it is calculated) |
Definition at line 97 of file rtp.c.
References image_t::buf, image_t::buf_size, image_t::h, MAX_PACKET_SIZE, rtp_packet_send(), and image_t::w.
Referenced by bebop_front_camera_thread(), opticflow_module_calc(), and viewvideo_function().
void rtp_frame_test | ( | struct UdpSocket * | udp | ) |
Send a test RTP frame.
[in] | *udp | The udp connection to send the test frame over |
Definition at line 67 of file rtp.c.
References JpegScanDataCh2A, JpegScanDataCh2B, KJpegCh2ScanDataLen, and rtp_packet_send().