Skip to contentSkip to conversation

package/gstreamer1/gst1-plugins-bad: add option to enable uvch264

PATCH Applied James Hilliard 2 participants 2 messages Oct 30, 2021 – Dec 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gstreamer1/gst1-plugins-bad: add option to enable uvch264

---
 package/gstreamer1/gst1-plugins-bad/Config.in | 21 +++++++++++++++++++
 .../gst1-plugins-bad/gst1-plugins-bad.mk      |  8 ++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)
package/gstreamer1/gst1-plugins-bad/Config.in +21 -0
index 1204a65681..b5c940553b 100644
@@ -595,6 +595,27 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SRTP
 	bool "srtp"
 	select BR2_PACKAGE_LIBSRTP
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_UVCH264
+	bool "uvch264"
+	depends on BR2_PACKAGE_HAS_UDEV # libgudev
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libgudev, libusb
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
+	depends on BR2_USE_MMU # libgudev
+	depends on BR2_USE_WCHAR # libgudev
+	select BR2_PACKAGE_LIBGUDEV
+	select BR2_PACKAGE_LIBUSB
+	help
+	  UVC compliant H.264 camera source plugin
+
+comment "uvch264 needs udev /dev management"
+	depends on BR2_USE_MMU
+	depends on !BR2_PACKAGE_HAS_UDEV
+
+comment "uvch264 needs a toolchain w/ threads, wchar, gcc >= 4.9"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC
 	bool "voaacenc"
 	select BR2_PACKAGE_VO_AACENC
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk +7 -1
index d3f089bfed..ac00fd59e1 100644
@@ -36,7 +36,6 @@ GST1_PLUGINS_BAD_CONF_OPTS = \
 GST1_PLUGINS_BAD_CONF_OPTS += \
 	-Davtp=disabled \
 	-Dopensles=disabled \
-	-Duvch264=disabled \
 	-Dmsdk=disabled \
 	-Dvoamrwbenc=disabled \
 	-Dbs2b=disabled \
@@ -722,6 +721,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += -Dsrtp=disabled
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_UVCH264),y)
+GST1_PLUGINS_BAD_CONF_OPTS += -Duvch264=enabled
+GST1_PLUGINS_BAD_DEPENDENCIES += libgudev libusb
+else
+GST1_PLUGINS_BAD_CONF_OPTS += -Duvch264=disabled
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC),y)
 GST1_PLUGINS_BAD_CONF_OPTS += -Dvoaacenc=enabled
 GST1_PLUGINS_BAD_DEPENDENCIES += vo-aacenc
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · On Sat, 30 Oct 2021 05:22:11 -0600 James Hilliard <[email protected]>…
---
 package/gstreamer1/gst1-plugins-bad/Config.in | 21 +++++++++++++++++++
 .../gst1-plugins-bad/gst1-plugins-bad.mk      |  8 ++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot