From patchwork Tue Feb 2 09:47:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 577011 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2BEF014076B for ; Tue, 2 Feb 2016 20:47:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b=a1OT3GT9; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BE213956EA; Tue, 2 Feb 2016 09:47:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YCVc5ulMF8pS; Tue, 2 Feb 2016 09:47:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 14BCD9572C; Tue, 2 Feb 2016 09:47:52 +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 4DE5D1C0FB4 for ; Tue, 2 Feb 2016 09:47:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 48EAC8C71B for ; Tue, 2 Feb 2016 09:47:49 +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 NGFA2BJW5jJA for ; Tue, 2 Feb 2016 09:47:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5333E90DB4 for ; Tue, 2 Feb 2016 09:47:48 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id l66so108160556wml.0 for ; Tue, 02 Feb 2016 01:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sDGrVx2aN4P+6mBSxR/KLik/JfrHY/i0YlxB8UU8yEo=; b=a1OT3GT95I6fzmLgKfpnfTjzjiLgpVR8WcjYuidhrbpxXs7Jq99+UP+41F8GO/on6g STdjNUaubobbGxY7h+9hx9RDtJqCfNCgAQO2esNJo+YOxkVUfx/ba6oMMQ+gheu8L9fX Yh0luFMpcepMEWpZ1DnO+ygJLniZVE5qnn8ZiMhglHU11JeNgW//XIAjtnDIAZJHFIuX CCeG+WzIdzMj7B1TeqsY/snnov0iA3ZMqIZKaEx8bFUmIeAQxopOLY9/jMCvjUgghfqq jOcwAM1qkVkvABpD6LMxEyUxhBrOkPCqsxjT5iGXQEGD74Djhh2SwYjANtPYxQi5eIcr HTuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sDGrVx2aN4P+6mBSxR/KLik/JfrHY/i0YlxB8UU8yEo=; b=Hh/B095/e1nzphpjhPNaoaPWtRT7MBPf5sxCb0tG7/ULehvKtMLOHz//qyNlZVN5y3 ZGXM5vmnzPSe9IOtrWO2u+BlI5WcYVQMZEFWoFuC9S4lbXP3DXgyYfaztqZs1qYOQ2bU 52+J3yYPZoWkMRy48WA60YkViyaS0QueUQE9n8hqCmwpS8htlz6rOFeGIHlb2L5TAiaM 8aCCNgp4T2fxWTalUSpCw7TSybfJxM0LT2ppbRcCznuGhpZQ6+mZoocvj2wcIl76X+rM 82vwoerNL7bzX3Y4xeAp+kHztJM3aRIg+FoTWP6z+ctrggNIGnNmhaT7Av3FIcuP3lRt MloA== X-Gm-Message-State: AG10YOTJbJH7lIVQ2Ma/kLB13iuJbpjmwzcfCgWtPJEUzsSJYezSTVZYY5jPr3LiO5p67A== X-Received: by 10.28.104.87 with SMTP id d84mr17733368wmc.56.1454406467026; Tue, 02 Feb 2016 01:47:47 -0800 (PST) Received: from t450s.lan (89-92-99-128.hfc.dyn.abo.bbox.fr. [89.92.99.128]) by smtp.googlemail.com with ESMTPSA id h8sm634174wjw.6.2016.02.02.01.47.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Feb 2016 01:47:46 -0800 (PST) From: Gary Bisson To: buildroot@busybox.net Date: Tue, 2 Feb 2016 10:47:38 +0100 Message-Id: <1454406459-2132-2-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1454406459-2132-1-git-send-email-gary.bisson@boundarydevices.com> References: <1454406459-2132-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH v3 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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+ Changelog v2->v3: - none 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 a10d926..bc337ce 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1034,6 +1034,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 + +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))