From patchwork Wed Oct 28 07:59:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volkov Viacheslav X-Patchwork-Id: 537219 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id F0E301409F8 for ; Wed, 28 Oct 2015 18:59:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=inbox.ru header.i=@inbox.ru header.b=pZgv/lGv; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4B47A87295; Wed, 28 Oct 2015 07:59:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t4MQPBhepTPT; Wed, 28 Oct 2015 07:59:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B8E7787181; Wed, 28 Oct 2015 07:59:40 +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 6A2141C11A0 for ; Wed, 28 Oct 2015 07:59:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 63C1988546 for ; Wed, 28 Oct 2015 07:59:39 +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 roGtbc8MS46E for ; Wed, 28 Oct 2015 07:59:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5E669883AC for ; Wed, 28 Oct 2015 07:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Message-Id:Date:Subject:Cc:To:From; bh=hF4H4+uKn/Vv9MMySFLQbaq7tKroNff/9o0sSu3FlAQ=; b=pZgv/lGv+jw4v1izuepWMEUV3MzAylWumkDQFGbqL1Quo0yjDntgV3QVm6Mt9JxxijvgQ4Ig3jluqSdtbUD2GCvpOcqu5ZYG4udDEUVWiLyBDAlESej/uBFYZtW+HgCWuQLVb3DbKrHVXTxG2/Ao5EGd179RpsXAgg4YvNcAl1Y=; Received: from ip-91-219-66-11.spb.avantel.ru ([91.219.66.11]:52311 helo=br2.rost.lan) by smtp44.i.mail.ru with esmtpa (envelope-from ) id 1ZrLds-0000Bq-E6; Wed, 28 Oct 2015 10:59:32 +0300 From: Viacheslav Volkov To: buildroot@buildroot.org Date: Wed, 28 Oct 2015 10:59:00 +0300 Message-Id: <1446019140-21478-1-git-send-email-sv99@inbox.ru> X-Mailer: git-send-email 1.9.1 X-Mras: Ok Cc: Viacheslav Volkov Subject: [Buildroot] [PATCH v2] v4l2grab: 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" I not find libv4l2grab utility in the v4l2 distribution. Exist sample code in the documentation: http://www.linuxtv.org/downloads/v4l-dvb-apis/v4l2grab-example.html The utility based on this example. Signed-off-by: Viacheslav Volkov --- Changes v1 -> v2: - many changes suggested by Thomas Petazzoni - add license info --- package/Config.in | 1 + package/v4l2grab/Config.in | 16 ++++++++++++++++ package/v4l2grab/v4l2grab.mk | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 package/v4l2grab/Config.in create mode 100644 package/v4l2grab/v4l2grab.mk diff --git a/package/Config.in b/package/Config.in index 10ff94e..75a5120 100644 --- a/package/Config.in +++ b/package/Config.in @@ -40,6 +40,7 @@ menu "Audio and video applications" source "package/tstools/Config.in" source "package/twolame/Config.in" source "package/upmpdcli/Config.in" + source "package/v4l2grab/Config.in" source "package/vlc/Config.in" source "package/vorbis-tools/Config.in" source "package/wavpack/Config.in" diff --git a/package/v4l2grab/Config.in b/package/v4l2grab/Config.in new file mode 100644 index 0000000..951d5e3 --- /dev/null +++ b/package/v4l2grab/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_V4L2GRAB + bool "v4l2grab" + # dependencies from lib4l + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_MMU # fork() + depends on !BR2_STATIC_LIBS # dlopen() + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # media headers + # wait for libv4l 1.7+ for musl compatibility + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBV4L + help + Utility for grabbing JPEGs form V4L2 devices. + + http://www.twam.info/software/v4l2grab-grabbing-jpegs-from-v4l2-devices diff --git a/package/v4l2grab/v4l2grab.mk b/package/v4l2grab/v4l2grab.mk new file mode 100644 index 0000000..12b4c3f --- /dev/null +++ b/package/v4l2grab/v4l2grab.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# v4l2grab +# +################################################################################ + +V4L2GRAB_VERSION = 7815752fafb8b797047e819a08a3b6e2f2880846 +V4L2GRAB_SITE = $(call github,twam,v4l2grab,$(V4L2GRAB_VERSION)) +V4L2GRAB_LICENSE = GPLv2+ +V4L2GRAB_LICENSE_FILE = LICENSE +# Fetched from github, no pre-generated configure script provided +V4L2GRAB_AUTORECONF = YES +V4L2GRAB_DEPENDENCIES = libjpeg libv4l + +$(eval $(autotools-package))