summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-09-30 15:14:39 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-10-01 22:23:25 +0200
commit0c56c116343dd881f8b134653a03f7a80051e8b7 (patch)
tree3eb54d30e08aa0054e261eaf6cbc857e84ab5928
parent1455bd0dc25d6c5a2cc8ef99dc030b9dca3df77d (diff)
libcamera: pipeline: rkisp1: Add support for RGB656
The self path supports RGB565, list it as a supported format. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1_path.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
index 63c643f2..277aa226 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp
@@ -218,13 +218,14 @@ constexpr std::array<PixelFormat, 5> RKISP1_RSZ_MP_FORMATS{
constexpr Size RKISP1_RSZ_SP_SRC_MIN{ 32, 16 };
constexpr Size RKISP1_RSZ_SP_SRC_MAX{ 1920, 1920 };
-constexpr std::array<PixelFormat, 5> RKISP1_RSZ_SP_FORMATS{
+constexpr std::array<PixelFormat, 6> RKISP1_RSZ_SP_FORMATS{
formats::YUYV,
formats::NV16,
formats::NV61,
formats::NV21,
formats::NV12,
- /* \todo Add support for BGR888 and RGB565 */
+ formats::RGB565,
+ /* \todo Add support for BGR888 */
};
} /* namespace */