From 332b04ce2003b4135fb58a84252fb47a94f36c40 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Mon, 13 Jan 2025 09:24:45 +0000 Subject: pipeline: rpi: Add new stream flags for PiSP 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 Acked-by: Kieran Bingham Signed-off-by: Kieran Bingham --- 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 a13d5dc0..0dba1296 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; -- cgit v1.2.1