Return-path: Received: from mga07.intel.com ([134.134.136.100]:42549 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbeDEK7M (ORCPT ); Thu, 5 Apr 2018 06:59:12 -0400 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: tfiga@google.com, hverkuil@xs4all.nl Subject: [v4l-utils RFC 4/6] mediatext: Extract list of V4L2 pixel format strings and 4cc codes Date: Thu, 5 Apr 2018 13:58:17 +0300 Message-Id: <1522925899-14073-5-git-send-email-sakari.ailus@linux.intel.com> In-Reply-To: <1522925899-14073-1-git-send-email-sakari.ailus@linux.intel.com> References: <1522925899-14073-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-media-owner@vger.kernel.org List-ID: Extract the list of V4L2 pixel format strings and 4cc codes from videodev2.h for use in mediatext in order to convert user given format names to 4cc codes that IOCTLs use. Signed-off-by: Sakari Ailus --- utils/media-ctl/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am index ee7dcc9..8fe653d 100644 --- a/utils/media-ctl/Makefile.am +++ b/utils/media-ctl/Makefile.am @@ -12,7 +12,12 @@ media-bus-format-codes.h: ../../include/linux/media-bus-format.h sed -e '/#define MEDIA_BUS_FMT/ ! d; s/.*#define //; /FIXED/ d; s/\t.*//; s/.*/ &,/;' \ < $< > $@ -BUILT_SOURCES = media-bus-format-names.h media-bus-format-codes.h +v4l2-pix-formats.h: ../../include/linux/videodev2.h + sed -e '/#define V4L2_PIX_FMT_/ ! d; s/.*FMT_//; s/[\t ].*//; s/.*/{ \"&\", V4L2_PIX_FMT_& },/;' \ + < $< > $@ + +BUILT_SOURCES = media-bus-format-names.h media-bus-format-codes.h \ + v4l2-pix-formats.h CLEANFILES = $(BUILT_SOURCES) nodist_libv4l2subdev_la_SOURCES = $(BUILT_SOURCES) -- 2.7.4