mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 03:11:15 +03:00
vcap: Initial implementation
This UPM module captures a still frame from a Linux V4L device, such as a USB webcam, and and then allows you to save it as a JPEG image into a file. The camera and driver in use must support streaming, mmap-able buffers and must provide data in YUYV format. This should encompass most video cameras out there. It has been tested with a few off the shelf USB cameras without any problems. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
bf7d7d1bda
commit
4f6be750c7
18
src/vcap/CMakeLists.txt
Normal file
18
src/vcap/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
set (libname "vcap")
|
||||
set (libdescription "upm Video Frame Capture and image save utility")
|
||||
set (module_src ${libname}.cxx)
|
||||
set (module_h ${libname}.hpp)
|
||||
set (reqlibname "jpeg")
|
||||
upm_module_init()
|
||||
target_link_libraries(${libname} jpeg)
|
||||
if (BUILDSWIG)
|
||||
if (BUILDSWIGNODE)
|
||||
swig_link_libraries (jsupm_${libname} jpeg ${MRAA_LIBRARIES} ${NODE_LIBRARIES})
|
||||
endif()
|
||||
if (BUILDSWIGPYTHON)
|
||||
swig_link_libraries (pyupm_${libname} jpeg ${PYTHON_LIBRARIES} ${MRAA_LIBRARIES})
|
||||
endif()
|
||||
if (BUILDSWIGJAVA)
|
||||
swig_link_libraries (javaupm_${libname} jpeg ${MRAAJAVA_LDFLAGS} ${JAVA_LDFLAGS})
|
||||
endif()
|
||||
endif()
|
Reference in New Issue
Block a user