Skip to content

Commit

Permalink
[vision] Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Apr 6, 2015
1 parent ee83a5f commit f1b30a3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
20 changes: 19 additions & 1 deletion sw/airborne/modules/computer_vision/lib/encoding/rtp.c
Expand Up @@ -62,6 +62,7 @@ uint8_t JpegScanDataCh2B[KJpegCh2ScanDataLen] = {

/**
* Send a test RTP frame
* @param[in] *udp The udp connection to send the test frame over
*/
void rtp_frame_test(struct udp_periph *udp)
{
Expand All @@ -86,6 +87,12 @@ void rtp_frame_test(struct udp_periph *udp)

/**
* Send an RTP frame
* @param[in] *udp The UDP connection to send the frame over
* @param[in] *img The image to send over the RTP connection
* @param[in] format_code 0 for YUV422 and 1 for YUV421
* @param[in] quality_code The JPEG encoding quality
* @param[in] has_dri_header Whether we have an DRI header or not
* @param[in] delta_t Time between images (if set to 0 or less it is calculated)
*/
void rtp_frame_send(struct udp_periph *udp, struct image_t *img, uint8_t format_code,
uint8_t quality_code, uint8_t has_dri_header, uint32_t delta_t)
Expand Down Expand Up @@ -135,7 +142,18 @@ void rtp_frame_send(struct udp_periph *udp, struct image_t *img, uint8_t format_
* The RTP timestamp is in units of 90000Hz. The same timestamp MUST
appear in each fragment of a given frame. The RTP marker bit MUST be
set in the last packet of a frame.
*
* @param[in] *udp The UDP socket to send the RTP packet over
* @param[in] *Jpeg JPEG encoded image byte buffer
* @param[in] JpegLen The length of the byte buffer
* @param[in] m_SequenceNumber RTP sequence number
* @param[in] m_Timestamp Timestamp of the image
* @param[in] m_offset 3 byte fragmentation offset for fragmented images
* @param[in] marker_bit RTP marker bit
* @param[in] w The width of the JPEG image
* @param[in] h The height of the image
* @param[in] format_code 0 for YUV422 and 1 for YUV421
* @param[in] quality_code The JPEG encoding quality
* @param[in] has_dri_header Whether we have an DRI header or not
*/
static void rtp_packet_send(
struct udp_periph *udp,
Expand Down
11 changes: 2 additions & 9 deletions sw/airborne/modules/computer_vision/lib/encoding/rtp.h
Expand Up @@ -32,15 +32,8 @@
#include "lib/vision/image.h"
#include "mcu_periph/udp.h"

void rtp_frame_send(
struct udp_periph *udp, // socket
struct image_t *img, // The image to send
uint8_t format_code, // 0=422, 1=421
uint8_t quality_code, // 0-99 of 128 for custom (include
uint8_t has_dri_header, // Does Jpeg data include Header Info?
uint32_t delta_t // time step 90kHz
);

void rtp_frame_send(struct udp_periph *udp, struct image_t *img, uint8_t format_code, uint8_t quality_code,
uint8_t has_dri_header, uint32_t delta_t);
void rtp_frame_test(struct udp_periph *udp);

#endif /* _CV_ENCODING_RTP_H */
Expand Up @@ -20,7 +20,7 @@
*/

/**
* @file modules/computer_vision/lib/vision/lucas_kanade.c
* @file modules/computer_vision/lib/vision/lucas_kanade.h
* @brief efficient fixed-point optical-flow calculation
*
* - Initial fixed-point C implementation by G. de Croon
Expand Down
Expand Up @@ -20,7 +20,7 @@
*/

/**
* @file modules/computer_vision/opticflow/hover_stabilization.c
* @file modules/computer_vision/opticflow/stabilization_opticflow.c
* @brief Optical-flow based control for Linux based systems
*
* Control loops for optic flow based hovering.
Expand Down
Expand Up @@ -20,7 +20,7 @@
*/

/**
* @file modules/computer_vision/opticflow/hover_stabilization.h
* @file modules/computer_vision/opticflow/stabilization_opticflow.h
* @brief Optical-flow based control for Linux based systems
*
* Control loops for optic flow based hovering.
Expand Down

0 comments on commit f1b30a3

Please sign in to comment.