summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/rkisp1/rkisp1.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
index efa9604b..de4ab523 100644
--- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp
+++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp
@@ -286,6 +286,8 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)
if (ret < 0)
return ret;
+ LOG(RkISP1, Debug) << "Configuring ISP input pad with " << format.toString();
+
ret = dphy_->getFormat(1, &format);
if (ret < 0)
return ret;
@@ -294,6 +296,18 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)
if (ret < 0)
return ret;
+ LOG(RkISP1, Debug) << "ISP input pad configured with " << format.toString();
+
+ /* YUYV8_2X8 is required on the ISP source path pad for YUV output. */
+ format.mbus_code = MEDIA_BUS_FMT_YUYV8_2X8;
+ LOG(RkISP1, Debug) << "Configuring ISP output pad with " << format.toString();
+
+ ret = isp_->setFormat(2, &format);
+ if (ret < 0)
+ return ret;
+
+ LOG(RkISP1, Debug) << "ISP output pad configured with " << format.toString();
+
V4L2DeviceFormat outputFormat = {};
outputFormat.fourcc = cfg.pixelFormat;
outputFormat.size = cfg.size;