libcamera: streams: extend stream configuration with buffer count

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 <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2019-02-04 17:18:09 +01:00
parent 08c31d2a86
commit 4a5febd7dd
2 changed files with 7 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ struct StreamConfiguration {
unsigned int width;
unsigned int height;
unsigned int pixelFormat;
unsigned int bufferCount;
};
} /* namespace libcamera */

View File

@@ -73,4 +73,9 @@ namespace libcamera {
* format described in V4L2 using the V4L2_PIX_FMT_* definitions.
*/
/**
* \var StreamConfiguration::bufferCount
* \brief Requested number of buffers to allocate for the stream
*/
} /* namespace libcamera */