From 19cbbd65fec80712bfedb7cd14a8763f44a3e187 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Tue, 25 Nov 2025 17:28:26 +0100 Subject: [PATCH] pipeline: rkisp1: Fix number of buffers imported into the dewarper When the dewarper is used, an addition buffer loop with kRkISP1MinBufferCount buffers is created between ISP and dewarper. When the dewarper is configured, it stores the bufferCount value of the requested stream configurations. This number of buffers is then imported when the dewarper is started. On the input stream of the dewarper the bufferCount is currently left unchanged, meaning it carries the bufferCount as supplied by the user instead of the bufferCount of the additional loop. Fix that by setting the bufferCount to kRkISP1MinBufferCount. Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham --- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp index 79c8717c..138e1d5b 100644 --- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp +++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp @@ -954,6 +954,7 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c) if (data->usesDewarper_) { outputCfgs.push_back(const_cast(cfg)); + ispCfg.bufferCount = kRkISP1MinBufferCount; ispCfg.size = format.size; ispCfg.stride = PixelFormatInfo::info(ispCfg.pixelFormat)