Received: by 10.223.164.202 with SMTP id h10csp1461371wrb; Thu, 23 Nov 2017 18:38:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMaGpP7KRZ/pRNZuuda8eprFOXcK9f/pjxYOSzORP4FS8hShRuvT4l/e2J03ym7SjCZN2EmA X-Received: by 10.101.80.200 with SMTP id s8mr5934546pgp.260.1511491116407; Thu, 23 Nov 2017 18:38:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511491116; cv=none; d=google.com; s=arc-20160816; b=zWUXE8Li8n3ApnqimxNeigNpXcAvDlMP59Ybi9WTyAPS5ftakXnGCqIGgveAnTdJUg 6ZA6uCXqI6jJLfWIBXvFhizKXoEmHWrf5C+Ndoxl2+kCQ8K+/Lv/dwmn5Wk/YjyZ4OzB VclZcH9chsSJw58KV41Xa6D64KssJzLF1da9MExB/SZZk0rOLKbvywRB7QN8mf70FeNR WmDwFBelz8YqKGImRKFWeQzToIPG4nYkhC06OUTWTk4Sbpz6twOqWnWwnrjitPrhk+fi IDj5+8FaVMyhehK+rdsFI8FzDgFIvRT5foPuD2qPR0P1VrFaT9ZvteOnZ3ZwrhQXNnpj FXKg== 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=k+uTEGvyF351rqfU2Jv73E39xJS35X7RANx+y2Zp+AQ=; b=zGrm1x5VrRi9670PcBOVNyPXNbQWUrT/4vD7jRK1QkDQl75yYu9xNpb9Bk4kyv+VW+ PN3W8K73Ao8tYvoBJ9hF/WBwLYKMkkfjonwheYjCLypssBU0XqK3pf4l2I1auBsPvzFi NnHHgZZ1qKeu+0KuPxM4xEY06vGZa4VXrFBEhDA7DOCkF+VNGK12D1HnKDTqw8X2AJ3U N7u0AQl5CuCav6GQ6lHAIFFOqNl/SxuEob/1FH2UvhRUqR8R343o6eNwRcLOvBr9mNQj 1fEn3vaYUMKxMvS4f6d6gx8v0kSx/ImnkflPZ1g8KmAoTGtG9r3xGFFAFShbxAmG2x70 TIVw== 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 p1si17052271pgr.812.2017.11.23.18.38.25; Thu, 23 Nov 2017 18:38:36 -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 S1753045AbdKXChh (ORCPT + 74 others); Thu, 23 Nov 2017 21:37:37 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:40077 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbdKXChe (ORCPT ); Thu, 23 Nov 2017 21:37:34 -0500 Received: by mail-pl0-f67.google.com with SMTP id 62so3605290plc.7; Thu, 23 Nov 2017 18:37:34 -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=k+uTEGvyF351rqfU2Jv73E39xJS35X7RANx+y2Zp+AQ=; b=egXeXYo8e2LmjB+8KI9WU2LIwftMCpV6U6sECaQ88Zfmw+pxI9VQaGOVzVaRqNoa4J WmIXtEHWZWbSXjkbFYDI+1TlmU1Sr+L7mJdXiMeU+nNnHC8ZHknSwIHu1TA+qR9e37wM cAH+PZQp0VkZjWYcpKpTcoVVzmAxq6IUa+Twp03bn8zPl38u0vhHvKOJeMhvizEsG9g4 b5Q9nNCXiPjLqEk3/dTAO7qWdVUOuyu31XIpFrPM0BzP2tR7cmotS/HHZDrhsj1zg54k bxdbIEIG4ET+xaJK2tSXPDYm/oNz3nciKqk9m+4uKL/Mtl1b3j709E3EJgy+EzcFDK32 rIbg== X-Gm-Message-State: AJaThX7YLQ5YE6Oe/YfDdNE4Ue0vBD8VNeDovh9Mh4p/0uJLi5vEp+XJ CDhvNgbhFnG3C78fyL58frQ= X-Received: by 10.84.179.165 with SMTP id b34mr27745898plc.17.1511491053766; Thu, 23 Nov 2017 18:37:33 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i8sm29440653pgq.67.2017.11.23.18.37.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 18:37:33 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org, linux-media@vger.kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, tfiga@chromium.org, zhengsq@rock-chips.com, laurent.pinchart@ideasonboard.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, allon.huang@rock-chips.com, devicetree@vger.kernel.org, heiko@sntech.de, robh+dt@kernel.org, Jacob Chen Subject: [PATCH v2 01/11] media: videodev2.h, v4l2-ioctl: add rkisp1 meta buffer format Date: Fri, 24 Nov 2017 10:36:56 +0800 Message-Id: <20171124023706.5702-2-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171124023706.5702-1-jacob-chen@iotwrt.com> References: <20171124023706.5702-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 7c871291c1fa..961545e64c12 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -691,6 +691,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.15.0 From 1584801969423637367@xxx Wed Nov 22 21:08:54 +0000 2017 X-GM-THRID: 1584801969423637367 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread