From patchwork Mon Jan 13 09:24:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 22526 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 2325AC32F6 for ; Mon, 13 Jan 2025 09:35:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C5CC36851B; Mon, 13 Jan 2025 10:35:44 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="WNPviFYH"; dkim-atps=neutral Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 37699684D9 for ; Mon, 13 Jan 2025 10:35:40 +0100 (CET) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-436203f1203so3684575e9.2 for ; Mon, 13 Jan 2025 01:35:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1736760939; x=1737365739; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ahPU2MLw6hrw8nfGlsgLQcc+vHe0/a2mau7n0mx28bU=; b=WNPviFYH6uNVSVLvgMNx84lixiIGpDmCZ+/mAxu6h2QSUzKAO7BNeLLrlevF1QNHpd TnSt1Eb+h8pZ0qCXYzGZOIaAwC+7v79dEjGVXN8awhVdMDK9k7G2aXUpYYkcocfX/TND 5oZusPAZVkBaBrD7/sc4wB8zcalkRY3cPAkRpjiCCMnVMC66arCMf15aK4a91ailhAJt JwuCfAM14yLZhRltAwC6wC73vutsAGuKOzpAmvycSKviYTl50XZVQhZJIXIP3xnYKOhb DJsLpY8+GB4oqdeWCrzRY6zK+JW0Ln587SR4hHV4Lg0Jms4zntQKRBKesHJDx2GSZpf4 vflA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736760939; x=1737365739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ahPU2MLw6hrw8nfGlsgLQcc+vHe0/a2mau7n0mx28bU=; b=A53VqfMweT6jZ/fdDs/iER+o+01+WbkoXoObpX+UpNRPYnj9ayC7QkbvvPKf0LFEiC 0+1NfYRxVWYLL8gQz57vA6eggfBQy3WR+LgGP6cpp6tOBgvFvvWYTnmZD82g3j1w/gQx Tc462+qJXpHC1a13zWHQNkmLcNz23PCPeFFkJz1faQ4kb5KvU/fe8aMXeuYsdFCLZRNz myfp/GGtmcGseCjZ2Ea50jP7arpiy5L4Lg+nRYwDGUqYiBtOQZbjsMDCmsn6b2qWo9qH NfuPC5ToPtjn3kuMtPkIDTMa/q/udRKBm5c1pS7HkpCr1b/t9DMA14LWPeIG35ZIIgpQ tDtg== X-Gm-Message-State: AOJu0YxjTt2oGoE+QQXd03zeufb8vlLsPEBxSKOf6WoBymqhFqv+bVTa +D9YKV99jtRr0Lx0lMeIxLPw5U62uH9JMMrXmhnV5245/bRgty7JwshbYgTrujKbVRPAMdBAd0G 1udk= X-Gm-Gg: ASbGncsMK2K8qxu53njx4jfB0E38VdoI7ID3w17MxWS8Fj1pHcl0K+RqlEOImu0IAay UzWEt3wax4DsN482sAltCSNTEZdLIiC42Csah9j/ghSMeel8HB0NNrFG0pTHHwt9+I5jqmdgjWD WtiTPViAxXpFLqqL/SFzLxWDqyCzTz6w0j6XWzYpPYwvhHfiHUy7C2BQEDhzvQVZE2ehS43Aj5k 5FmV0U8sIwDGJ/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 5b1f17b1804b1-436e2713e51mr77225545e9.6.1736760939215; Mon, 13 Jan 2025 01:35:39 -0800 (PST) Received: from NAUSH-P-DELL.pitowers.org ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e38c6dbsm11904724f8f.55.2025.01.13.01.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 01:35:38 -0800 (PST) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck 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 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" Add the following new stream flags: Needs16bitEndianSwap - Indicates that a 16-bit endian swap needs to be performed on the framebuffer in software. Needs14bitUnpack - Indicates that a CSI-2 14-bit unpacking (to 16-bits) needs to be performed on the framebuffer in software. These are to workaround hardware restrictions in the CFE hardware that will be supported in a future commit. Signed-off-by: Naushir Patuck --- src/libcamera/pipeline/rpi/common/rpi_stream.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libcamera/pipeline/rpi/common/rpi_stream.h b/src/libcamera/pipeline/rpi/common/rpi_stream.h index a13d5dc0d5e9..0dba12961743 100644 --- a/src/libcamera/pipeline/rpi/common/rpi_stream.h +++ b/src/libcamera/pipeline/rpi/common/rpi_stream.h @@ -82,6 +82,16 @@ public: * to be applied after ISP processing. */ Needs32bitConv = (1 << 4), + /* + * Indicates that the input stream needs a software 16-bit endian + * conversion to be applied before ISP processing. + */ + Needs16bitEndianSwap = (1 << 5), + /* + * Indicates that the input stream needs a software 14-bit to + * 16-bit unpacking. + */ + Needs14bitUnpack = (1 << 6), }; using StreamFlags = Flags;