From patchwork Fri Oct 20 08:39:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 19161 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 8504EC3272 for ; Fri, 20 Oct 2023 08:40:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B090762982; Fri, 20 Oct 2023 10:40:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1697791229; bh=MXP9gk4wVRi5CAs/rxfCenMjoLa5ahUkPvIt04Qwge8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tbdV3Cm55GejYIDyscHvhLgEziNVlhBmcWIN4UT/W14+uIZ7W8kF8y+mceUp7c+Xl /OmeA0Y7aCefrdqmLH2YZkjGzItRaKfjkXzf4R2QfTeTSkEAG4XNGZx4K6vWJUMqoI Usie+/z52e/JVHAtsZS8oqHjhbn3WEVqvUcXQu58mQcDFfReQ4lUMwZI2vVLcrZKdD WGhUqgq651E7dmKdh9nq0vpnSLAFcI2XVh1TJRiOaLTYx4aEHPhlXdSPb2kEJM5x8R 5kVdAKUFDDc0mzdR4iTGfdbq/U5lSK4YgWtHw/Dhu9GKOcpJyQg0RPQy6v6DDu6RBj FNyObH5wAyGzw== Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C78F761DCF for ; Fri, 20 Oct 2023 10:40:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="h6jkqCgK"; dkim-atps=neutral Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-408002b5b9fso4514105e9.3 for ; Fri, 20 Oct 2023 01:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1697791227; x=1698396027; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Mugh06UPeeezw227WdOi0GI4MbFbvWapbVqc7EvdDag=; b=h6jkqCgK3MJqpz1wpklsEKPp3VUYZudQasOvULjfqQC612oMLtErJQSTOvGZS7j7Kn oYtFqHOg+p613ZZQ6KiwcRkTtikz073wKVAyZzi1fBg0B9o/7Hii5U4zKLGTw95uWxgV 7j9/ruiPPQ/wa3aCrvdUK+zYiZiteOHZBjMjGJU0uvSVt++ETWUVWDnUOTKQCJFVlS/1 DMzEp5pcoHOeaSNRZ7gFlKiPc8vTdzpPjZdPRbnKSCQhtTT9vkT1IgG0OAVBdTI/Hd7m HzaEmbpiexBbdSptNkGbcJc55K5Oaq6aiM5fz5Eh73iLkiRLx4YhyYKCW8iOQXcpS+Wf +/IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697791227; x=1698396027; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mugh06UPeeezw227WdOi0GI4MbFbvWapbVqc7EvdDag=; b=VX7HrVj/YhS4KFKsfLplGO53ql28SwRTT5aVkva4IR8TOZC2dfeabkAkW3VGxGOXee D+4aVLl3ePkU0W6t+a6/gaa8XcpfvrIKQIVEV0EdWtNpwNHkeEAMi2sSxSdpo0+hKphg 7VJqrOeu0e0SGQIMz9EZ90vK1rFPSQnQ5BYtotqTYDHl3YKYZjZlPoBzqvz4ZSXgd1XG vOJeGj70LVnHNQtubLBdyw0SLA4/SSXujHhGdExI6zKAcikTXB9cZWxKxrLv8GAn69sS pRVQqAkgEHo+eK5RU2SrDBM+wQZ5aRTneIunA+O8Jmzuyh4+IRPVpJK5aK75DZ0M+VR6 us9g== X-Gm-Message-State: AOJu0YzlhsTdldG7bZGb4Ot7m5LfpTHCr2MfzxL05D/AzYRfH0QN9Hx0 uVQAxBOt9M432/PZ1J7+aK7o5Ba9AcdyeMOulloerQ== X-Google-Smtp-Source: AGHT+IFwUW+A9VGzHgMo6X3asQerbtSnzXPMQtH8KIsv+w4eRsVRte5BsNj+AHqVhn5/U0Qe1EIj9A== X-Received: by 2002:a5d:5691:0:b0:314:dc0:2fca with SMTP id f17-20020a5d5691000000b003140dc02fcamr795949wrv.29.1697791226960; Fri, 20 Oct 2023 01:40:26 -0700 (PDT) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id r3-20020adff103000000b0032d9337e7d1sm1213356wro.11.2023.10.20.01.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:40:26 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 20 Oct 2023 09:39:56 +0100 Message-Id: <20231020084002.30665-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 0/6] Raspberry Pi: Preliminary PiSP support (round 2) 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: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi all, Here is another small set of patches adding preliminary Pi 5 support to libcamera. This change is predominately related to HDR functionality, and only includes changes to the Raspberry Pi IPA algorithms. As before, the actual pipeline handler and IPA for Pi 5 is not yet published to the mailing list, but can be found at https://github.com/raspberrypi/libcamera. Thanks, Naush David Plowman (5): ipa: rpi: hdr: Add the ability to alter the LSC table ipa: rpi: alsc: Do not re-read the alsc.status metadata ipa: rpi: agc: Allow AGC channels to avoid using "fast desaturation" ipa: rpi: agc: Fetch AWB status in the prepare method ipa: rpi: agc: Make AGC controls affect all channels Naushir Patuck (1): ipa: rpi: vc4: Move denoise control handling into the VC4 derived IPA src/ipa/rpi/common/ipa_base.cpp | 55 ++----- src/ipa/rpi/controller/agc_algorithm.h | 11 +- src/ipa/rpi/controller/rpi/agc.cpp | 51 +++--- src/ipa/rpi/controller/rpi/agc.h | 13 +- src/ipa/rpi/controller/rpi/agc_channel.cpp | 23 ++- src/ipa/rpi/controller/rpi/agc_channel.h | 1 + src/ipa/rpi/controller/rpi/alsc.cpp | 22 +-- src/ipa/rpi/controller/rpi/hdr.cpp | 183 ++++++++++++++------- src/ipa/rpi/controller/rpi/hdr.h | 18 +- src/ipa/rpi/vc4/vc4.cpp | 35 +++- 10 files changed, 237 insertions(+), 175 deletions(-)