Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
rtp.h File Reference
#include "std.h"
#include "lib/vision/image.h"
#include "udp_socket.h"
+ Include dependency graph for rtp.h:
+ This graph shows which files directly or indirectly include this file:

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, float average_frame_rate, uint16_t *packet_number, uint32_t *rtp_time_counter)
 Send an RTP frame. More...
 
void rtp_frame_test (struct UdpSocket *udp)
 Send a test RTP frame. More...
 

Detailed Description

Encodes a video stream with RTP Format 26 (Motion JPEG)

Definition in file rtp.h.

Function Documentation

◆ 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,
float  average_frame_rate,
uint16_t packet_number,
uint32_t rtp_time_counter 
)

Send an RTP frame.

Parameters
[in]*udpThe UDP connection to send the frame over
[in]*imgThe image to send over the RTP connection
[in]format_code0 for YUV422 and 1 for YUV421
[in]quality_codeThe JPEG encoding quality
[in]has_dri_headerWhether we have an DRI header or not
[in]frame_timeTime image was taken in usec (if set to 0 or less it is calculated)
[out]packet_numberThe frame number of the rtp stream
[out]rtp_time_counterThe frame time counter of the rtp stream

Definition at line 127 of file rtp.c.

References image_t::buf, image_t::buf_size, f, 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:

◆ rtp_frame_test()

void rtp_frame_test ( struct UdpSocket udp)

Send a test RTP frame.

Parameters
[in]*udpThe udp connection to send the test frame over

Definition at line 95 of file rtp.c.

References JpegScanDataCh2A, JpegScanDataCh2B, KJpegCh2ScanDataLen, and rtp_packet_send().

+ Here is the call graph for this function: