From 66879c8b15f74bdcc8c7af5b5b8c541d38191b72 Mon Sep 17 00:00:00 2001 From: Yuqing Zhu Date: Tue, 23 May 2017 14:27:10 +0800 Subject: imx-gst1.0-plugin: Upgrade to v4.1.6 -Add an interface in playengine to set video sink using GstElement This interface is for qmlglsink use or something like that. -Optimize imxv4l2sink and overlaysink to make them work with qmlglsrc more effective Add RGBA format support the two sink. Reduce the interval to 1ms when do dequeue retry in v4l2. -Add gst_phy_mem_meta_init() Avoid critical warning as gst_meta_register add critical check for NULL init_func. -Aiurdemux add wma voice support -Add vertical and horizontal flip support for overlaysink and imxv4l2sink Add vertical and horizontal flip for overlaysink and imxv4l2sink. Change playengine set rotate interface to set enum value. Signed-off-by: Yuqing Zhu Signed-off-by: Otavio Salvador --- .../gstreamer/imx-gst1.0-plugin_4.1.4.bb | 89 ---------------------- .../gstreamer/imx-gst1.0-plugin_4.1.6.bb | 85 +++++++++++++++++++++ 2 files changed, 85 insertions(+), 89 deletions(-) delete mode 100644 recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb create mode 100644 recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.6.bb diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb deleted file mode 100644 index 0e4d6bfd..00000000 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.4.bb +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright (C) 2014,2016 Freescale Semiconductor -# Copyright (C) 2012-2015 O.S. Systems Software LTDA. -# Released under the MIT license (see COPYING.MIT for the terms) - -DESCRIPTION = "Gstreamer freescale plugins" -LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" -SECTION = "multimedia" - -DEPENDS = "imx-codec imx-parser virtual/kernel gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" -DEPENDS_append_mx6q = " imx-lib imx-vpu imx-vpuwrap" -DEPENDS_append_mx6dl = " imx-lib imx-vpu imx-vpuwrap" -DEPENDS_append_mx6sl = " imx-lib" -DEPENDS_append_mx6sx = " imx-lib" -DEPENDS_append_mx6ul = " imx-lib" -DEPENDS_append_mx7d = " imx-lib" - -# For backwards compatibility -RREPLACES_${PN} = "gst1.0-fsl-plugin" -RPROVIDES_${PN} = "gst1.0-fsl-plugin" -RCONFLICTS_${PN} = "gst1.0-fsl-plugin" - -LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ - file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ - file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" - -SRC_URI = " \ - ${FSL_MIRROR}/imx-gst1.0-plugin-${PV}.tar.gz \ -" - -SRC_URI[md5sum] = "427c2db85f1eb70d003380c248fb9b41" -SRC_URI[sha256sum] = "b71a5800aad72e7fa3b9e19b3473ea6870c426412baa5030e2f9817c294db820" - -S = "${WORKDIR}/imx-gst1.0-plugin-${PV}" - -inherit autotools pkgconfig - -# Make sure kernel sources are available -do_configure[depends] += "virtual/kernel:do_shared_workdir" -PLATFORM_mx6dl = "MX6" -PLATFORM_mx6q = "MX6" -PLATFORM_mx6sl = "MX6SL" -PLATFORM_mx6sx = "MX6SX" -PLATFORM_mx6ul = "MX6UL" -PLATFORM_mx6ull = "MX6UL" -PLATFORM_mx7d = "MX7D" - -# Todo add a mechanism to map possible build targets -EXTRA_OECONF = "PLATFORM=${PLATFORM} \ - CPPFLAGS="-I${STAGING_KERNEL_BUILDDIR}/include/generated/uapi -I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include" \ - CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', bb.utils.contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}" - -PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" - -# Add codec list that the beep plugin run-time depended -BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" -RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " - -PACKAGECONFIG ?= "" -PACKAGECONFIG_mx6dl = "overlaysink" -PACKAGECONFIG_mx6q = "overlaysink" -PACKAGECONFIG_mx6sl = "overlaysink" -PACKAGECONFIG_mx6sx = "overlaysink" - - -# FIXME: Add all features -# feature from excluded mm packages -PACKAGECONFIG[ac3] += ",,imx-ac3codec,imx-ac3codec" -# feature from special mm packages -PACKAGECONFIG[aacp] += ",,imx-aacpcodec,imx-aacpcodec" -MSDEPENDS = "imx-msparser imx-mscodec" -PACKAGECONFIG[wma10dec] += ",,${MSDEPENDS},${MSDEPENDS}" -PACKAGECONFIG[wma8enc] += "--enable-wma8enc,--disable-wma8enc,${MSDEPENDS},${MSDEPENDS}" -OVDEPENDS = "virtual/libg2d" -PACKAGECONFIG[overlaysink] += "--enable-overlaysink,--disable-overlaysink, ${OVDEPENDS}" - -FILES_${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" - -FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" -FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" -FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" -FILES_${PN}-gplay = "${bindir}/gplay-1.0" -FILES_${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" -FILES_${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" -FILES_${PN}-grecorder = "${bindir}/grecorder-1.0" -FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" -FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" - -COMPATIBLE_MACHINE = "(mx6dl|mx6q|mx6sl|mx6sx|mx6ul|mx6ull|mx7d)" diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.6.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.6.bb new file mode 100644 index 00000000..afc380da --- /dev/null +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_4.1.6.bb @@ -0,0 +1,85 @@ +# Copyright (C) 2014,2016 Freescale Semiconductor +# Copyright (C) 2012-2015 O.S. Systems Software LTDA. +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Gstreamer freescale plugins" +LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" +SECTION = "multimedia" + +DEPENDS = "imx-codec imx-parser virtual/kernel gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" +DEPENDS_append_mx6q = " imx-lib imx-vpu imx-vpuwrap" +DEPENDS_append_mx6dl = " imx-lib imx-vpu imx-vpuwrap" +DEPENDS_append_mx6sl = " imx-lib" +DEPENDS_append_mx6sx = " imx-lib" +DEPENDS_append_mx6ul = " imx-lib" +DEPENDS_append_mx7d = " imx-lib" + +# For backwards compatibility +RREPLACES_${PN} = "gst1.0-fsl-plugin" +RPROVIDES_${PN} = "gst1.0-fsl-plugin" +RCONFLICTS_${PN} = "gst1.0-fsl-plugin" + +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ + file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ + file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24" + +SRC_URI = " \ + ${FSL_MIRROR}/imx-gst1.0-plugin-${PV}.tar.gz \ +" + +SRC_URI[md5sum] = "8c939f68b7d7ce8659618bd34b93a508" +SRC_URI[sha256sum] = "fcd5b8536758c50491c80ed26e86770fe17f29744ab4ccba1e5ca1c475a209c3" + +S = "${WORKDIR}/imx-gst1.0-plugin-${PV}" + +inherit autotools pkgconfig + +# Make sure kernel sources are available +do_configure[depends] += "virtual/kernel:do_shared_workdir" +PLATFORM_mx6 = "MX6" +PLATFORM_mx6sl = "MX6SL" +PLATFORM_mx6sx = "MX6SX" +PLATFORM_mx6ul = "MX6UL" +PLATFORM_mx6ull = "MX6UL" +PLATFORM_mx7d = "MX7D" + +# Todo add a mechanism to map possible build targets +EXTRA_OECONF = "PLATFORM=${PLATFORM} \ + CPPFLAGS="-I${STAGING_KERNEL_BUILDDIR}/include/generated/uapi -I${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include" \ + CROSS_ROOT=${PKG_CONFIG_SYSROOT_DIR} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', bb.utils.contains('DISTRO_FEATURES', 'x11', '--disable-x11', '', d), '', d)}" + +PACKAGES =+ "${PN}-gplay ${PN}-libgplaycore ${PN}-libgstfsl ${PN}-grecorder ${PN}-librecorder-engine ${PN}-libplayengine" + +# Add codec list that the beep plugin run-time depended +BEEP_RDEPENDS = "imx-codec-aac imx-codec-mp3 imx-codec-oggvorbis" +RDEPENDS_${PN} += "imx-parser ${BEEP_RDEPENDS} gstreamer1.0-plugins-good-id3demux " + +PACKAGECONFIG ?= "" +PACKAGECONFIG_mx6 = "overlaysink" + + +# FIXME: Add all features +# feature from excluded mm packages +PACKAGECONFIG[ac3] += ",,imx-ac3codec,imx-ac3codec" +# feature from special mm packages +PACKAGECONFIG[aacp] += ",,imx-aacpcodec,imx-aacpcodec" +MSDEPENDS = "imx-msparser imx-mscodec" +PACKAGECONFIG[wma10dec] += ",,${MSDEPENDS},${MSDEPENDS}" +PACKAGECONFIG[wma8enc] += "--enable-wma8enc,--disable-wma8enc,${MSDEPENDS},${MSDEPENDS}" +OVDEPENDS = "virtual/libg2d" +PACKAGECONFIG[overlaysink] += "--enable-overlaysink,--disable-overlaysink, ${OVDEPENDS}" + +FILES_${PN} = "${libdir}/gstreamer-1.0/*.so ${datadir}" + +FILES_${PN}-dbg += "${libdir}/gstreamer-1.0/.debug" +FILES_${PN}-dev += "${libdir}/gstreamer-1.0/*.la ${libdir}/pkgconfig/*.pc" +FILES_${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a" +FILES_${PN}-gplay = "${bindir}/gplay-1.0" +FILES_${PN}-libgplaycore = "${libdir}/libgplaycore-1.0${SOLIBS}" +FILES_${PN}-libgstfsl = "${libdir}/libgstfsl-1.0${SOLIBS}" +FILES_${PN}-grecorder = "${bindir}/grecorder-1.0" +FILES_${PN}-librecorder-engine = "${libdir}/librecorder_engine-1.0${SOLIBS}" +FILES_${PN}-libplayengine = "${libdir}/libplayengine-1.0${SOLIBS}" + +COMPATIBLE_MACHINE = "(mx6|mx6ul|mx6ull|mx7d)" -- cgit v1.2.3-54-g00ecf