gst1-plugins-bad: Add kmssink support
authorFabio Estevam <festevam@gmail.com>
Sun, 8 Jan 2017 12:18:25 +0000 (10:18 -0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 9 Jan 2017 12:01:21 +0000 (13:01 +0100)
Add support for the KMS video sink element. From the Gstreamer 1.10
release notes:

"New element kmssink to render video using Direct Rendering Manager (DRM)
and Kernel Mode Setting (KMS) subsystems in the Linux kernel. It is oriented
to be used mostly in embedded systems."

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gstreamer1/gst1-plugins-bad/Config.in
package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk

index 16c0b7e3f2d134cfc52c7ccc4a073693ff6a04c4..6bec362db0c8041ee66e363423d40ca3461c2ba6 100644 (file)
@@ -549,6 +549,13 @@ config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS
        help
          Fragmented streaming plugins
 
+config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS
+       bool "kmssink"
+       depends on BR2_TOOLCHAIN_HAS_THREADS #  libdrm -> libpthread-stubs
+       select BR2_PACKAGE_LIBDRM
+       help
+         KMS video sink
+
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS
        bool "libmms"
        depends on BR2_USE_WCHAR # libmms -> libglib2
index ba9f30542e8eca4eb47005009654dc4695a6afe2..4d629f53c731ba8ef785fea18b66d568641384fe 100644 (file)
@@ -680,6 +680,13 @@ else
 GST1_PLUGINS_BAD_CONF_OPTS += --disable-hls
 endif
 
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
+GST1_PLUGINS_BAD_CONF_OPTS += --enable-kms
+GST1_PLUGINS_BAD_DEPENDENCIES += libdrm
+else
+GST1_PLUGINS_BAD_CONF_OPTS += --disable-kms
+endif
+
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBMMS),y)
 GST1_PLUGINS_BAD_CONF_OPTS += --enable-libmms
 GST1_PLUGINS_BAD_DEPENDENCIES += libmms