summaryrefslogtreecommitdiff
path: root/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-04-17 08:34:50 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-04-17 08:34:50 +0000
commit6dd2426803c57693b1c944d66a30266929466167 (patch)
treef623ad1ba5654653de2bb246ee7f1d6cc288ac2e /multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp
parentAdd missing dependency. (diff)
Upgrade v4l_compat, libv4l and v4l-utils to v1.18.0.
The most important change is that up-to-date V4L header files are now sourced from the webcamd distribution tarball. Refer to the ChangeLog file in the v4l-utils tarball for a comprehensive list of changes. PR: 245501 Approved by: pi (implicit)
Notes
Notes: svn path=/head/; revision=531911
Diffstat (limited to 'multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp')
-rw-r--r--multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp
new file mode 100644
index 000000000000..4e10a8c8fdaa
--- /dev/null
+++ b/multimedia/libv4l/files/patch-utils_v4l2-ctl_v4l2-ctl-overlay.cpp
@@ -0,0 +1,42 @@
+--- utils/v4l2-ctl/v4l2-ctl-overlay.cpp.orig 2020-04-09 16:29:54 UTC
++++ utils/v4l2-ctl/v4l2-ctl-overlay.cpp
+@@ -14,11 +14,12 @@
+ #include <dirent.h>
+ #include <math.h>
+
++#include "v4l2-ctl.h"
++
++#ifndef __FreeBSD__
+ #include <linux/fb.h>
+ #include <vector>
+
+-#include "v4l2-ctl.h"
+-
+ static unsigned int set_fbuf;
+ static unsigned int set_overlay_fmt;
+ static struct v4l2_format overlay_fmt; /* set_format/get_format video overlay */
+@@ -546,3 +547,24 @@ void overlay_list(cv4l_fd &fd)
+ if (options[OptFindFb])
+ find_fb(fd.g_fd());
+ }
++#else
++void overlay_usage(void)
++{
++}
++
++void overlay_cmd(int ch, char *optarg)
++{
++}
++
++void overlay_set(cv4l_fd &_fd)
++{
++}
++
++void overlay_get(cv4l_fd &_fd)
++{
++}
++
++void overlay_list(cv4l_fd &fd)
++{
++}
++#endif