From patchwork Fri Nov 29 12:27:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 22140 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 D2BFABE175 for ; Fri, 29 Nov 2024 12:30:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 157F566028; Fri, 29 Nov 2024 13:30:42 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="JVwtv00V"; dkim-atps=neutral Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7522260531 for ; Fri, 29 Nov 2024 13:30:40 +0100 (CET) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-7fc99fc2b16so1028443a12.3 for ; Fri, 29 Nov 2024 04:30:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1732883438; x=1733488238; 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=+WWDKV9ZAe1OXuu6QxbFGEhMg0fTYquaHHeHCjkncbw=; b=JVwtv00VXX2GY2bDCLyZCD2+abVZ8r15E/EsV7FF9xJS2LnQYvYEoliPpJUfOSecF0 6ZBLANfzzh1WRf+FHOg8P1IeFjKqN09U8GoYLeXVMpFyB/tetVluL2Lj95bOPI0DuCpL HTY8VnqG2jvaYhKmrgjVM9bQ/CArJcKAVpAyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732883438; x=1733488238; 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=+WWDKV9ZAe1OXuu6QxbFGEhMg0fTYquaHHeHCjkncbw=; b=bSdP2yg0t0Ytwy6ntprWG4T184TqfGSwVBRKWPJ//P6b0u0u8f2tNj4HT1+bH/SGdt iKDLcUSSbx/T0VmNFiOma1MLsNb70T+f5oxOAqW0cMFTwq9CnFinOGD1ecrOcUr6Ld6C 5HtwS0JFwTVhQf8tUJxDu1xXMHWBcFFL5Qk3rnE2UtgVTNYT58tHRqcJscjnXyRauYDE ++GJ2aqHkUGkvMuUJ90ORN4aEUSkAz/9Jwhr9ekRiO1IapbKgTYJFK8H1xjMZHknK4Ld sNnqnzZAaCOeqdHt2z+Y1p3hIf7aGEoV7BplAyJ63OnX+q4tfJdaLwgZmdVniSTXug6S ZfbA== X-Gm-Message-State: AOJu0YxhWmNVGxmDbOcsHMU7NRtnI9tYhelgeVuwx3nCgo2pFFdyOnGX Em+mmDrtrDN3L7WljcRkNwhvwELSU/j11pcMIVMBsqPwKT2D+UTxfZMBN5rZQZZB5x+iBIQ4V64 = X-Gm-Gg: ASbGncvzXd0dEa9Via7IApbaL19P9rAgfg3iFAX/uHn/ozbkbD5zBsbt3/hi3pQXAPT bdwUP8sGz89ComrvUU8wL6K8q9NShAJMjqWuCpaDD/d6BXlk9cd++7TQ7IYBiOM/kH2Us1V6zzY LL4jH3eAIP9dK7HvLqCUAQY6ZcPOH8InKmwMAjnQtObSsfV7mmFh5y8tRVFMCZAoyFAUVcvZz1d mMPy7GhmyK5HChZxH7A0ksMD9eI7Wvi5HYtX5UOSKBGVDI1euToK95kXUONXrrTeC6l+KubB4MZ GKVarXIHRzbLI2ztjmyPxLs6ExatVHQmtF6HWE7m1v5k1cw0S193Cpbv X-Google-Smtp-Source: AGHT+IENPGTstGoCHlbWmLomMVqgtHJhall+mqmZZ+GyhzzsLl01gGnF7o0z42cX8jV3XR/8W2TO6A== X-Received: by 2002:a05:6a20:1586:b0:1db:f53d:f0c2 with SMTP id adf61e73a8af0-1e0e0bb5e72mr16940287637.43.1732883437105; Fri, 29 Nov 2024 04:30:37 -0800 (PST) Received: from chenghaoyang-low.c.googlers.com.com (112.212.229.35.bc.googleusercontent.com. [35.229.212.112]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fc9c2d3e28sm3017469a12.17.2024.11.29.04.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2024 04:30:36 -0800 (PST) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v7 0/2] Add camera sensor properties for ciri Date: Fri, 29 Nov 2024 12:27:48 +0000 Message-ID: <20241129123032.2957763-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/1319966 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. v7: - Updated commits' author. v6: - Added controls' delays. v5: - Fixed the conversion from RAW10 to RAW16 for black levels. 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 | 26 +++++++++++++++++++ .../sensor/camera_sensor_properties.cpp | 26 +++++++++++++++++++ 2 files changed, 52 insertions(+)