From patchwork Wed Jun 22 15:19:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Sylvestre X-Patchwork-Id: 16327 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 25623BE173 for ; Wed, 22 Jun 2022 15:19:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C00ED65639; Wed, 22 Jun 2022 17:19:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655911170; bh=yqq+UBp20k1C+9wZ1HmBhedkGwYdaBaRwvsHvWjiKvM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xSxBManRyQkRT2fcA0VESDa0o5vyatVMrt7XDSoKmqqfJC6m+ACjcG5ZImzRxfddK N0igSLL8Appadyfrg0zaNS3G7dP5v8/PrckFg5NIrgg2boLuVONDkS1lTd53PRN8Ix scOUX54h0mGo6y+HeSms+0r/JId9YUuWYFaDovdmlLVU6VmxivZ5Cw5qUhlx6FoAQb rjKvYv8G1FfmZnT7vPN4iO6DbBOwABD8sKEgLVtcIZYjCJg22J+dbu2X2z6jFOFeYF RKGbDH/3+SQdymwq0Cy14ubpmKpEVvrEYo22lrPgUohGrzDm+X2lS3U73/0KSlaJea 6+unZ3Lny+Plw== Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AB7D165633 for ; Wed, 22 Jun 2022 17:19:24 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="Xlf8UMKY"; dkim-atps=neutral Received: by mail-wr1-x433.google.com with SMTP id k22so17458767wrd.6 for ; Wed, 22 Jun 2022 08:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0RPtkDZxBIg4j/flfTGF68aYP828g80Oux51XyfzmZc=; b=Xlf8UMKYp7hoKwbt9UqvWlhFHKo73iyC0kN6608fmbX7/ZfM00zHlxBFbWaqJYVRQp Yu/RT8sF6WRyEQs0QIamAfo4uwrLlHyWd8QUCwRoSAKGzJUQNfw3PjiOk46C44JxXRlE E5tMMSwdY0Og90UAGJ7Ez30SD5W9lKizgf6geXQEyA1MXJPj32ToAMUmURNq+b4JKnud gttvrojwsT3zdCdeOGoC8PIIpzmCobsVE6QXJGLRSyWPIytuEJCg3loGfhtEgb0s70Mi O4I+tn9Mz09yG377YUwwVB99xsTQxpHapjgjf+wiEkam06YkBY/qukBvNjuogsZavykt k4CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0RPtkDZxBIg4j/flfTGF68aYP828g80Oux51XyfzmZc=; b=lLzAF3ahv/TbIMtvOGnvsvKgXVEqfUb/+9uABUX5Bz2bx2pVT4ihvm+HadLUhkApyq 27tHWXfDIdsWVh8jzACZ36duZ5BJJCZEykFMUIyT6IFf08XlSUDVIMpeIFZIBRQZDQQI H4Gq2yZ8Ph7wGvOZpIphODLkmA/l5LZidYTPWgRuaovtjMK+A1Hu9JngLj/YqnQIV3if SnifSo80zlCTVDVmKbxbTj7ZBg/HpwxoWDBcuSKY7uDKGokrarS58X+LUw0DAEnZ4SUt Cs2Gwxou6U2Q2NuUqiPh0Zwy2nbjc0JmU3hvpQIXx92ZTzWvVjETVXzU8YMwSgnmgSg6 bsgg== X-Gm-Message-State: AJIora+VQoxMpKvgGTVrvAi6KhmLMxxoAKXlGk0sN7zNvqcwuPQc2z+c HRHwxlCL7RS1gRT8+QKvxc9OJlD6SIM7Xw== X-Google-Smtp-Source: AGRyM1tAWObT9B/gbDWK9OMKLTlJdIoY9RbP6tWwswLX/vgE3Wn5lfs6yROixXN4Fof4564BaIWD8A== X-Received: by 2002:adf:e4c9:0:b0:21b:9336:16b9 with SMTP id v9-20020adfe4c9000000b0021b933616b9mr3989479wrm.696.1655911163863; Wed, 22 Jun 2022 08:19:23 -0700 (PDT) Received: from BL087.. ([2a01:e34:eea9:e630:4175:47f:ec:c265]) by smtp.gmail.com with ESMTPSA id bi11-20020a05600c3d8b00b0039c362311d2sm1745388wmb.9.2022.06.22.08.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 08:19:23 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 22 Jun 2022 17:19:16 +0200 Message-Id: <20220622151918.451635-4-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220622151918.451635-1-fsylvestre@baylibre.com> References: <20220622151918.451635-1-fsylvestre@baylibre.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/5] ipa: rkisp1: Add support of Lens Shading Correction control 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: , X-Patchwork-Original-From: Florian Sylvestre via libcamera-devel From: Florian Sylvestre Reply-To: Florian Sylvestre Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The Lens Shading Correction algorithm applies a correction on the pixels based on values defined in the YAML tuning file. Signed-off-by: Florian Sylvestre --- src/ipa/rkisp1/algorithms/lsc.cpp | 171 ++++++++++++++++++++++++++ src/ipa/rkisp1/algorithms/lsc.h | 44 +++++++ src/ipa/rkisp1/algorithms/meson.build | 1 + src/ipa/rkisp1/data/ov5640.yaml | 81 ++++++++++++ src/ipa/rkisp1/rkisp1.cpp | 1 + 5 files changed, 298 insertions(+) create mode 100644 src/ipa/rkisp1/algorithms/lsc.cpp create mode 100644 src/ipa/rkisp1/algorithms/lsc.h diff --git a/src/ipa/rkisp1/algorithms/lsc.cpp b/src/ipa/rkisp1/algorithms/lsc.cpp new file mode 100644 index 00000000..f68243a1 --- /dev/null +++ b/src/ipa/rkisp1/algorithms/lsc.cpp @@ -0,0 +1,171 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021-2022, Ideas On Board + * + * lsc.cpp - RkISP1 Lens Shading Correction control + */ + +#include "lsc.h" + +#include + +#include "libcamera/internal/yaml_parser.h" +#include "linux/rkisp1-config.h" + +/** + * \file lsc.h + */ + +namespace libcamera { + +namespace ipa::rkisp1::algorithms { + +/** + * \class LensShadingCorrection + * \brief RkISP1 Lens Shading Correction control + * + * Due to the optical characteristics of the lens, the light intensity received + * by the sensor is not uniform. + * + * The Lens Shading Correction algorithm applies a correction on the pixels for + * each component based on measurement done during the camera tuning process. + */ + +LOG_DEFINE_CATEGORY(RkISP1Lsc) + +LensShadingCorrection::LensShadingCorrection() + : tuningParameters_(false) +{ +} + +/** + * \copydoc libcamera::ipa::Algorithm::init + */ +int LensShadingCorrection::init([[maybe_unused]] IPAContext &context, + const YamlObject &tuningData) +{ + xSizeTbl_ = tuningData["x-size"].getList(); + if (xSizeTbl_.size() != RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'x-size'" + << "in tuning file (list size:" + << xSizeTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE << ")"; + return -EINVAL; + } + + ySizeTbl_ = tuningData["y-size"].getList(); + if (ySizeTbl_.size() != RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'y-size'" + << "in tuning file (list size:" + << ySizeTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE << ")"; + return -EINVAL; + } + + xGradTbl_ = tuningData["x-grad"].getList(); + if (xGradTbl_.size() != RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'x-grad'" + << "in tuning file (list size:" + << xGradTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE << ")"; + return -EINVAL; + } + + yGradTbl_ = tuningData["y-grad"].getList(); + if (yGradTbl_.size() != RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'y-grad'" + << "in tuning file (list size:" + << yGradTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE << ")"; + return -EINVAL; + } + + rDataTbl_ = tuningData["r"].getList(); + if (rDataTbl_.size() != RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'r'" + << "in tuning file (list size:" + << rDataTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX << ")"; + return -EINVAL; + } + + grDataTbl_ = tuningData["gr"].getList(); + if (grDataTbl_.size() != RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'gr'" + << "in tuning file (list size:" + << grDataTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX << ")"; + return -EINVAL; + } + + gbDataTbl_ = tuningData["gb"].getList(); + if (gbDataTbl_.size() != RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'gb'" + << "in tuning file (list size:" + << gbDataTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX << ")"; + return -EINVAL; + } + + bDataTbl_ = tuningData["b"].getList(); + if (bDataTbl_.size() != RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX) { + LOG(RkISP1Lsc, Error) + << "Issue while parsing 'b'" + << "in tuning file (list size:" + << bDataTbl_.size() << "/" + << RKISP1_CIF_ISP_LSC_SAMPLES_MAX * RKISP1_CIF_ISP_LSC_SAMPLES_MAX << ")"; + return -EINVAL; + } + + tuningParameters_ = true; + + return 0; +} + +/** + * \copydoc libcamera::ipa::Algorithm::prepare + */ +void LensShadingCorrection::prepare(IPAContext &context, + rkisp1_params_cfg *params) +{ + if (context.frameContext.frameCount > 0) + return; + + if (!tuningParameters_) + return; + + std::copy(xSizeTbl_.begin(), xSizeTbl_.end(), + params->others.lsc_config.x_size_tbl); + std::copy(ySizeTbl_.begin(), ySizeTbl_.end(), + params->others.lsc_config.y_size_tbl); + std::copy(xGradTbl_.begin(), xGradTbl_.end(), + params->others.lsc_config.x_grad_tbl); + std::copy(yGradTbl_.begin(), yGradTbl_.end(), + params->others.lsc_config.y_grad_tbl); + + std::copy(rDataTbl_.begin(), rDataTbl_.end(), + ¶ms->others.lsc_config.r_data_tbl[0][0]); + std::copy(grDataTbl_.begin(), grDataTbl_.end(), + ¶ms->others.lsc_config.gr_data_tbl[0][0]); + std::copy(gbDataTbl_.begin(), gbDataTbl_.end(), + ¶ms->others.lsc_config.gb_data_tbl[0][0]); + std::copy(bDataTbl_.begin(), bDataTbl_.end(), + ¶ms->others.lsc_config.b_data_tbl[0][0]); + + params->module_en_update |= RKISP1_CIF_ISP_MODULE_LSC; + params->module_ens |= RKISP1_CIF_ISP_MODULE_LSC; + params->module_cfg_update |= RKISP1_CIF_ISP_MODULE_LSC; +} + +REGISTER_IPA_ALGORITHM(LensShadingCorrection) + +} /* namespace ipa::rkisp1::algorithms */ + +} /* namespace libcamera */ diff --git a/src/ipa/rkisp1/algorithms/lsc.h b/src/ipa/rkisp1/algorithms/lsc.h new file mode 100644 index 00000000..7f620ffa --- /dev/null +++ b/src/ipa/rkisp1/algorithms/lsc.h @@ -0,0 +1,44 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021-2022, Ideas On Board + * + * gsl.h - RkISP1 Lens Shading Correction control + */ + +#pragma once + +#include + +#include "algorithm.h" + +namespace libcamera { + +struct IPACameraSensorInfo; + +namespace ipa::rkisp1::algorithms { + +class LensShadingCorrection : public Algorithm +{ +public: + LensShadingCorrection(); + ~LensShadingCorrection() = default; + + int init(IPAContext &context, const YamlObject &tuningData) override; + void prepare(IPAContext &context, rkisp1_params_cfg *params) override; + +private: + bool tuningParameters_; + + std::vector rDataTbl_; + std::vector grDataTbl_; + std::vector gbDataTbl_; + std::vector bDataTbl_; + + std::vector xGradTbl_; + std::vector yGradTbl_; + std::vector xSizeTbl_; + std::vector ySizeTbl_; +}; + +} /* namespace ipa::rkisp1::algorithms */ +} /* namespace libcamera */ diff --git a/src/ipa/rkisp1/algorithms/meson.build b/src/ipa/rkisp1/algorithms/meson.build index 0597c353..64e11dce 100644 --- a/src/ipa/rkisp1/algorithms/meson.build +++ b/src/ipa/rkisp1/algorithms/meson.build @@ -5,4 +5,5 @@ rkisp1_ipa_algorithms = files([ 'awb.cpp', 'blc.cpp', 'gsl.cpp', + 'lsc.cpp', ]) diff --git a/src/ipa/rkisp1/data/ov5640.yaml b/src/ipa/rkisp1/data/ov5640.yaml index 6cb84ed9..154ed3b5 100644 --- a/src/ipa/rkisp1/data/ov5640.yaml +++ b/src/ipa/rkisp1/data/ov5640.yaml @@ -16,4 +16,85 @@ algorithms: red: [ 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096 ] green: [ 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096 ] blue: [ 0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096 ] + - LensShadingCorrection: + x-size: [ 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 ] + y-size: [ 512, 1024, 1536, 2048, 2560, 3072, 3584, 4096 ] + x-grad: [ 0, 0, 0, 0, 0, 0, 0, 0 ] + y-grad: [ 0, 0, 0, 0, 0, 0, 0, 0 ] + r: [ + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 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" #include "algorithms/blc.h" #include "algorithms/gsl.h" +#include "algorithms/lsc.h" #include "libipa/camera_sensor_helper.h" #include "ipa_context.h"