Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3918506imu; Mon, 10 Dec 2018 09:51:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/XxYgxUEeEOAzHJ9stmG5rBP6KfuV3ZgE8iTfG/OqtwX/Gh/miOG/IkX+8nsEwf1lFvZz0X X-Received: by 2002:a17:902:7614:: with SMTP id k20mr13082393pll.285.1544464290654; Mon, 10 Dec 2018 09:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544464290; cv=none; d=google.com; s=arc-20160816; b=jXDV/j/VXkwke27A28C6WEMJUT3KpObOVIQm95Jz/1ZSfJidS+mMo/9Gnh/fe6dXBK q9W0lVbEeb2Ja///BK6HtsslTGM0r1NhEuf+smNZUWdv8Rxy3AzpbBoD+L1LgQlgbslt WcUpoQrQSErfSYy+Eh4Om10xuJuO9iVWj+yKmsWaZ+JYRgdbyCXfS3gD4QQpMRiH1K08 IOASAPSQ8GV8cvsHU8ZOFh4GEvy1almexdnv8oQu7FAQWMicO8v7qcn3sCNIJZQW0l6P XIhVACRWQ7PsCZEgkh7di6dlr1a1RppmdxeyDiUTXBNR7tUeRZqNaPQndPIAi0NjX8AK /owg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=RihCSpXjZqbGEcsP8rpYT393GCmJRiW7cn1XfNpZYkI=; b=DvxJTqRf0Emfe0zINc+6ISb+cfG/mjQQ+VBWyGI17l+AJkodi29Lg/4RxKFW31c8yJ Clnt8gzJOKhb44uqlFSryP3MP5BIVZkh38tAFtYBf8Qlq9uLU4wNJEFQByRndJ+yN1Pv nYJ0HlnW+3V5hRjMEKyP/UYDuXDlEI5QyMmTB/MNr6b4aOIU30DWZc/eDcquYCzsI7CU YnDFe6398yx1/eTB6Sn2SbAj0ts30+yKJNgHVEaZNr8HrLKUYMlVz0EXBEn23kG+M4MO 1gQQR6PhuhBTl5ac8AcePjdevfguCk8CstzHRyYwO2TIZMQNOjJU6ONX/TUWhbt1kkVw W2xQ== 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 n5si10121770plp.294.2018.12.10.09.51.15; Mon, 10 Dec 2018 09:51:30 -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 S1728169AbeLJROe (ORCPT + 99 others); Mon, 10 Dec 2018 12:14:34 -0500 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:53698 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728558AbeLJRNp (ORCPT ); Mon, 10 Dec 2018 12:13:45 -0500 Received: from [IPv6:2001:983:e9a7:1:153f:c992:21d9:6742] ([IPv6:2001:983:e9a7:1:153f:c992:21d9:6742]) by smtp-cloud8.xs4all.net with ESMTPA id WP7lg6aCVCZKKWP7mgF4Gv; Mon, 10 Dec 2018 18:13:43 +0100 Subject: Re: [PATCH] media: vimc: add configfs API to configure the topology To: Helen Koike , linux-media@vger.kernel.org Cc: mchehab@kernel.org, lkcamp@lists.libreplanetbr.org, kernel@collabora.com, linux-kernel@vger.kernel.org References: <20181207182200.25283-1-helen.koike@collabora.com> <126c3faf-18e0-6fe5-e2f5-8ef0878fb767@xs4all.nl> <1cf814ac-60e1-bff7-4e9b-72b2c393d49a@collabora.com> From: Hans Verkuil Message-ID: <159b0f0c-8e75-385d-08de-117d50ab70e3@xs4all.nl> Date: Mon, 10 Dec 2018 18:13:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <1cf814ac-60e1-bff7-4e9b-72b2c393d49a@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKo9lcqtGuOFKiv+NchOElUxtHaDvs2CzEcZlT0ziIMRSjMy47a5WVAxlN2ZLJRFOHCzpz8taHDamKmBRp9xmViw953FfFj9IwdTXtaiZ2RAEsM8OPIw SQO0D7Nm9E7Cwd2GIocVNilB3kq5J4QF6AP2FWDVL2JGtmUWd82rdjdpDbq+WBzbNi03fIQQiJ1CQJmE/4hjuUhRHJnmfvsSjTpwYjrgLVmjljEgSRlrcXFq xCMqmUHcfcSGNr+JyxtjXK6j318fJ3Rp/i/gwA3yuaVGcFpgh82qgC081YoM6HndcGCCCrkmYiTuG+OiK3RdgtqrVxWR31P9hBKTJ2Nv77HIYKbRZWEILvCX roy37HmbOXwduIF7wpcT6stFoYs2sIKwyfCLdy1h/dTGSaC6twLh5ReqymjV/SEWP4qDXG3W5fZUAeT+XM/CCYN1Ijp39vJMNfG6eKJCEiQruetBmRw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/18 5:14 PM, Helen Koike wrote: > Hi Hans, > > On 12/10/18 9:31 AM, Hans Verkuil wrote: >> On 12/7/18 7:22 PM, Helen Koike wrote: > >> >> The previewer is effectively similar to a debayer block. > > You mean the image it outputs? Yes. It takes a bayer image and outputs a non-bayer format on the omap3. > >> >> AEWB, AF and histogram are for auto-whitebalance, autofocus and histogram statistics. >> This isn't supported by vimc, and is a 'nice-to-have' for the future. > > Right, I need to check how to include those. I am a bit confused as in > the omap3 topology they are seems to be just configuration points (I > mean, they are not really part of the image pipeline). Typically the SoC analyzes the image and produces statistics of various kinds that are given to userspace via devices like this. It is used as input to auto-whitebalance, auto-focus and auto-gain algorithms running in userspace that feedback the results to sensor config changes. The format is usually very SoC-specific. > > I was reading this > https://linuxtv.org/downloads/v4l-dvb-apis-new/v4l-drivers/omap3isp.html?highlight=histogram#statistic-blocks-ioctls > It says: > "The statistics are dequeueable by the user from the statistics subdev > nodes using private IOCTLs" > > I suppose we should emulate those private IOCTLs in vimc? If you could > provide me some pointers in where I can find docs on these private > IOCTLs it would be great. No, just ignore these statistics devices for now. And if we make them, we can design a vimc-specific format. > >> >> The main missing bits in vimc are a CSI block and a splitter block. It should be simple >> to add the CSI block since it really doesn't do anything in an emulated environment. > > CSI would be just a dummy entity with one sink pad and one source pad right? Right. > >> >> A splitter might be more complicated, I'm not sure. > > splitter shouldn't that complicated in the current state of vimc, but > when we start optimizing the pipeline then it is going to be more > complicated. Right. Regards, Hans