From patchwork Thu Jun 16 08:07:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Sylvestre X-Patchwork-Id: 16226 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 37E5DBD808 for ; Thu, 16 Jun 2022 08:07:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8AC5665636; Thu, 16 Jun 2022 10:07:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655366872; bh=bqEXm4oYXWXGodl5iv4vEG23jn5+zhrrq4/Jc5+idfw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dbS9kHfEOPqDK29QW7Ji9YPyl28NKOWP+dkEVDrM6SqVKCJSNhtLUJqcp1bbXQpvu yZUyDf1UUt9o+1twIRn0CJIch0e7HtHd6A43M+cJFH5OnEbELyrpsrdGLH9Kfum26B oCvPTM4zQfSy7LpaYuQ6b8ajsoUBgdmYMalvBYfLx+lAGJ893Hoi3p40q1glamTcWc gvXHYvZIW9PsT9nYisq99rmyX7LPtkNwY1buzUVJUKQuS//IzX0SaKGixxqfNoSug2 yYksGegTSIHFkEPrzPE8Wx7BpmMpmDc0xOB/c1T4VMjy2kUYM3dbU4hSgQ0bgNXNr/ kOvbMuGu9f5FQ== Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 532CC601F1 for ; Thu, 16 Jun 2022 10:07:51 +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="w9WZZf4V"; dkim-atps=neutral Received: by mail-wr1-x436.google.com with SMTP id u8so768564wrm.13 for ; Thu, 16 Jun 2022 01:07:51 -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=hs1xBQtyvXmF89BC3lQN7ugqF0Xuu8A/dPMjOVEQzXA=; b=w9WZZf4VxcYU9kLuzfiYLj3VpG4Z1n+qb6moNeRKKCMwFMprcliTmd0RaW6GGPA4wL o1onyc95Ix5u3zKr397NJMqNR0RV8mv/gzBh87VXKc0t02Dj7STS+SCIEwd4dGiXLusx Tnd/rA6yt4xnEf01cYwVJPJmpo+eo+Vw1g9iAcuHglERZL9NX5LF1jWll6cWLt8Synpe +XBW8/ICaw70f4fNknO7gr7LjT60eAEbcYM3YzkNufsriOwuOF38hRV5ocuacNT9GdS8 CNdoBlOpXrvSkN5VJCeouCijKYqlNnWiDsHcAAbJHw9V6aoe8xP6nQf43UFexdKR+484 WIvA== 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=hs1xBQtyvXmF89BC3lQN7ugqF0Xuu8A/dPMjOVEQzXA=; b=QZcMiy2XfneuGkhCikQGqfgy3BzJsXXm65LFCyMx8b35VZaBwsBjoswl3j7GG/kEo/ Vz82cAHBhZp4Klp2gOMLdJtZjA2/7MarFamm/hQwRKxjS7MDJLAl1tz7+WfHyNtNjpye mQEhOb1BhtBnS47XfWzE4LwIsiC7eat+vu+1RoMf5nwLWFJ8hSjGS72E1xuPSwdnhJle OpRrKX2kitHtzEA+38bEZf8YFQGcKE7svb5xSKOKIjB6yqtK8ogFeAB9l4rHQ66nOoPn 1QeJN4MIHmkeo3g0PkHn29qiXL82N07t43JbOrRUVIhjh25z1Cjnv/JeEWjakjpJcYpB Z8yg== X-Gm-Message-State: AJIora/4sETevj9R+dgZac9zRBcwaWLTXg3RswcBKBbX0YAlZaOGYQML Kml0QGFdCYKnmVmUfbeq+KMCKqviF6MXRg== X-Google-Smtp-Source: AGRyM1s73XOBP/mHQ32NyW4BLt1IXH7jxSkAakEQCZ5/lsVnXBVdambFbJWYgSWWlGvCRw3XKQ44SQ== X-Received: by 2002:adf:d1ed:0:b0:215:98d7:2a93 with SMTP id g13-20020adfd1ed000000b0021598d72a93mr3455343wrd.637.1655366870575; Thu, 16 Jun 2022 01:07:50 -0700 (PDT) Received: from localhost.localdomain (lfbn-nic-1-76-188.w2-15.abo.wanadoo.fr. [2.15.166.188]) by smtp.gmail.com with ESMTPSA id r15-20020adff70f000000b002185d79dc7fsm1098868wrp.75.2022.06.16.01.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 01:07:49 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 16 Jun 2022 10:07:39 +0200 Message-Id: <20220616080744.548995-1-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/5] Add tuning file support for rkisp1 blc algo 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" Add a yaml configuration file to allow configuring Black Level Correction algorithm values for rkisp1. Because there is actually no configuration file for rkisp1, this patch serie also add the common configuration file support. Florian Sylvestre (5): pipeline: rkisp1: Support IPA tuning file ipa: libipa: Add init() function to the Algorithm class ipa: rkisp1: Add Yaml tuning file support ipa: rkisp1: Add ov5640 tuning file ipa: rkisp1: add support of Black Level Correction default values src/ipa/ipu3/algorithms/algorithm.h | 4 +- src/ipa/libipa/algorithm.cpp | 16 ++++++ src/ipa/libipa/algorithm.h | 10 +++- src/ipa/rkisp1/algorithms/algorithm.h | 4 +- src/ipa/rkisp1/algorithms/blc.cpp | 71 +++++++++++++++++++----- src/ipa/rkisp1/algorithms/blc.h | 8 +++ src/ipa/rkisp1/data/meson.build | 8 +++ src/ipa/rkisp1/data/ov5640.yaml | 8 +++ src/ipa/rkisp1/meson.build | 1 + src/ipa/rkisp1/rkisp1.cpp | 35 ++++++++++++ src/libcamera/pipeline/rkisp1/rkisp1.cpp | 13 ++++- 11 files changed, 161 insertions(+), 17 deletions(-) create mode 100644 src/ipa/rkisp1/data/meson.build create mode 100644 src/ipa/rkisp1/data/ov5640.yaml