Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp851495pxf; Wed, 24 Mar 2021 18:31:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqo7slVi8xqSfi+75k03kQWpw3VR8ZkR9kkeRd+YbXgn6IC2tOoqDL7yfUDsQmoAuw/38C X-Received: by 2002:a17:907:7355:: with SMTP id dq21mr6575729ejc.159.1616635876156; Wed, 24 Mar 2021 18:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616635876; cv=none; d=google.com; s=arc-20160816; b=CAmXVgH5DYF3ieaq2gD8ZOqKt6yeXhXuH9F/UgHhAKqq1AVMZrOmXMpE56K2b9gx4U EUJ/c76Ro0Rfkpvl2ZqHLVPhgkWRkuBG6YC4XtIHpUCIfmep2hHktupU3IQ7MHoY5Jln VqUYie64RAN+CwePMZzztjbewRdz4CRd8VVO8rvlIIR8sqZ7eNP/hgmgV3w4QY2fz38E iS0Bk18RYkHeNHocLQMbvyeE4+C5DOQ74h0UygNiLwjZpI+DXebI54TVOQyhbRMDI6/V MDrqn/c2tQRvMkP48WlECBHooF4Or2bTRgUVU480jDhWrq+7dB8OYquLMpRAEh5C6fL/ /xjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UHnQXvCUEV0VtT2MvwRRUTMl7zF6eBJNcfSgoe0/Exk=; b=I/T+PXHZc6nZOu9UgWfymKumScRYNb4VxlfREVifKkboSge2tMQIW/ysae8yhWOqPx KXDufGt8Wn1cP8oNQK0x5me4Ci7GLN2kd5DA+Hge1B0qAi3ClI45UsAt1KfgSaPLMAl/ stNMuyPSTMuMMjLYOomuWNQ+8abmRo3WOgSiOEsxVLQjYxUNUfVLFsNfurDZDdezkuYL /cVHOJRZPj1BVIKtb84hSk8skubNsL56us4GjqsJIm3PpSu4PMvEsFAwMGClrilkCk+H GdjCGQSvF44VbPOy+/B5Q5PVWdth2xYASHXLn0ifNI8/vyrnn8PbPr6IJXF3qQR4l8XD +VEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="k9D/2cT0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si3015113ejw.670.2021.03.24.18.30.53; Wed, 24 Mar 2021 18:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="k9D/2cT0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235482AbhCXHgX (ORCPT + 99 others); Wed, 24 Mar 2021 03:36:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233527AbhCXHft (ORCPT ); Wed, 24 Mar 2021 03:35:49 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53976C061763 for ; Wed, 24 Mar 2021 00:35:49 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id bt4so11265648pjb.5 for ; Wed, 24 Mar 2021 00:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UHnQXvCUEV0VtT2MvwRRUTMl7zF6eBJNcfSgoe0/Exk=; b=k9D/2cT0CpmkqGaY/11MKywcaywPYQDVieLebj1UULT8z9sBDXaJNLJowStEUy3/w6 3apxlPcQNPpUIPRzmPeZtywZ2THyPh6PlVTJGkfrAxdMXskEC7osX7UNhOZtOEfT1h+S xou4rtF6ZowEhSkONdvfuYE5baadAn8u+2Tu4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UHnQXvCUEV0VtT2MvwRRUTMl7zF6eBJNcfSgoe0/Exk=; b=D8IJ6gTvIlQLsfFx3Mxgu94jWQHysWgVntHZRYfY4u6/1JiwVzpumInH2Q4/TIaXSr EqIkJmU5XVEeuv5o0y8hHFd4HwpXHVzXAuWY4sqKYVjaEWU/HETHuygynPJcLvKij98r OBE1vzKwrNPDobf7aG0GDqz/baroDpGE0TE4V5tDucRG0Q5FqJmzO8hs08vj9sS8j86M /T/zIzgtWJKI0leVo5fLieWAIugYJhsPXhBwIjnWafMVyeqGmlFafxXPdbfuaWAni4mQ jeFhfAXocYg4Kl5bDL4w+NL8brbkk/VLXQBL8AZd126x55jZVR7bmH3+gZHA3E5buGCH HJrg== X-Gm-Message-State: AOAM530qxb15N2TBUr7XQPe7VZbttoL5AeCMfxd2p+YPHQUqGWx5Vdrd KUfkWvn/oyhdWLrd0WLMHe82+w== X-Received: by 2002:a17:90a:c004:: with SMTP id p4mr2112110pjt.202.1616571348923; Wed, 24 Mar 2021 00:35:48 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:bcf2:e05a:a993:9494]) by smtp.gmail.com with ESMTPSA id k64sm1366705pgk.23.2021.03.24.00.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 00:35:48 -0700 (PDT) Date: Wed, 24 Mar 2021 16:35:43 +0900 From: Sergey Senozhatsky To: Ricardo Ribalda Cc: Sergey Senozhatsky , Laurent Pinchart , Tomasz Figa , Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List Subject: Re: [PATCHv3 3/6] media: v4l UAPI: add ROI auto-controls flags Message-ID: References: <20210319055342.127308-1-senozhatsky@chromium.org> <20210319055342.127308-4-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (21/03/24 08:28), Ricardo Ribalda wrote: [..] > > > > > > Are you sure that you do not want to start with 1<<3, there might be > > > some hardware that support LE/SE > > > > How the hardware's going to support this? There is simply no way to > > pass these flags to the firmware, the values already overlap with > > auto-controls. So I guess these flags are for the driver (C code). > > uvcvideo driver is not doing any "lesser or equal rectangle" magic > > for ROI. No such thing is defined by UVC spec. > > The driver can implement se/le. Right. I wonder if we can actually fit ROI into selection API. v4l2 selection is focusing on rectangle, that's the only thing that matters, but in ROI rectangle and autocontrols are equally important.