Received: by 10.223.164.202 with SMTP id h10csp311343wrb; Tue, 14 Nov 2017 23:33:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMYFylAiA5TzFbyZOmHgCJOBBiHcW8yxcPJmy58M8n/QsyWBhl5UmDm+sk/elHZbD8xTSAry X-Received: by 10.99.184.25 with SMTP id p25mr14361990pge.180.1510731190677; Tue, 14 Nov 2017 23:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510731190; cv=none; d=google.com; s=arc-20160816; b=lOTZ0RycdXuX10vlQ0o+LhAdONA3YloEi7S2f7+Az2VOOfitW4ZtATdUB1cRFuxU4/ LM8EpAfZyISAQFOSDv2bAK/5pSVcqwHfmVugpaLpdgIOOE/qvoMMLhDixqycYO/fCTsf CgJY+P5w9U2FGH72N1VwlkNQ1ROvBK+zr4pAllr3F6IRlSn+TEQvroLOqNcug6aw2MJs KWB5n4kgTJbXPf3aMLWypT9tZMOLUJ+gLSl5yg1zi5AFGgAYlfG1Qyfv9pnt5+BhtEH2 g54JbpfkM/P4+u2RqGMOsgzd/LkgEq1dJ7EYDnS8UVWkvb8yN+J3DtRzSu+dsSkYru60 bZ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=HTVjipECmACDUzLNhX/v8fdtRiASSWDA0LyQaRxohRc=; b=wZFMh32mHfwkdlGrHoBGKexYia9h+/oC72ZKYbQqSAStoZk598k3+OfOthbsKL+3cn UYYKkOoURFUEVk+NbyYH9YDYGZrTf3rSO6xN6i9W2m8mTxi+2Lr1kzNW9cxliX7n2pAH lXunYG7KuvP0bzai3mE1PPLVZVyR5o1jCym0GZjI/C4yNi5pXK2OXn+r2LQntFET3Etc aCpNRgUSSWhest7s73xDvqzT0/vYZOqfPheKvQAuFARt6PfG7i84UylDVhFgeUBVxF+T zqB5IOvtJtqMbk8CFWXqn/QVWBCHzP2fw7lXHVU+5rNr9vPDHQ0Ocut3234VfzdfPWrh ihMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si6709367pgt.668.2017.11.14.23.32.58; Tue, 14 Nov 2017 23:33:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754867AbdKOHad (ORCPT + 88 others); Wed, 15 Nov 2017 02:30:33 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:55748 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752853AbdKOHaT (ORCPT ); Wed, 15 Nov 2017 02:30:19 -0500 Received: by mail-pg0-f66.google.com with SMTP id 207so14591957pgc.12; Tue, 14 Nov 2017 23:30:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HTVjipECmACDUzLNhX/v8fdtRiASSWDA0LyQaRxohRc=; b=V2y8hbQvIfelg5ivvhElezAljhVhcqdhQIlOLmBWK1IL4+s+Mrn6u5TASm7/jKfd/S S91ZOReUOrzcKOvn4lv0XyWsM5AdIFDw0moDvbSUGBXmJM2++A+qejpeLE5r0ifVLnSF g+YkIoMLaW24sV742OxNpdiFGylgTIDAHPZJhEgZDmjWxfT8Z4ZsKt3oVl7mq8Bjbbyk 5r1xGipJrLl97r7mTR/egoI8WGOMIFrt/AD8y/w7i118JEp2UwSmkr8Ds0mO21j2FqjJ 6hzhu78Tqi/FXunJ7zYFZFYTDSllteQTssLoxeaS+LvKT9xWYVSmmFUkE8/o1xgPLu/l AHNQ== X-Gm-Message-State: AJaThX55IMEknm1xduAMnWDQDRa6pjvjxnmCDWI3OHGRlVLMWgr/Ss28 xwPZnzjgFKiiEps6qAqQDzQ= X-Received: by 10.98.74.149 with SMTP id c21mr16618625pfj.200.1510731019265; Tue, 14 Nov 2017 23:30:19 -0800 (PST) Received: from localhost.localdomain ([2401:fa00:1:fd00:692d:ab5f:79a7:543a]) by smtp.gmail.com with ESMTPSA id n129sm10450336pfn.1.2017.11.14.23.30.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 23:30:18 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, heiko@sntech.de, mchehab@kernel.org, laurent.pinchart+renesas@ideasonboard.com, hans.verkuil@cisco.com, tfiga@chromium.org, nicolas@ndufresne.ca, sakari.ailus@linux.intel.com, zhengsq@rock-chips.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, allon.huang@rock-chips.com, p.zabel@pengutronix.de, slongerbeam@gmail.com, linux@armlinux.org.uk, Jacob Chen Subject: [RFC PATCH 1/5] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Date: Wed, 15 Nov 2017 15:29:23 +0800 Message-Id: <20171115072927.29367-2-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171115072927.29367-1-jacob-chen@iotwrt.com> References: <20171115072927.29367-1-jacob-chen@iotwrt.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shunqian Zheng Add the Rockchip ISP1 specific processing parameter format V4L2_META_FMT_RK_ISP1_PARAMS and metadata format V4L2_META_FMT_RK_ISP1_STAT_3A for 3A. Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ include/uapi/linux/videodev2.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index d6587b3ec33e..0604ae9ea444 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1252,6 +1252,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_TCH_FMT_TU08: descr = "8-bit unsigned touch data"; break; case V4L2_META_FMT_VSP1_HGO: descr = "R-Car VSP1 1-D Histogram"; break; case V4L2_META_FMT_VSP1_HGT: descr = "R-Car VSP1 2-D Histogram"; break; + case V4L2_META_FMT_RK_ISP1_PARAMS: descr = "Rockchip ISP1 3A params"; break; + case V4L2_META_FMT_RK_ISP1_STAT_3A: descr = "Rockchip ISP1 3A statistics"; break; default: /* Compressed formats */ diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index e507b29ba1e0..14efa6513126 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -690,6 +690,10 @@ struct v4l2_pix_format { #define V4L2_META_FMT_VSP1_HGO v4l2_fourcc('V', 'S', 'P', 'H') /* R-Car VSP1 1-D Histogram */ #define V4L2_META_FMT_VSP1_HGT v4l2_fourcc('V', 'S', 'P', 'T') /* R-Car VSP1 2-D Histogram */ +/* Vendor specific - used for IPU3 camera sub-system */ +#define V4L2_META_FMT_RK_ISP1_PARAMS v4l2_fourcc('R', 'K', '1', 'P') /* Rockchip ISP1 params */ +#define V4L2_META_FMT_RK_ISP1_STAT_3A v4l2_fourcc('R', 'K', '1', 'S') /* Rockchip ISP1 3A statistics */ + /* priv field value to indicates that subsequent fields are valid. */ #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe -- 2.14.2 From 1584150154703873101@xxx Wed Nov 15 16:28:35 +0000 2017 X-GM-THRID: 1584119114847659121 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread