mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
56 lines
2.3 KiB
XML
56 lines
2.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="video_rtp_stream" dir="computer_vision">
|
|
<doc>
|
|
<description>
|
|
Video streaming for Linux based devices.
|
|
Works e.g. in conjunction with Parrot Drones where the autopilot is the Paparazzi autopilot.
|
|
Features:
|
|
- Sends a RTP/UDP stream of the camera image, a.k.a. live video
|
|
- Possibility to save an image(shot) on internal or external storage space even in full size, best quality
|
|
Example to add to ARdrone2 airframe with extra USB stick plugger in:
|
|
</description>
|
|
<define name="VIEWVIDEO_DOWNSIZE_FACTOR" value="4" description="Reduction factor of the video stream"/>
|
|
<define name="VIEWVIDEO_QUALITY_FACTOR" value="50" description="JPEG encoding compression factor [0-99]"/>
|
|
<define name="VIEWVIDEO_USE_NETCAT" value="FALSE|TRUE" description="Use netcat for transfering images (default: FALSE)"/>
|
|
<define name="VIEWVIDEO_USE_RTP" value="TRUE|FALSE" description="Use RTP for transfering images (default: TRUE)"/>
|
|
</doc>
|
|
<settings>
|
|
<dl_settings>
|
|
<dl_settings name="video">
|
|
<dl_setting var="viewvideo.use_rtp" min="0" step="1" max="1" values="FALSE|TRUE" shortname="rtp" module="computer_vision/viewvideo" param="VIEWVIDEO_USE_RTP"/>
|
|
</dl_settings>
|
|
</dl_settings>
|
|
</settings>
|
|
|
|
<depends>video_thread</depends>
|
|
<header>
|
|
<file name="viewvideo.h"/>
|
|
</header>
|
|
|
|
<init fun="viewvideo_init()"/>
|
|
<makefile target="ap|nps">
|
|
|
|
<file name="viewvideo.c"/>
|
|
<!-- Include the needed Computer Vision files -->
|
|
<define name="modules/computer_vision" type="include"/>
|
|
<file name="rtp.c" dir="modules/computer_vision/lib/encoding"/>
|
|
|
|
<!-- Define the network connection to send images over -->
|
|
<raw>
|
|
VIEWVIDEO_HOST ?= $(MODEM_HOST)
|
|
VIEWVIDEO_PORT_OUT ?= 5000
|
|
VIEWVIDEO_BROADCAST ?= $(MODEM_BROADCAST)
|
|
|
|
VIEWVID_CFLAGS = -DVIEWVIDEO_HOST=$(VIEWVIDEO_HOST) -DVIEWVIDEO_PORT_OUT=$(VIEWVIDEO_PORT_OUT)
|
|
ifeq ($(VIEWVIDEO_USE_NC),)
|
|
ap.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=$(VIEWVIDEO_BROADCAST)
|
|
nps.CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_BROADCAST=FALSE
|
|
else
|
|
$(TARGET).CFLAGS += $(VIEWVID_CFLAGS) -DVIEWVIDEO_USE_NC
|
|
endif
|
|
</raw>
|
|
|
|
</makefile>
|
|
</module>
|