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 <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Stefan Klug
2025-11-25 17:28:26 +01:00
parent d5c6e78a60
commit 19cbbd65fe

View File

@@ -954,6 +954,7 @@ int PipelineHandlerRkISP1::configure(Camera *camera, CameraConfiguration *c)
if (data->usesDewarper_) {
outputCfgs.push_back(const_cast<StreamConfiguration &>(cfg));
ispCfg.bufferCount = kRkISP1MinBufferCount;
ispCfg.size = format.size;
ispCfg.stride =
PixelFormatInfo::info(ispCfg.pixelFormat)