| Message ID | 20261116174919.1056403-1-barnabas.pocze@ideasonboard.com |
|---|---|
| Headers | show
Return-Path: <libcamera-devel-bounces@lists.libcamera.org> 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 702B1C3304 for <parsemail@patchwork.libcamera.org>; Mon, 16 Nov 2026 17:49:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EBDB26A84F; Mon, 16 Nov 2026 18:49:24 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="joOEB4Fs"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8084169089 for <libcamera-devel@lists.libcamera.org>; Mon, 16 Nov 2026 18:49:23 +0100 (CET) Received: from pb-laptop.local (185.221.140.49.nat.pool.zt.hu [185.221.140.49]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 03001175 for <libcamera-devel@lists.libcamera.org>; Mon, 16 Nov 2026 18:46:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1794851216; bh=3sJHQgcpxgIha8EaN4aOiBPZ2Re3AGCtvx0F6zOJIL8=; h=From:To:Subject:Date:From; b=joOEB4FsE/gSEo5QESDtwX6f8Wgj+hfi9rZP5Ps3YjoK00hFhLu6QuLttew0B2xfE rJSsk4PG4EKgDkFOV86AAJMHl1KJKuIXz+shxrW20+yJCLkSfvFtzsJTmm+g30wwG2 RVb7gTuYKdx98zkY0a1MCUxA6oGGQ7CfjJsvku3w= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Subject: [PATCH v5 00/22] libcamera: rcar-gen4 + rpp-x1 Date: Mon, 16 Nov 2026 18:48:56 +0100 Message-ID: <20261116174919.1056403-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
| Series |
|
| Related |
show
|
This is the first prototype implementation of the rppx1 ipa module based on the new kernel uapi. It is the spiritual continuation of * https://patchwork.libcamera.org/cover/26915/ * https://patchwork.libcamera.org/cover/24304/ But it includes both the pipeline handler and ipa components, rebased on the current master branch. The corresponding kernel branch is here: https://git.ideasonboard.com/renesas-v4h-isp/linux/src/branch/pobrn/rppx1 This has been an R-Car V4H Sparrow-Hawk device with the imx708 (and imx219) sensor(s). Some points: * the isp always runs, even when only a raw stream is getting captured, this also means metadata is generated and controls exist, even if they have no visible effect; this has been like this in previous versions, so I did not change it changes in v5: * [10/23] is a new change * [11/23] import from linux 7.4-rc3 * [19/23] goc -> gamma * new titles for the ipa algorithm commits * mainly rebasing and addressing review comments changes in v4: * [9/21] is a new change * no significant changes other than that * mainly rebasing and addressing review comments v4: https://patchwork.libcamera.org/cover/28887/ v3: https://patchwork.libcamera.org/cover/28338/ Barnabás Pőcze (11): ipa: libipa: fixedpoint: Shift unsigned type for scaling ipa: libipa: quantized: Make floating point type customizable ipa: libipa: quantized: Use `double` when necessary ipa: libipa: awb: Log rgb means immediately ipa: libipa: awb_bayes: Fix initial max value ipa: libipa: gamma: Static assert lookup node count ipa: libipa: gamma: Accept const segment lengths ipa: libipa: gamma: Use `std::optional` for segment lengths ipa: libipa: ccm: Use 32-bit offsets ipa: libipa: lux: Convert to "algorithm" ipa: rppx1: Add uncalibrated tuning file Jacopo Mondi (9): include: linux: Update to Linux 7.4-rc3 ipa: rppx1: Add black level correction ipa: rppx1: Add auto gain/exposure control ipa: rppx1: Add auto white balance ipa: rppx1: Add lux estimation ipa: rppx1: Add color correction ipa: rppx1: Add gamma correction ipa: rppx1: Add input linearization ipa: rppx1: Add lens shading correction Jai Luthra (1): ipa: rppx1: Add IPA module Niklas Söderlund (1): libcamera: pipeline: Add R-Car Gen4 ISP pipeline Documentation/Doxyfile-common.in | 1 + include/libcamera/ipa/meson.build | 1 + include/libcamera/ipa/rppx1.mojom | 40 + include/linux/README | 2 +- include/linux/drm.h | 7 + include/linux/drm_fourcc.h | 268 +++++- include/linux/drm_mode.h | 13 + include/linux/media/arm/mali-c55-config.h | 2 + include/linux/media/dreamchip/rppx1-config.h | 730 +++++++++++++++ include/linux/rkisp1-config.h | 113 ++- include/linux/v4l2-controls.h | 23 + include/linux/videodev2.h | 4 + meson.build | 1 + meson_options.txt | 3 +- src/ipa/ipu3/algorithms/ccm.cpp | 2 +- src/ipa/libipa/awb.cpp | 12 +- src/ipa/libipa/awb_bayes.cpp | 2 +- src/ipa/libipa/ccm.cpp | 2 +- src/ipa/libipa/ccm.h | 4 +- src/ipa/libipa/fixedpoint.cpp | 7 +- src/ipa/libipa/fixedpoint.h | 28 +- src/ipa/libipa/gamma.cpp | 85 +- src/ipa/libipa/gamma.h | 17 +- src/ipa/libipa/lux.cpp | 136 ++- src/ipa/libipa/lux.h | 36 +- src/ipa/libipa/quantized.cpp | 10 +- src/ipa/libipa/quantized.h | 14 +- src/ipa/meson.build | 1 + src/ipa/rkisp1/algorithms/ccm.cpp | 2 +- src/ipa/rkisp1/algorithms/goc.cpp | 2 +- src/ipa/rkisp1/algorithms/lux.cpp | 34 +- src/ipa/rkisp1/algorithms/lux.h | 4 +- src/ipa/rkisp1/ipa_context.h | 9 +- src/ipa/rppx1/algorithms/agc.cpp | 330 +++++++ src/ipa/rppx1/algorithms/agc.h | 47 + src/ipa/rppx1/algorithms/algorithm.h | 22 + src/ipa/rppx1/algorithms/awb.cpp | 253 +++++ src/ipa/rppx1/algorithms/awb.h | 48 + src/ipa/rppx1/algorithms/blc.cpp | 92 ++ src/ipa/rppx1/algorithms/blc.h | 39 + src/ipa/rppx1/algorithms/ccm.cpp | 91 ++ src/ipa/rppx1/algorithms/ccm.h | 43 + src/ipa/rppx1/algorithms/gamma.cpp | 71 ++ src/ipa/rppx1/algorithms/gamma.h | 46 + src/ipa/rppx1/algorithms/gsl.cpp | 142 +++ src/ipa/rppx1/algorithms/gsl.h | 35 + src/ipa/rppx1/algorithms/lsc.cpp | 262 ++++++ src/ipa/rppx1/algorithms/lsc.h | 58 ++ src/ipa/rppx1/algorithms/lux.cpp | 63 ++ src/ipa/rppx1/algorithms/lux.h | 36 + src/ipa/rppx1/algorithms/meson.build | 12 + src/ipa/rppx1/data/meson.build | 9 + src/ipa/rppx1/data/uncalibrated.yaml | 11 + src/ipa/rppx1/ipa_context.cpp | 37 + src/ipa/rppx1/ipa_context.h | 103 ++ src/ipa/rppx1/meson.build | 31 + src/ipa/rppx1/module.h | 29 + src/ipa/rppx1/params.h | 110 +++ src/ipa/rppx1/rppx1.cpp | 293 ++++++ src/ipa/rppx1/stats.h | 62 ++ src/libcamera/pipeline/rcar-gen4/frames.cpp | 264 ++++++ src/libcamera/pipeline/rcar-gen4/frames.h | 84 ++ src/libcamera/pipeline/rcar-gen4/isp.cpp | 194 ++++ src/libcamera/pipeline/rcar-gen4/isp.h | 39 + src/libcamera/pipeline/rcar-gen4/meson.build | 8 + .../pipeline/rcar-gen4/rcar-gen4.cpp | 880 ++++++++++++++++++ src/libcamera/pipeline/rcar-gen4/vin.cpp | 177 ++++ src/libcamera/pipeline/rcar-gen4/vin.h | 54 ++ test/ipa/libipa/quantized.cpp | 8 +- utils/update-kernel-headers.sh | 1 + 70 files changed, 5524 insertions(+), 175 deletions(-) create mode 100644 include/libcamera/ipa/rppx1.mojom create mode 100644 include/linux/media/dreamchip/rppx1-config.h create mode 100644 src/ipa/rppx1/algorithms/agc.cpp create mode 100644 src/ipa/rppx1/algorithms/agc.h create mode 100644 src/ipa/rppx1/algorithms/algorithm.h create mode 100644 src/ipa/rppx1/algorithms/awb.cpp create mode 100644 src/ipa/rppx1/algorithms/awb.h create mode 100644 src/ipa/rppx1/algorithms/blc.cpp create mode 100644 src/ipa/rppx1/algorithms/blc.h create mode 100644 src/ipa/rppx1/algorithms/ccm.cpp create mode 100644 src/ipa/rppx1/algorithms/ccm.h create mode 100644 src/ipa/rppx1/algorithms/gamma.cpp create mode 100644 src/ipa/rppx1/algorithms/gamma.h create mode 100644 src/ipa/rppx1/algorithms/gsl.cpp create mode 100644 src/ipa/rppx1/algorithms/gsl.h create mode 100644 src/ipa/rppx1/algorithms/lsc.cpp create mode 100644 src/ipa/rppx1/algorithms/lsc.h create mode 100644 src/ipa/rppx1/algorithms/lux.cpp create mode 100644 src/ipa/rppx1/algorithms/lux.h create mode 100644 src/ipa/rppx1/algorithms/meson.build create mode 100644 src/ipa/rppx1/data/meson.build create mode 100644 src/ipa/rppx1/data/uncalibrated.yaml create mode 100644 src/ipa/rppx1/ipa_context.cpp create mode 100644 src/ipa/rppx1/ipa_context.h create mode 100644 src/ipa/rppx1/meson.build create mode 100644 src/ipa/rppx1/module.h create mode 100644 src/ipa/rppx1/params.h create mode 100644 src/ipa/rppx1/rppx1.cpp create mode 100644 src/ipa/rppx1/stats.h create mode 100644 src/libcamera/pipeline/rcar-gen4/frames.cpp create mode 100644 src/libcamera/pipeline/rcar-gen4/frames.h create mode 100644 src/libcamera/pipeline/rcar-gen4/isp.cpp create mode 100644 src/libcamera/pipeline/rcar-gen4/isp.h create mode 100644 src/libcamera/pipeline/rcar-gen4/meson.build create mode 100644 src/libcamera/pipeline/rcar-gen4/rcar-gen4.cpp create mode 100644 src/libcamera/pipeline/rcar-gen4/vin.cpp create mode 100644 src/libcamera/pipeline/rcar-gen4/vin.h -- 2.56.1