From c6beb02f3d427b2b46f3e1f5512ef35a072504fb Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Tue, 15 Mar 2016 16:09:30 +0200 Subject: tests: kmscapture: simple v4l2 capture test tool Simple tool on top of libkms to display video from attached V4L cameras. w/o parameter the kmscapture will try to use all cameras. With -s/--single cmd line parameter it can be forced to open only /dev/video0. The camera resolution is chosen based on the screen resolution, number of cameras and the supported resolutions by the camera itself. By default the buffer is provided by DRM. This can be changed with the --buffer-type=v4l, so the buffer is provided by the V4L layer. --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 181ff78..bb335d3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,3 +15,6 @@ target_link_libraries(kmsprint kms++ kmstest ${LIBDRM_LIBRARIES}) add_executable (fbtestpat fbtestpat.cpp) target_link_libraries(fbtestpat kmstest) + +add_executable (kmscapture kmscapture.cpp) +target_link_libraries(kmscapture kms++ kmstest ${LIBDRM_LIBRARIES}) -- cgit v1.2.3