Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1136967pxf; Thu, 18 Mar 2021 22:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMMID0Q/Oo4axwtQP/P9ouBip/iTp+l+BpzIyyy2JW0RtiuQlC5AmHw3Z3Q2RAmkiSXn8t X-Received: by 2002:a17:906:2dc1:: with SMTP id h1mr2474642eji.460.1616133333098; Thu, 18 Mar 2021 22:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616133333; cv=none; d=google.com; s=arc-20160816; b=bROUxru+0rMI3qim90/zCoYVwR1gYta+tmkGO0ZD/0MS8Dn2D4QyMKqyDhT99OOCJr 6y+joYL/OkiLMU6q6swr2Lh54YT129ydYl/lugf+O4suIDFE+7M2krR/y9zbmYyT81k+ tTG+5ObEj4XGRSWReDQCJFY0yWB2MrF/DS/0PUxgk2jg2xzZ/s9nxHvmXrS9rPlPPG2q tBjoPtidh6MVgV+7jUnjFFOqtNXpmFzZuQhTU/pY5f93gWw9oG3lO/7cjqvf3HCNSqma k6SQihK/3A7eTRUH0a0znCQ0y0XkAjeRK75vRKQwctGuSMNvX4Kfh1BQvKsHySrZT4W5 QLow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7bBizUYYzN3HQgW0K4Fq8tSkGNuVzaIR04mHPd6N77g=; b=fdjJVXnju5hHCu0eRrDjw4Q8yELjc6MKW21/aJwqCj82Pq2SO+SnDqy+lm1BG9dllm bmK7TjzbHQ2mNTqS42AsHwqQBm4Si+IzNOi0RUWuTVhFlYDWAAQWxeoIsR1uD5MF1/nC pAl8ChyFKeW+gQ1mwDqXywHxzqITG77Y8qCic1QB4B03IT6zOSdag3wlzGO8N75TQEou LLKu79BEFtkCopcdGhyLD+R3Mv7P7H3Tn65cPTdpZLhz4cSfPlecF2RAhAfPXTsxXstK IJ9xn8dqvOcNCb4K6ulShzKE1EIf4CvYPpz+V8QeAut9yKa0DhcRjDWd9kbvZAaJp5Ab CitA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H1AC9ucG; 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 n19si3295528edd.382.2021.03.18.22.55.11; Thu, 18 Mar 2021 22:55:33 -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=H1AC9ucG; 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 S233971AbhCSFyT (ORCPT + 99 others); Fri, 19 Mar 2021 01:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233923AbhCSFx6 (ORCPT ); Fri, 19 Mar 2021 01:53:58 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7F5C06175F for ; Thu, 18 Mar 2021 22:53:57 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id e33so2960015pgm.13 for ; Thu, 18 Mar 2021 22:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7bBizUYYzN3HQgW0K4Fq8tSkGNuVzaIR04mHPd6N77g=; b=H1AC9ucGadxZAm4U2ob93CWFKIDNbUVeNj2XJzkJFYUuj1Z4ACD3uxFvOtxxI9iiQj /0LoXpe3/TyU3iML47ghcy6s+vP89mOr3g7B+00iT9U6cuqaZ1PQ4FeMix0pjMYcYlh+ 1kVY6wgcP5Z4p5ofNcb/yXKhRMALZwibVDrj8= 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:mime-version:content-transfer-encoding; bh=7bBizUYYzN3HQgW0K4Fq8tSkGNuVzaIR04mHPd6N77g=; b=XDU2RkJEHBvQmXkLDdrXhjpFkK5YRuZPjrTxXdrimYyEGgu5LxDk7JqO34bPfurHLd dKTaFSuBsUKRsPEEtfYz1wl7dWcQXe9ZGI7yVlWC3wXPHyFNmqHw8rEUwFxFiBxNlSY8 mg6MJqzMCB34Kwy90xCpsvWevCSdIQbG3VlIIs2wDwyIDZzFT3O1lia9reL6w63uQlCP P1gsvU18ULbGdb0ATEXFWD4nsdiHLNpQlIeNrM/GGfkXW/4TaHVipGnkr7nWMA3vaEag 55KREur9AIX88IKItf/5t0L0V+eEoRR9wJUg+7JKDxb95Ld6s0wcqNm4j4z7y5gKGyii 6Bgg== X-Gm-Message-State: AOAM531FRWIYhfi7FM+KvC8EpPLgAt0CICFXxEzet6IsV+5tkAYJ2hF1 JE9pgfplj3uZCZR3w2tgrXgAzw== X-Received: by 2002:aa7:96cc:0:b029:202:6873:8ab4 with SMTP id h12-20020aa796cc0000b029020268738ab4mr7536566pfq.42.1616133237574; Thu, 18 Mar 2021 22:53:57 -0700 (PDT) Received: from senozhatsky.flets-east.jp ([2409:10:2e40:5100:6577:f83d:5865:dfac]) by smtp.gmail.com with ESMTPSA id o13sm4043704pgv.40.2021.03.18.22.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 22:53:57 -0700 (PDT) From: Sergey Senozhatsky To: Laurent Pinchart , Ricardo Ribalda Cc: Tomasz Figa , Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCHv3 3/6] media: v4l UAPI: add ROI auto-controls flags Date: Fri, 19 Mar 2021 14:53:39 +0900 Message-Id: <20210319055342.127308-4-senozhatsky@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog In-Reply-To: <20210319055342.127308-1-senozhatsky@chromium.org> References: <20210319055342.127308-1-senozhatsky@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UVC 1.5 defines the following Region Of Interest auto controls: D0: Auto Exposure D1: Auto Iris D2: Auto White Balance D3: Auto Focus D4: Auto Face Detect D5: Auto Detect and Track D6: Image Stabilization D7: Higher Quality D8 – D15: Reserved, set to zero Signed-off-by: Sergey Senozhatsky --- include/uapi/linux/v4l2-common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/uapi/linux/v4l2-common.h b/include/uapi/linux/v4l2-common.h index 3651ebb8cb23..34f1c262d6aa 100644 --- a/include/uapi/linux/v4l2-common.h +++ b/include/uapi/linux/v4l2-common.h @@ -92,6 +92,16 @@ #define V4L2_SEL_FLAG_LE (1 << 1) #define V4L2_SEL_FLAG_KEEP_CONFIG (1 << 2) +/* ROI auto-controls flags */ +#define V4L2_SEL_FLAG_ROI_AUTO_EXPOSURE (1 << 0) +#define V4L2_SEL_FLAG_ROI_AUTO_IRIS (1 << 1) +#define V4L2_SEL_FLAG_ROI_AUTO_WHITE_BALANCE (1 << 2) +#define V4L2_SEL_FLAG_ROI_AUTO_FOCUS (1 << 3) +#define V4L2_SEL_FLAG_ROI_AUTO_FACE_DETECT (1 << 4) +#define V4L2_SEL_FLAG_ROI_AUTO_DETECT_AND_TRACK (1 << 5) +#define V4L2_SEL_FLAG_ROI_AUTO_IMAGE_STABILIXATION (1 << 6) +#define V4L2_SEL_FLAG_ROI_AUTO_HIGHER_QUALITY (1 << 7) + struct v4l2_edid { __u32 pad; __u32 start_block; -- 2.31.0.rc2.261.g7f71774620-goog