From 4a5febd7ddd798c783ca5e1192b0e9c705c1ac77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Mon, 4 Feb 2019 17:18:09 +0100 Subject: libcamera: streams: extend stream configuration with buffer count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The camera needs to be configured with the number of buffers required to satisfy the applications use case. While the application can request any number of buffers, the pipeline must take the constraints of the Linux driver into consideration. Signed-off-by: Niklas Söderlund Reviewed-by: Kieran Bingham --- include/libcamera/stream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index 4b24dd84..89067836 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -17,6 +17,8 @@ struct StreamConfiguration { unsigned int width; unsigned int height; unsigned int pixelFormat; + + unsigned int bufferCount; }; } /* namespace libcamera */ -- cgit v1.2.1