From patchwork Sat Jan 30 11:45:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 575959 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 042D0140BB1 for ; Sat, 30 Jan 2016 22:47:22 +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=FrT7meAR; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2496D339D2; Sat, 30 Jan 2016 11:47:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wBqygJv5JOX0; Sat, 30 Jan 2016 11:47:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9632833991; Sat, 30 Jan 2016 11:46:44 +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 B25C31C0B7A for ; Sat, 30 Jan 2016 11:46:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0E78291FDD for ; Sat, 30 Jan 2016 11:46:25 +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 9fsKXZATktEb for ; Sat, 30 Jan 2016 11:46:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by whitealder.osuosl.org (Postfix) with ESMTPS id B4D5E91F75 for ; Sat, 30 Jan 2016 11:46:22 +0000 (UTC) Received: by mail-wm0-f45.google.com with SMTP id l66so12494473wml.0 for ; Sat, 30 Jan 2016 03:46:24 -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=EAkqxaHQfiPd0WryLN3V8yqhniePBcmIxl1y1uujIb8=; b=FrT7meARO+mHznyqieR2gI9GRVpYh/d2Ci8/2fiVDJAp+y/UNU+CkMvBlKuqISIiiV zYsYluQKI1LdZdak3lHsAF/VIQ7qB6+LbX6Htj0yVMEj0/PMtFXLk8IxLZUL62/kNcXr 8mzBh3gV4eBMeKKdv3MxgAivKhUVPFDg44hQqdcVCqewu3HDz6wXJujVJglZaF/EBuUS A3ybpdw7rNCCo/NZRnWAKcQq/jjDEBr72uBG5UeMv2YeTDUqNh1Xo/IORvRXBQqYixiU HHu7kz3WYHNjm8t1yRfMJg9czqU6dgjtTmI19WruumkFs/8vW8gzds3FCT4c5NeCcO/U GExg== 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=EAkqxaHQfiPd0WryLN3V8yqhniePBcmIxl1y1uujIb8=; b=AuzgS4ERmo2UayxkchGzfEpChsTH6n8ffnV9xp1j30BsRrJe9K9qZKrQ+oFnKF6Gvp 3cFS8Ou2B5kbmrUG8DBI4hPslH6Z5SI0vK0QGo65u6qfW8iLz5tDabIdViGpQzp+hraf /ATke5ZY1Q/JO1xKIZzeigWN8kMmoGALATO2ofU3H6UZNc99fzrRCfjZTkfqDLWELQ71 f5hELjXnKxJzpGxeQsgX3uVr/jKYf3DpAwW0dNVSYQ82QaTAzIRGVU+K33lw2taGBEvS 5gIf3HsfRKbDPCfTXxHrll2gaKSZBWhukYU7ILKaVnAwWzj45WXzz4wmAqsNOZOpNhsN xwXQ== X-Gm-Message-State: AG10YOSlzx9472AuNX1zrUAxfdnfOSAOw1JULP0TKJecOYXoVoEDyjTtDhcMaTV2k/u2Dw== X-Received: by 10.194.249.69 with SMTP id ys5mr12818958wjc.97.1454154383068; Sat, 30 Jan 2016 03:46:23 -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 73sm2213783wmm.7.2016.01.30.03.46.22 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jan 2016 03:46:22 -0800 (PST) From: Gary Bisson To: buildroot@busybox.net Date: Sat, 30 Jan 2016 12:45:55 +0100 Message-Id: <1454154357-31625-9-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1454154357-31625-1-git-send-email-gary.bisson@boundarydevices.com> References: <1454154357-31625-1-git-send-email-gary.bisson@boundarydevices.com> Cc: thomas.petazzoni@free-electrons.com, jezz@sysmic.org, vincent.stehle@freescale.com, luca@lucaceresoli.net Subject: [Buildroot] [PATCH 08/10] 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 --- package/Config.in | 1 + package/libimxvpuapi/Config.in | 10 ++++++++++ package/libimxvpuapi/libimxvpuapi.mk | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 package/libimxvpuapi/Config.in 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..222aa76 --- /dev/null +++ b/package/libimxvpuapi/Config.in @@ -0,0 +1,10 @@ +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. diff --git a/package/libimxvpuapi/libimxvpuapi.mk b/package/libimxvpuapi/libimxvpuapi.mk new file mode 100644 index 0000000..ff9282d --- /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))