From patchwork Mon May 23 09:24: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: 16000 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 4F6CEBD160 for ; Mon, 23 May 2022 09:24:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5F39565666; Mon, 23 May 2022 11:24:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653297886; bh=EXdlUla366AvSulY2YP+pkrV/xFXA2d++vbX2X9uoCg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=e9rIKL29vCldWRzbulYhaarCVOMiD/jQTr16PF15VDlxKSUPN6+iIUC6NNhVdLvJU QSSTeciVi1MN2KLIfrLXHBzz4CmQ1Hh3y5ewtAavE1a0hybgjBg+KqmbXBhu9Aee8x yvJvUq9W90FOv14Mp4JuniSCRtiIdmB59V+AqBHGFcQNChKnJVLgWg2Z1TdjPDDHfK 2sUHaoODG+Yo8iejwiir+e6m0qE4tzLIqBsf2zjrry9X+wYMP9awWyieBZG6Z0rn22 Lbb49hFNAoCTz/wS9xlGotKoYUBn8SernO2+WVOhHrV8YruAeTVjJaRW9+gSzSliJk uYScbKPd8xygA== Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4C4676565E for ; Mon, 23 May 2022 11:24:44 +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="LW01Z9vu"; dkim-atps=neutral Received: by mail-wr1-x435.google.com with SMTP id h14so20424211wrc.6 for ; Mon, 23 May 2022 02:24:44 -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=M1AC+Frz0wFoBZX3tESjrkjgvbxX7phpUncHN/NribI=; b=LW01Z9vuhlAaStE6Pzn8tcNt+3cWaO3Ii+bdOtU43/X/OVhWV7j5hlx1pi2f7ggOmB bw0bf2+YeB0vtTc0qfn6MXPlrmcv0zJsCV/nKSaeJfV0IWcOJbuQ1rUnwsLe3TwAtJOC zPiMInLQ6R6/C/EPJAYmZ2z/A1x7BfOuYM7RwL516F53rAcqwwRnu3fRdn51+p+KKM9Z RqrHj3j6zNzjJ/yRif4MeDX5zh/BUpqG+nW3c9ly7usRUzipa+kGNyGlx3jLvv7i7g14 amPOy+peE59y/88XU6mKWBFVmnLVIO3oxCh8EcPZ1l5MFDpFMdh+I/m8dT4ibyy9nbq5 1Ofg== 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=M1AC+Frz0wFoBZX3tESjrkjgvbxX7phpUncHN/NribI=; b=THw/0FDNBNXloXjx4oglmMQEJOXGK0cyuQoBF4wF9o+/k2e1Q9S21+/ln0pEulHtLB zv/jqQR99F9zkuDOpeBlmZlDcHF7mjuBLNj5Awsfj/AYbiDAwZAY8iFQpbk3zWBwNUcp YmI6NVpAnAThZXGc0pFZeJX/V+5vbJXX1nubWbSqO2oOVEO3uGY2YpYKqxizeCu2aIAH bmyYhw6xgKlHLyk4MbXtPoPf2NtBJ9J7qgLaHKoyLKkd3iikk3sYyfPXOXnLNv49TlDu caGOtyZgrNSBd4r+qgAgdv978RLZgGwtAHqsz/f7OuREoXxnJynksYN/Q0LOSiv++5N8 Ak8w== X-Gm-Message-State: AOAM5339T/XzqJ8CB53yv2AYzmjT+7EhguVi1QZOCA3ByYYyejRrKQq/ df0Rqi0mU1I8oyO5ObAxVJibY/+F7SucxQ== X-Google-Smtp-Source: ABdhPJzeKHc9g0fPi+gFivtpFwLMEp4xvwktcpR6p3h8UEdItC4J8IeZVKyqElj0GHtMDVyV7t9Hqg== X-Received: by 2002:a5d:588a:0:b0:20e:5d56:4f18 with SMTP id n10-20020a5d588a000000b0020e5d564f18mr18453166wrf.140.1653297883683; Mon, 23 May 2022 02:24:43 -0700 (PDT) Received: from BL087.. ([2a01:e34:eea9:e630:1bc6:bcdb:60b7:f1d3]) by smtp.gmail.com with ESMTPSA id w22-20020a1cf616000000b003942a244eebsm8034250wmc.48.2022.05.23.02.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:24:43 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Mon, 23 May 2022 11:24:30 +0200 Message-Id: <20220523092435.475510-1-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [libcamera-devel 0/5] Add configuration 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 tuning 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 sensor tuning file ipa: libipa: Add init() function to the Algorithm class ipa: rkisp1: Add Yaml configuration file support ipa: rkisp1: Add ov5640 configuration file ipa: rkisp1: add support of Black Level Correction default values src/ipa/libipa/algorithm.cpp | 15 ++++++++ src/ipa/libipa/algorithm.h | 10 +++++- src/ipa/rkisp1/algorithms/algorithm.h | 4 ++- src/ipa/rkisp1/algorithms/blc.cpp | 46 +++++++++++++++++++++--- src/ipa/rkisp1/algorithms/blc.h | 9 +++++ 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 | 36 +++++++++++++++++++ src/libcamera/pipeline/rkisp1/rkisp1.cpp | 13 ++++++- 10 files changed, 143 insertions(+), 7 deletions(-) create mode 100644 src/ipa/rkisp1/data/meson.build create mode 100644 src/ipa/rkisp1/data/ov5640.yaml