|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
Encodes a vide stream with RTP (JPEG) More...
Include dependency graph for rtp.c:Go to the source code of this file.
Macros | |
| #define | KJpegCh1ScanDataLen 32 |
| #define | KJpegCh2ScanDataLen 56 |
| #define | MAX_PACKET_SIZE 1400 |
| #define | KRtpHeaderSize 12 |
| #define | KJpegHeaderSize 8 |
Functions | |
| static void | rtp_packet_send (struct UdpSocket *udp, uint8_t *Jpeg, int JpegLen, uint32_t m_SequenceNumber, uint32_t m_Timestamp, uint32_t m_offset, uint8_t marker_bit, int w, int h, uint8_t format_code, uint8_t quality_code, uint8_t has_dri_header) |
| void | rtp_frame_test (struct UdpSocket *udp) |
| Send a test RTP frame. More... | |
| 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 frame_time, uint32_t *packet_number) |
| Send an RTP frame. More... | |
Variables | |
| uint8_t | JpegScanDataCh2A [KJpegCh2ScanDataLen] |
| uint8_t | JpegScanDataCh2B [KJpegCh2ScanDataLen] |
Encodes a vide stream with RTP (JPEG)
Definition in file rtp.c.
| #define KJpegCh2ScanDataLen 56 |
Definition at line 41 of file rtp.c.
Referenced by rtp_frame_test().
| #define KJpegHeaderSize 8 |
Referenced by rtp_packet_send().
| #define KRtpHeaderSize 12 |
Referenced by rtp_packet_send().
| #define MAX_PACKET_SIZE 1400 |
Referenced by rtp_frame_send().
| 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 | frame_time, | ||
| uint32_t * | packet_number | ||
| ) |
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] | frame_time | Time image was taken in usec (if set to 0 or less it is calculated) |
| [in] | packet_number | The frame number of the rtp stream |
Definition at line 98 of file rtp.c.
References image_t::buf, image_t::buf_size, image_t::h, MAX_PACKET_SIZE, offset, rtp_packet_send(), and image_t::w.
Referenced by viewvideo_function().
Here is the call graph for this function:
Here is the caller graph for this 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().
Here is the call graph for this function:
|
static |
Definition at line 154 of file rtp.c.
References KJpegHeaderSize, KRtpHeaderSize, and udp_socket_send_dontwait().
Referenced by rtp_frame_send(), and rtp_frame_test().
Here is the call graph for this function:
Here is the caller graph for this function:| uint8_t JpegScanDataCh2A[KJpegCh2ScanDataLen] |
Definition at line 44 of file rtp.c.
Referenced by rtp_frame_test().
| uint8_t JpegScanDataCh2B[KJpegCh2ScanDataLen] |
Definition at line 53 of file rtp.c.
Referenced by rtp_frame_test().