From patchwork Tue Feb 16 20:53:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 583701 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 87801140134 for ; Wed, 17 Feb 2016 07:53:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C5ACD9220E; Tue, 16 Feb 2016 20:53:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VKkKrX1T-ydk; Tue, 16 Feb 2016 20:53:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id CB73D92210; Tue, 16 Feb 2016 20:53:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 326801C15D1 for ; Tue, 16 Feb 2016 20:53:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2E727921BE for ; Tue, 16 Feb 2016 20:53:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tVFNBAIKIIbJ for ; Tue, 16 Feb 2016 20:53:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by whitealder.osuosl.org (Postfix) with ESMTPS id DA59B921F3 for ; Tue, 16 Feb 2016 20:53:19 +0000 (UTC) Received: from localhost ([188.110.54.26]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LvlTo-1ZvSKt3AnE-017YAV; Tue, 16 Feb 2016 21:53:15 +0100 Date: Tue, 16 Feb 2016 21:53:13 +0100 From: Peter Seiderer To: Gary Bisson Message-ID: <20160216215313.15f228fe@gmx.net> In-Reply-To: <1454363759-23349-2-git-send-email-gary.bisson@boundarydevices.com> References: <1454363759-23349-1-git-send-email-gary.bisson@boundarydevices.com> <1454363759-23349-2-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.28; x86_64-suse-linux-gnu) MIME-Version: 1.0 X-Provags-ID: V03:K0:kBnF/KDMplWGRahR2woCLmJxpY2jykyDZpqrnd8yW6fwz0gtpMo KsmouDl7BElc3E3AfekcM9wFjU9KD/acnHLDMUMBBydPA7GXd4T1EXx33EAzo32cfbfqUlL 0Q9C2bLRm6buQ5YYwm4i6OgskqYWoRyv5yNM5bnp+CLQ7oHOwfxdNmYbO8bPPUMoXi9fMdR FrStWbGsxjTNuz+9e1+fg== X-UI-Out-Filterresults: notjunk:1; V01:K0:PEif7o3kUEY=:P7JWIkHTx8wqoWkZ8aJ3wr C79aniEYeRZDsKyvnjS12NJG6Z1ASCjWU7bjNatHLQe1RmTFuB3EWgMxQBxWCvz3Gen8wZqwE Y9pPynpc4P7z/pwZiHgA7aAIi69spaFC8bkAI13k/TDirGDCPejqX84mFMBh7DLmulRNBzWfU QxcvrYY3eYeuC+cqXbcp9zXfHPSJEfrYD4uvgz1vzBRmK6LnXiVQKT8wA2F+5jRR2vE9DWJyn RPOzIvzEIfwoECrEKzuFKKlO7baAWnFcTn1R3yNwG/efVbjOnkRe04hqK5F/tFzx2Y1a5iTos 69uGQkA2iDNBuRKcymTWqfQKwhGk0zrnO6NpB3iM8X4oMEEbk1fmkkI+c2IuAWdepwQddzXiK 3qzDTow11k0rq6ABOdimXJigKoZEVH1bG0L9fJ4Zylm84LjCoUwWfujnMGmROxyC1hsNAXCQ/ T/C2YtEA5WKUa0EcDMcrHDO5yb3NeC1CRYPRMn67W5zhNVMWwn+yanOPo2HBcCpYOjaxmCuYf orWV/kdYMQKiWpe7ezyGBsTG4/NT1liHci3k7a1zw1OoTthdR7VMLFKObdoto6WrBFHu/9x6g fBSDXuXEharJ9BcC/Z5QluJWO2q5XqwabRAWehiw9j98Ny77iZtSFrf1Hg4Zw1CVT87RqbYOK CKpA6bhHk7McvKkz8krjsEmfjv0ClZ+rAC/W3GfAlOXu5e9zxyxGpmveiXOlYwd5QY0qveNOZ Knvb05VWgcMn8GLrnQ5+xBzkSzBOuTHuBM39G7r00zR2+uYKPc5KAx+FD+fGc64zJTfrs3U7f q3M6qKE Cc: buildroot@busybox.net, thomas.petazzoni@free-electrons.com Subject: Re: [Buildroot] [PATCH v2 1/2] libimxvpuapi: add new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hello Gary, On Mon, 1 Feb 2016 22:55:58 +0100, Gary Bisson wrote: > This is a library for using the i.MX6 VPU. It is an alternative to > libfslvpuwrap, hosted on Github, and has an API that features several > improvements over libfslvpuwrap, which include: > > * User-defined context information associated with input frames, which > is passed on to corresponding output frames (to be able to identify > which input frame produced which output frame) > * Groundwork for future DMA-BUF/BMM/ION/CMA allocator integration, using > file descriptors instead of physical addresses > * Indicators for when it is safe to try to decode frames, which is > critical in multi-threaded playback cases > * Simplified, higher-level JPEG en/decoding API, based on the VPU MJPEG > codec; useful for picture viewing without the extra boilerplate for > VPU-based en/decoding > > Changelog 0.10.0 -> 0.10.1: > - add debian packaging files > - update waf to version 1.8.16 > - add workaround in wscript to prevent stale pkg-config .pc files > - fix memory leak by adding missing IOFreeVirtMem() call in vpulib > backend > > This patch is based on the Yocto equivalent: > https://github.com/Freescale/meta-fsl-arm/commit/e519d6c > https://github.com/Freescale/meta-fsl-arm/commit/1dd6a5b > > This package has been implicitely tested through gstreamer as the > plugins rely on it for vpu decoding: > # gst-launch-1.0 playbin uri=file:///root/tears_of_steel_1080p.webm > > Signed-off-by: Gary Bisson > --- > > Changelog v1->v2: > - add hash file > - add upstream URL > - change license to LGPLv2.1+ > > Thanks, > Gary > > --- > package/Config.in | 1 + > package/libimxvpuapi/Config.in | 12 ++++++++++++ > package/libimxvpuapi/libimxvpuapi.hash | 2 ++ > package/libimxvpuapi/libimxvpuapi.mk | 35 ++++++++++++++++++++++++++++++++++ > 4 files changed, 50 insertions(+) > create mode 100644 package/libimxvpuapi/Config.in > create mode 100644 package/libimxvpuapi/libimxvpuapi.hash > create mode 100644 package/libimxvpuapi/libimxvpuapi.mk > > diff --git a/package/Config.in b/package/Config.in > index 09c2b40..d3e5e30 100644 > --- a/package/Config.in > +++ b/package/Config.in > @@ -1033,6 +1033,7 @@ menu "Multimedia" > source "package/libfslparser/Config.in" > source "package/libfslvpuwrap/Config.in" > source "package/libhdhomerun/Config.in" > + source "package/libimxvpuapi/Config.in" > source "package/libmatroska/Config.in" > source "package/libmms/Config.in" > source "package/libmpeg2/Config.in" > diff --git a/package/libimxvpuapi/Config.in b/package/libimxvpuapi/Config.in > new file mode 100644 > index 0000000..a48e441 > --- /dev/null > +++ b/package/libimxvpuapi/Config.in > @@ -0,0 +1,12 @@ > +config BR2_PACKAGE_LIBIMXVPUAPI > + bool "libimxvpuapi" > + depends on BR2_arm # Only relevant for i.MX > + select BR2_PACKAGE_FREESCALE_IMX > + select BR2_PACKAGE_IMX_VPU > + help > + This library provides an API for using the iMX6 VPU video engine. It > + is an alternative to Freescale's VPU wrapper. Both the wrapper and > + this library are layered on top of imx-vpu, the low-level iMX6 VPU > + interface. > + > + https://github.com/Freescale/libimxvpuapi > diff --git a/package/libimxvpuapi/libimxvpuapi.hash b/package/libimxvpuapi/libimxvpuapi.hash > new file mode 100644 > index 0000000..fd90a20 > --- /dev/null > +++ b/package/libimxvpuapi/libimxvpuapi.hash > @@ -0,0 +1,2 @@ > +# locally computed hash > +sha256 8d7aeed88c06fda44318cef9565ae47b86461bd309908b1103a7974ed0822a8d libimxvpuapi-0.10.1.tar.gz > diff --git a/package/libimxvpuapi/libimxvpuapi.mk b/package/libimxvpuapi/libimxvpuapi.mk > new file mode 100644 > index 0000000..8e62682 > --- /dev/null > +++ b/package/libimxvpuapi/libimxvpuapi.mk > @@ -0,0 +1,35 @@ > +################################################################################ > +# > +# libimxvpuapi > +# > +################################################################################ > + > +LIBIMXVPUAPI_VERSION = 0.10.1 > +LIBIMXVPUAPI_SITE = $(call github,Freescale,libimxvpuapi,$(LIBIMXVPUAPI_VERSION)) > +LIBIMXVPUAPI_LICENSE = LGPLv2.1+ > +LIBIMXVPUAPI_LICENSE_FILES = LICENSE > +LIBIMXVPUAPI_DEPENDENCIES = host-pkgconf host-python imx-vpu > +LIBIMXVPUAPI_INSTALL_STAGING = YES > + > +define LIBIMXVPUAPI_CONFIGURE_CMDS > + cd $(@D); \ > + $(TARGET_CONFIGURE_OPTS) $(HOST_DIR)/usr/bin/python2 ./waf configure \ > + --prefix=/usr > +endef On my x86_64 (OpenSUSE-13.2) host build the libs and libimxvpuapi.pc are installed into $(STAGING_DIR)/usr/lib64 and $(TARGET_DIR)/usr/lib64. To be usable by eg. gst1-imx the install path should be $(STAGING_DIR)/usr/lib and $(TARGET_DIR)/usr/lib. To achieve this I added '--libdir=/usr/lib' to overwrite the default '/usr/lib64': With this you can add my Tested-by: Peter Seiderer for '...! imxvpudec ! imxipuvideosink' But I had problems using the imxeglvivsink element and with qt5 eglfs, suspecting your 'Update most Freescale packages' patch series (using buildroot-2016.02-rc1 with your '[PATCH v3 0/2] gst1-imx: bump version to 0.12.0' patches on top), but did not find time yet to investigate further... Regards, Peter > + > +define LIBIMXVPUAPI_BUILD_CMDS > + cd $(@D); \ > + $(HOST_DIR)/usr/bin/python2 ./waf build -j $(PARALLEL_JOBS) > +endef > + > +define LIBIMXVPUAPI_INSTALL_STAGING_CMDS > + cd $(@D); \ > + $(HOST_DIR)/usr/bin/python2 ./waf --destdir=$(STAGING_DIR) install > +endef > + > +define LIBIMXVPUAPI_INSTALL_TARGET_CMDS > + cd $(@D); \ > + $(HOST_DIR)/usr/bin/python2 ./waf --destdir=$(TARGET_DIR) install > +endef > + > +$(eval $(generic-package)) --- a/package/libimxvpuapi/libimxvpuapi.mk +++ b/package/libimxvpuapi/libimxvpuapi.mk @@ -14,7 +14,7 @@ LIBIMXVPUAPI_INSTALL_STAGING = YES define LIBIMXVPUAPI_CONFIGURE_CMDS cd $(@D); \ $(TARGET_CONFIGURE_OPTS) $(HOST_DIR)/usr/bin/python2 ./waf configure \ - --prefix=/usr + --prefix=/usr --libdir=/usr/lib endef define LIBIMXVPUAPI_BUILD_CMDS