[PATCH v1 3/4] pipeline: rpi: Add new stream flags for PiSP
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Mar 20 12:13:03 CET 2025
Quoting Naushir Patuck (2025-01-13 09:24:45)
> 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 <naush at raspberrypi.com>
Acked-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> 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<StreamFlag>;
> --
> 2.43.0
>
More information about the libcamera-devel
mailing list