From patchwork Wed May 8 08:03:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 20011 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 150F2BDE6B for ; Wed, 8 May 2024 08:04:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B09B36343D; Wed, 8 May 2024 10:04:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="tnsAGnnD"; dkim-atps=neutral Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 06B1263415 for ; Wed, 8 May 2024 10:04:00 +0200 (CEST) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-41b782405d5so42130185e9.2 for ; Wed, 08 May 2024 01:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1715155440; x=1715760240; 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=va3NsMh/qA51CQpNCOW0Nd8Vi+SYn/aF6iMIRrIiHSI=; b=tnsAGnnD2ZIPxRGYcKLxEjPeBa6MaCdWRnMu7YL3WLI0jp7++RmUhOccbQpXSJgsqW 30MZs4kafXDTkfOuzzxdc7HqQdQ5sk2WTwfQ3/fZrTF+n6UeByq9y7x/E1rYpG0j1B1h IOjDCfZUOoQhtfhDWaRHcWLVUx9ql9e2C7nXQV7Ht9I9LdGV9PoTfYjggqj8R34pbNXd CY7lU9Resisgs+NCKVg3GpdSINoicId1tbP/aWvf2AOUU5MXknNoYd1uO1FE7CmCggjU ccbGfKzxbZtPOtsZrcvt8vAXFQfjESDXnQ4Sri1N+rA4K7FvZrPboWukpJP05wOoIgjf 8s5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715155440; x=1715760240; 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=va3NsMh/qA51CQpNCOW0Nd8Vi+SYn/aF6iMIRrIiHSI=; b=RDDGUu8kcpfGyObbsPfNRu1C7fTJ7Fyk0/6dU/dRGaqmTNlfdrQidimBTp+Pbd9Xts /hkvAYdbblcJKqMoVN79yy69or/AI/Y9FOUD3Lfc/vxSnbgWCFk4402AMZOtbIxRO1a+ itelH7pPRDalDnU0ObxA8mfvDGXks+0RNrHF5xd/eUn7H1ie94OyftwOtfkxVxO/0tBh fj4n4d+dHfQL7o8+5Q+IruhAXHDUQF6uWsVxP8ibMFSpvGR1ZkWtqkJv+hi46YYH0IJj P/2/0aX99WPMj4RsCf+594Cv+AjOZdnnpzbAcjkbRfTc/FXuIankZH4TZso3HEuHbTgQ hQtw== X-Gm-Message-State: AOJu0YwW69u1brG0Yr1Jn4mkckNJ00Hwk9BmTe17sm/uXeeaJ6/ZbmLF yD/ZVEMwbpiN2htRw090uh8EJy0CnbdTL4hkdW0zQaBQbJEephMQNye4F/aWX8c1RYOoEHfFb3u M X-Google-Smtp-Source: AGHT+IFUWbTABqzXG+beKFqYgMOs1dIIqayqeb9FSvr7je5i38ck+sRuwfLYMZJZEQaXVh/Cv6C5Pw== X-Received: by 2002:a05:600c:34cf:b0:41a:225f:becc with SMTP id 5b1f17b1804b1-41f714f7278mr17494165e9.21.1715155439958; Wed, 08 May 2024 01:03:59 -0700 (PDT) Received: from localhost.localdomain ([188.39.149.98]) by smtp.gmail.com with ESMTPSA id w16-20020a05600c475000b0041c14061c71sm1351944wmo.15.2024.05.08.01.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:03:59 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v2 0/6] Pre Raspberry Pi 5 support changes Date: Wed, 8 May 2024 09:03:55 +0100 Message-Id: <20240508080401.14850-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, Version 2 of this series addresses Jacopo's feedback on v1: 1) Refactor the UAPI changes to closer match what was posted to upstream 2) Minor fixups to format info for PISP_COMP_MONO format 3) Separated out the changes in patch 2/6 and 3/6 (previously 2/5) for 16-bit mbus formats addition 4) Capitalise "X" in the 16-bit mbus format strings Hope I addressed everything noted. If not, please let me know! Regards, Naush Naushir Patuck (6): libcamera: formats: Add RGB48 formats libcamera: formats: Add PiSP specific image and config buffer formats libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info ipa: rpi: Add HDR support ipa: rpi: Move variables from private to protected libcamera: shared_mem_object: Remove is_standard_layout restriction include/libcamera/internal/bayer_format.h | 2 + .../libcamera/internal/shared_mem_object.h | 2 +- include/linux/drm_fourcc.h | 9 + include/linux/videodev2.h | 23 + src/ipa/rpi/common/ipa_base.cpp | 78 ++- src/ipa/rpi/common/ipa_base.h | 13 +- src/ipa/rpi/controller/rpi/hdr.cpp | 112 +++- src/ipa/rpi/controller/rpi/hdr.h | 10 +- src/ipa/rpi/vc4/data/imx219.json | 607 ++++++++--------- src/ipa/rpi/vc4/data/imx219_noir.json | 607 ++++++++--------- src/ipa/rpi/vc4/data/imx290.json | 15 +- src/ipa/rpi/vc4/data/imx296.json | 17 +- src/ipa/rpi/vc4/data/imx296_mono.json | 17 +- src/ipa/rpi/vc4/data/imx378.json | 15 +- src/ipa/rpi/vc4/data/imx477.json | 615 +++++++++--------- src/ipa/rpi/vc4/data/imx477_noir.json | 607 ++++++++--------- src/ipa/rpi/vc4/data/imx477_scientific.json | 15 +- src/ipa/rpi/vc4/data/imx477_v1.json | 15 +- src/ipa/rpi/vc4/data/imx519.json | 15 +- src/ipa/rpi/vc4/data/imx708.json | 555 ++++++++-------- src/ipa/rpi/vc4/data/imx708_noir.json | 555 ++++++++-------- src/ipa/rpi/vc4/data/imx708_wide.json | 555 ++++++++-------- src/ipa/rpi/vc4/data/imx708_wide_noir.json | 555 ++++++++-------- src/ipa/rpi/vc4/data/ov5647.json | 611 ++++++++--------- src/ipa/rpi/vc4/data/ov5647_noir.json | 15 +- src/ipa/rpi/vc4/data/ov9281_mono.json | 5 +- src/ipa/rpi/vc4/data/se327m12.json | 15 +- src/ipa/rpi/vc4/data/uncalibrated.json | 5 +- src/libcamera/bayer_format.cpp | 14 + src/libcamera/formats.cpp | 71 +- src/libcamera/formats.yaml | 21 + src/libcamera/v4l2_pixelformat.cpp | 14 + src/libcamera/v4l2_subdevice.cpp | 28 + 33 files changed, 3225 insertions(+), 2588 deletions(-)