{"id":22526,"url":"https://patchwork.libcamera.org/api/1.1/patches/22526/?format=json","web_url":"https://patchwork.libcamera.org/patch/22526/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250113093532.4054142-4-naush@raspberrypi.com>","date":"2025-01-13T09:24:45","name":"[v1,3/4] pipeline: rpi: Add new stream flags for PiSP","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"e4324ce4bf4c8b73d8f23ac463d5c8cdf1973425","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/22526/mbox/","series":[{"id":4944,"url":"https://patchwork.libcamera.org/api/1.1/series/4944/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4944","date":"2025-01-13T09:24:42","name":"Raspberry Pi: Add support for Pi 5 (PiSP)","version":1,"mbox":"https://patchwork.libcamera.org/series/4944/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/22526/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/22526/checks/","tags":{},"headers":{"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\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 2325AC32F6\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 13 Jan 2025 09:35:46 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C5CC36851B;\n\tMon, 13 Jan 2025 10:35:44 +0100 (CET)","from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n\t[IPv6:2a00:1450:4864:20::32a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 37699684D9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 13 Jan 2025 10:35:40 +0100 (CET)","by mail-wm1-x32a.google.com with SMTP id\n\t5b1f17b1804b1-436203f1203so3684575e9.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 13 Jan 2025 01:35:40 -0800 (PST)","from NAUSH-P-DELL.pitowers.org ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tffacd0b85a97d-38a8e38c6dbsm11904724f8f.55.2025.01.13.01.35.38\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 13 Jan 2025 01:35:38 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"WNPviFYH\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1736760939; x=1737365739;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=ahPU2MLw6hrw8nfGlsgLQcc+vHe0/a2mau7n0mx28bU=;\n\tb=WNPviFYH6uNVSVLvgMNx84lixiIGpDmCZ+/mAxu6h2QSUzKAO7BNeLLrlevF1QNHpd\n\tTnSt1Eb+h8pZ0qCXYzGZOIaAwC+7v79dEjGVXN8awhVdMDK9k7G2aXUpYYkcocfX/TND\n\t5oZusPAZVkBaBrD7/sc4wB8zcalkRY3cPAkRpjiCCMnVMC66arCMf15aK4a91ailhAJt\n\tJwuCfAM14yLZhRltAwC6wC73vutsAGuKOzpAmvycSKviYTl50XZVQhZJIXIP3xnYKOhb\n\tDJsLpY8+GB4oqdeWCrzRY6zK+JW0Ln587SR4hHV4Lg0Jms4zntQKRBKesHJDx2GSZpf4\n\tvflA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1736760939; x=1737365739;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=ahPU2MLw6hrw8nfGlsgLQcc+vHe0/a2mau7n0mx28bU=;\n\tb=A53VqfMweT6jZ/fdDs/iER+o+01+WbkoXoObpX+UpNRPYnj9ayC7QkbvvPKf0LFEiC\n\t0+1NfYRxVWYLL8gQz57vA6eggfBQy3WR+LgGP6cpp6tOBgvFvvWYTnmZD82g3j1w/gQx\n\tTc462+qJXpHC1a13zWHQNkmLcNz23PCPeFFkJz1faQ4kb5KvU/fe8aMXeuYsdFCLZRNz\n\tmyfp/GGtmcGseCjZ2Ea50jP7arpiy5L4Lg+nRYwDGUqYiBtOQZbjsMDCmsn6b2qWo9qH\n\tNfuPC5ToPtjn3kuMtPkIDTMa/q/udRKBm5c1pS7HkpCr1b/t9DMA14LWPeIG35ZIIgpQ\n\ttDtg==","X-Gm-Message-State":"AOJu0YxjTt2oGoE+QQXd03zeufb8vlLsPEBxSKOf6WoBymqhFqv+bVTa\n\t+D9YKV99jtRr0Lx0lMeIxLPw5U62uH9JMMrXmhnV5245/bRgty7JwshbYgTrujKbVRPAMdBAd0G\n\t1udk=","X-Gm-Gg":"ASbGncsMK2K8qxu53njx4jfB0E38VdoI7ID3w17MxWS8Fj1pHcl0K+RqlEOImu0IAay\n\tUzWEt3wax4DsN482sAltCSNTEZdLIiC42Csah9j/ghSMeel8HB0NNrFG0pTHHwt9+I5jqmdgjWD\n\tWtiTPViAxXpFLqqL/SFzLxWDqyCzTz6w0j6XWzYpPYwvhHfiHUy7C2BQEDhzvQVZE2ehS43Aj5k\n\t5FmV0U8sIwDGJ/sM6d6TUggIXcrsNCS+7h2cAts3jA3WpmAudlXA2e6Qz9PT+zvcZ9ZTYiH6xe4","X-Google-Smtp-Source":"AGHT+IHhwNWywQADPOh1LI+7IZvICC3wD0xLHV/LtSCwwliEuhnlNAqMvBKqVulU2thrPNEfd0NQQw==","X-Received":"by 2002:a05:600c:3c97:b0:42c:b55f:f4f with SMTP id\n\t5b1f17b1804b1-436e2713e51mr77225545e9.6.1736760939215; \n\tMon, 13 Jan 2025 01:35:39 -0800 (PST)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Naushir Patuck <naush@raspberrypi.com>","Subject":"[PATCH v1 3/4] pipeline: rpi: Add new stream flags for PiSP","Date":"Mon, 13 Jan 2025 09:24:45 +0000","Message-ID":"<20250113093532.4054142-4-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20250113093532.4054142-1-naush@raspberrypi.com>","References":"<20250113093532.4054142-1-naush@raspberrypi.com>","MIME-Version":"1.0","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>,\n\t<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>,\n\t<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>"},"content":"Add the following new stream flags:\n\nNeeds16bitEndianSwap - Indicates that a 16-bit endian swap needs to be\nperformed on the framebuffer in software.\n\nNeeds14bitUnpack - Indicates that a CSI-2 14-bit unpacking (to 16-bits)\nneeds to be performed on the framebuffer in software.\n\nThese are to workaround hardware restrictions in the CFE hardware that\nwill be supported in a future commit.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/libcamera/pipeline/rpi/common/rpi_stream.h | 10 ++++++++++\n 1 file changed, 10 insertions(+)","diff":"diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.h b/src/libcamera/pipeline/rpi/common/rpi_stream.h\nindex a13d5dc0d5e9..0dba12961743 100644\n--- a/src/libcamera/pipeline/rpi/common/rpi_stream.h\n+++ b/src/libcamera/pipeline/rpi/common/rpi_stream.h\n@@ -82,6 +82,16 @@ public:\n \t\t * to be applied after ISP processing.\n \t\t */\n \t\tNeeds32bitConv\t= (1 << 4),\n+\t\t/*\n+\t\t * Indicates that the input stream needs a software 16-bit endian\n+\t\t * conversion to be applied before ISP processing.\n+\t\t */\n+\t\tNeeds16bitEndianSwap = (1 << 5),\n+\t\t/*\n+\t\t * Indicates that the input stream needs a software 14-bit to\n+\t\t * 16-bit unpacking.\n+\t\t */\n+\t\tNeeds14bitUnpack = (1 << 6),\n \t};\n \n \tusing StreamFlags = Flags<StreamFlag>;\n","prefixes":["v1","3/4"]}