From patchwork Fri Aug 23 13:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 20998 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 5CAF4C323E for ; Fri, 23 Aug 2024 13:11:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B002A633CB; Fri, 23 Aug 2024 15:11:52 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="e5dGwXeP"; dkim-atps=neutral Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 09D3863393 for ; Fri, 23 Aug 2024 15:11:51 +0200 (CEST) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-37196681d3bso1072072f8f.3 for ; Fri, 23 Aug 2024 06:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724418710; x=1725023510; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fzw0EJfgUYQFusmmKQwHKLWRa/bfdpOUDEq0O8F04Ec=; b=e5dGwXePou0Bgec+8ZQ09cAGvx2OHWK9txzCV5nvSa/e0QcOYvI3XueXjdPYADBUJs O3/DMBKazUW68PLzZZS25Ftat3iy297/GmXiWUvrWFAhU5pPB7yTwAjMggyEpe7koTo7 qQbCy8EE5y5bfj3TIrYc7sVr5QuJX+B0behB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724418710; x=1725023510; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fzw0EJfgUYQFusmmKQwHKLWRa/bfdpOUDEq0O8F04Ec=; b=ubYJyDCqYLwPW5MWYmZPYFTXzt/towdQQTg/60F4xzie8Q88Rx2pmrP+xeiQxfusIA Gfi1u6zM+VH9evfQ4x9jU1+TdpTJHXZiH+g9QjlTBUaJ+mPabq7/pVJEc0UJOKvM4uPp fe09Chb/DWHP8lbmgvjs8bKTsRp0IfvPuKBP4W6T12n3SGZjx/nnHV7XxVYNILOz7Sch b4A+CFrog5yveyQ4eH/5+Mw+pYhlIo3UhaP8TI0gEIaGpxINi89YJyX29FlGz3ppduhM IPTYqDvbyobY5oz1QLEGxjAuWoXHLJf/HR+s3vcRx62U0qYezfthOyj1ktm1qcxLWpxN qXiw== X-Gm-Message-State: AOJu0Yw/h80jSXk5qv9QqvD+VboqvzU5DVaTEHfz6sKfQqRPHpAaVB5G p9PHEJXpD3AsPgAVcmL1sz4MZ8T5IkZGdbdoFIOJG7PwP0SP/ynMJobNEFufyMM3L2VlSJNfXyO RDg== X-Google-Smtp-Source: AGHT+IHTipMmrW1347NmqPpG3QxQbQ0sLBZxLPDu6AXzCbRJxhNnBIinS5UO+OzEV/NKxxWIs+Hv+w== X-Received: by 2002:a05:6000:144a:b0:367:97b9:d5ed with SMTP id ffacd0b85a97d-373118880f8mr2076165f8f.9.1724418710125; Fri, 23 Aug 2024 06:11:50 -0700 (PDT) Received: from chenghaoyang-germany.c.googlers.com.com (161.126.77.34.bc.googleusercontent.com. [34.77.126.161]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3730810ffb9sm4185000f8f.7.2024.08.23.06.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:11:49 -0700 (PDT) From: Harvey Yang X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v1 0/3] Add Face Detection Controls Date: Fri, 23 Aug 2024 13:07:32 +0000 Message-ID: <20240823131148.2449434-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi folks, This series of patches adds face detection controls in the control ids, the corresponding usages, and a c'tor of libcamera::Rectangle to construct it easiler with face detection results. This is one of the series cherry-picked from cros mtkisp7 branch. The corresponding CLs in cros are: https://chromium-review.googlesource.com/c/chromiumos/third_party/libcamera/+/4741266 https://chromium-review.googlesource.com/c/chromiumos/third_party/libcamera/+/4741267 https://chromium-review.googlesource.com/c/chromiumos/third_party/libcamera/+/5669229 The usages in pipeline handler mtkisp7 will be added later. Please take a look. Thanks! BR, Harvey Yudhistira Erlandinata (3): libcamera: Add rectangle two-point constructor libcamera: Add face detection controls libcamera: android: Add face detection control support include/libcamera/controls.h | 6 +++ include/libcamera/geometry.h | 10 +++++ src/android/camera_capabilities.cpp | 41 ++++++++++++++++-- src/android/camera_device.cpp | 64 +++++++++++++++++++++++++++-- src/libcamera/control_ids_core.yaml | 42 +++++++++++++++++++ src/libcamera/controls.cpp | 6 +++ src/libcamera/geometry.cpp | 7 ++++ 7 files changed, 169 insertions(+), 7 deletions(-)