From patchwork Fri Jul 22 15:16:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Sylvestre X-Patchwork-Id: 16733 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 F35E1BD1F1 for ; Fri, 22 Jul 2022 15:16:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BD9746330F; Fri, 22 Jul 2022 17:16:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1658503004; bh=5NDuQ3XzhiXwiTEE7fxXi39AW2ggkSlCpRaGseLWkzo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JF0sBreWKFOpUxbGW0asdNBVgg6Zx0MHk4a0lJVffHQqMSUXvZZHVJcimLktPt+pQ 6SO+75J3tzpa7AQ/coYtMGwzbOSUtjmwyNOIGRpiQSXcWWcwI0fmoku3apPAshQ0R1 WUYHZbDnhBmqQnq2TSDsmXdPWDz4LqDD+2n8B3GN5zrNubzGD99RkoMIL6Z9sW9De4 aXLe7SSq1Y/g2hx9nfKBEch1g3M39tuiB/WKhbS8XgrMMjOv82K3JvdeQT12dXXNic iKEIyiWDth8gzTv/VhYATmfQYUCxwk1EeVoIPQiKqmhJ/otRgIwVjF2IYvOHnEJxB+ 3YJYuxLzScAiA== Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E5304601B8 for ; Fri, 22 Jul 2022 17:16:43 +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="0iHdpftl"; dkim-atps=neutral Received: by mail-wm1-x32b.google.com with SMTP id c22so2983021wmr.2 for ; Fri, 22 Jul 2022 08:16:43 -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:mime-version :content-transfer-encoding; bh=IT4dZe6IEP/P87ijGe1VjpbImmmJ9h+px2tlSKqm64Q=; b=0iHdpftl0KqjB7axY8kPJw00AFZnQe32iDRh+c+dHX0oCztqY3J+E5aFZ5lMF1Q7LE sl5d4w62G8Snr4+ecPZ7UQnw/5Awdv9SM4idNtAGp4VqJ2HbrTTQiKEKkp8445bzkUew cIatFycGBB9LCIEPoQL5/URJOHF0dwUUlqjq5VOKJnJ1nXAQ4nxqDK7Ir7q1OmiJoYvn pXpSWA5u6OzRkkkjcbrsExRmSpzaIZhcyt0OMF4zWHTRkfpa5mzgMv4EIhu88v3jEvuf ZiZ1UW3978yYnRqmhOxUlcZcNDpfT5fZaAPhIBUd603mY2lU0dXjFpgTle2UCVVI0wX6 iLSQ== 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:mime-version :content-transfer-encoding; bh=IT4dZe6IEP/P87ijGe1VjpbImmmJ9h+px2tlSKqm64Q=; b=RiHr8Bbr7zIYZI2yL4iVGHgBJjfbsOL2RQ34A/hlxYRS0q9vU98KpTfeiEKj6BMvBa rbnAj41BiDDVtBB3fzFhq7jDjlLw9n/+rolgZTYCLSCzBDUHLFZmqTVPG2fxlX2dx0D/ hxus3ZaweYO1YLSS1fG41UKkA1kiluTy62DhGQcXDMjfgOhT1YLkJEA70TSXg4MaH+HN 16rVANH0IJDwL1PhaF2JLiRRlVwZmwdzF2cwhZ5baciUL+0IZAh/yDYwecQu+PcJEYNP ClSQLrkYpO4QAeG/E18iOlNdIwxI3VHqXgW5diVjTJuMqnIHfaUZmaFUFYhFQ3pcH4bm PXGw== X-Gm-Message-State: AJIora84gcP51gFaMAAqznPr2fg1D5dFX0xKXYz7GvsI+0pVBq5gmGhC lJbFU4apVprDcxlTVIfWq5Z3uGdNTzMuJ32/ X-Google-Smtp-Source: AGRyM1sFhAlMJva7/jCVvdpDM8UULFOQG0NDQ2SiX53MgHvIu5eogVoABoEGDYuTRIEQlnQSkxO5NQ== X-Received: by 2002:a05:600c:3399:b0:3a3:f1e:ebd8 with SMTP id o25-20020a05600c339900b003a30f1eebd8mr13025922wmp.6.1658503003184; Fri, 22 Jul 2022 08:16:43 -0700 (PDT) Received: from BL087.. ([2a01:e34:eea9:e630:e9da:4076:6aa:6cd2]) by smtp.gmail.com with ESMTPSA id b1-20020a5d4d81000000b0021e4fd8e10bsm4871557wru.11.2022.07.22.08.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 08:16:42 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 22 Jul 2022 17:16:30 +0200 Message-Id: <20220722151635.239221-1-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/5] Add GSL, LSC and DPCC tuning support for rkisp1 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" Hello, This patch series adds support for several rkisp1 algorithms control: - Gamma Sensor Linearization (patch 2/5) - Lens Shading Correction (patch 3/5) - Defect Pixel Cluster Correction (patch 5/5) To manage efficiently lists in YAML tuning file, I added a function in the YAML parser to retrieve lists in a single call (patch 1/5). I have also updated rkisp1 headers from branch: pinchartl/v5.19/dev/isp/next to get latest DPCC defines (patch 4/5) Florian Sylvestre (5): libcamera: yaml_parser: Add getList() function ipa: rkisp1: Add support of Gamma Sensor Linearization control ipa: rkisp1: Add support of Lens Shading Correction control include: linux: Update rkisp1 kernel header for DPCC configuration ipa: rkisp1: Add support of Defect Pixel Cluster Correction control include/libcamera/internal/yaml_parser.h | 16 ++ include/linux/rkisp1-config.h | 77 +++++-- src/ipa/rkisp1/algorithms/dpcc.cpp | 262 +++++++++++++++++++++++ src/ipa/rkisp1/algorithms/dpcc.h | 31 +++ src/ipa/rkisp1/algorithms/gsl.cpp | 147 +++++++++++++ src/ipa/rkisp1/algorithms/gsl.h | 34 +++ src/ipa/rkisp1/algorithms/lsc.cpp | 170 +++++++++++++++ src/ipa/rkisp1/algorithms/lsc.h | 38 ++++ src/ipa/rkisp1/algorithms/meson.build | 3 + src/ipa/rkisp1/data/ov5640.yaml | 145 +++++++++++++ src/ipa/rkisp1/ipa_context.h | 1 + src/ipa/rkisp1/rkisp1.cpp | 4 + src/libcamera/yaml_parser.cpp | 66 ++++++ test/yaml-parser.cpp | 6 + 14 files changed, 984 insertions(+), 16 deletions(-) create mode 100644 src/ipa/rkisp1/algorithms/dpcc.cpp create mode 100644 src/ipa/rkisp1/algorithms/dpcc.h create mode 100644 src/ipa/rkisp1/algorithms/gsl.cpp create mode 100644 src/ipa/rkisp1/algorithms/gsl.h create mode 100644 src/ipa/rkisp1/algorithms/lsc.cpp create mode 100644 src/ipa/rkisp1/algorithms/lsc.h