[libcamera-devel] [PATCH 4/6] libcamera: pipeline: rkisp1: Add support for R8

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Sep 30 22:08:29 CEST 2020


Both the main and self path supports R8, list it as a supported format.

Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
 src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
index 277aa226fcd428be..ff995286073db2a3 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
@@ -207,23 +207,25 @@ void RkISP1Path::stop()
 namespace {
 constexpr Size RKISP1_RSZ_MP_SRC_MIN{ 32, 16 };
 constexpr Size RKISP1_RSZ_MP_SRC_MAX{ 4416, 3312 };
-constexpr std::array<PixelFormat, 5> RKISP1_RSZ_MP_FORMATS{
+constexpr std::array<PixelFormat, 6> RKISP1_RSZ_MP_FORMATS{
 	formats::YUYV,
 	formats::NV16,
 	formats::NV61,
 	formats::NV21,
 	formats::NV12,
-	/* \todo Add support for 8-bit greyscale to DRM formats */
+	formats::R8,
+	/* \todo Add support for RAW formats. */
 };
 
 constexpr Size RKISP1_RSZ_SP_SRC_MIN{ 32, 16 };
 constexpr Size RKISP1_RSZ_SP_SRC_MAX{ 1920, 1920 };
-constexpr std::array<PixelFormat, 6> RKISP1_RSZ_SP_FORMATS{
+constexpr std::array<PixelFormat, 7> RKISP1_RSZ_SP_FORMATS{
 	formats::YUYV,
 	formats::NV16,
 	formats::NV61,
 	formats::NV21,
 	formats::NV12,
+	formats::R8,
 	formats::RGB565,
 	/* \todo Add support for BGR888 */
 };
-- 
2.28.0



More information about the libcamera-devel mailing list