From patchwork Wed Nov 20 07:36:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 22019 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 DD5ADC32F5 for ; Wed, 20 Nov 2024 07:38:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7520265F32; Wed, 20 Nov 2024 08:38:14 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="OOSJm6uq"; dkim-atps=neutral Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 97C8E60531 for ; Wed, 20 Nov 2024 08:38:12 +0100 (CET) Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-3a6c1cfcb91so24730955ab.0 for ; Tue, 19 Nov 2024 23:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732088291; x=1732693091; 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=XNWMQtvxm49vTvyd/AWFoOJRjwH5S8LJCMmMqyTlsKM=; b=OOSJm6uq57NtWYtjgwxyGzEdVmcV7kNX+dhCsRV3B8sWFaB3XH3tTyE7cnZPnyCKyu RmtUcZF6AjuaE3VPGUkrQPpjBO2BvXvAiS9Vv6d+NJA6WYQG1/KprZB7n/pqwctqBs7d qIbiZbyzvJ8JW/C9VIGPdv01tXSpXd4m9KULM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732088291; x=1732693091; 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=XNWMQtvxm49vTvyd/AWFoOJRjwH5S8LJCMmMqyTlsKM=; b=jdB6WrGFPJQa8gSAGNrMBeG9/U+DVOItRzh1rZDCuVl6aVROlFzkqeMkj/3B4npjEa BL96tJO4VgupKYsrFAzmIfk4Eo75QFUqNuCk9cVy+10sKXKPJaPA/A0SvR2jGt3iz0lK OeXn24Hfl8KUlEJUSV/wvaeyePyMYTg3vB2LD032YrdaHgFmZr+y59FFAwz4vsVe+evm ZqX6KAy6W+o5ozjifU97E7kivRej5LpzWr7cmCn5aMg3sNWQqWRP9qSO31Qy7exScPLr 6AcGlM6josUuSbFbqGkUy8Fiw4A5gpSAcyXsUVYbxyJxo573gZk8YXlv1ri1A/BVJZo2 rVHw== X-Gm-Message-State: AOJu0YzzBGZQIZJe6df5M0Lp5mnq/EmNgTLYKgsTAX480EGbaw62oeV4 PjGnl8e9dOe0g10HN9/7SeNqhxFIV2oYHfJGbbOaMZ4L9ssAlW6MLhrxUESwG25jWXgY9MmRFgA = X-Google-Smtp-Source: AGHT+IFEEQVmznEL671+dzWCrhw/6eg7qulBEwpXoZJVZNWXopQKdjYK0mkdH7EQerYBEQk6mzV2uQ== X-Received: by 2002:a05:6e02:12c5:b0:3a7:7e46:c4f3 with SMTP id e9e14a558f8ab-3a7862d922bmr22179705ab.0.1732088290932; Tue, 19 Nov 2024 23:38:10 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (27.247.221.35.bc.googleusercontent.com. [35.221.247.27]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f8c1c16ef0sm8943445a12.1.2024.11.19.23.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2024 23:38:10 -0800 (PST) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v4 0/2] Add camera sensor properties for ciri Date: Wed, 20 Nov 2024 07:36:58 +0000 Message-ID: <20241120073806.3552478-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.338.g60cca15819-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 patch adds camera sensor properties for sensors on mtkisp7. It's required to produce correct color bars test pattern instead of random pattern. Tested on mtkisp7 branch with ChromeOS tast test `camera.HAL3Frame`. This patch passed gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1313611 The source file includes quite some legacy code that has linter warnings. This patch follows the same legacy format, so there are some lint warnings as well. v4: - Added black level values. v3: - Updated commit messages. - Added proper linear conversion rules for the two sensors. v2: - Removed hi1339 that was not upstreamed and deprecated. - Added CameraSensorHelper implementations, while might not end up using. - Split into two patches for two sensors. BR, Harvey Harvey Yang (2): libcamera: libipa: camera_sensor: Add GalaxyCore gc05a2 sensor properties libcamera: libipa: camera_sensor: Add GalaxyCore gc08a3 sensor properties src/ipa/libipa/camera_sensor_helper.cpp | 24 +++++++++++++++++++ .../sensor/camera_sensor_properties.cpp | 14 +++++++++++ 2 files changed, 38 insertions(+)