@@ -43,6 +43,7 @@ struct StreamConfiguration {
PixelFormat pixelFormat;
Size size;
unsigned int stride;
+ unsigned int frameSize;
unsigned int bufferCount;
@@ -279,7 +279,8 @@ SizeRange StreamFormats::range(const PixelFormat &pixelformat) const
* handlers provide StreamFormats.
*/
StreamConfiguration::StreamConfiguration()
- : pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr)
+ : pixelFormat(0), stride(0), frameSize(0), bufferCount(0),
+ stream_(nullptr)
{
}
@@ -287,8 +288,8 @@ StreamConfiguration::StreamConfiguration()
* \brief Construct a configuration with stream formats
*/
StreamConfiguration::StreamConfiguration(const StreamFormats &formats)
- : pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr),
- formats_(formats)
+ : pixelFormat(0), stride(0), frameSize(0), bufferCount(0),
+ stream_(nullptr), formats_(formats)
{
}
@@ -315,6 +316,16 @@ StreamConfiguration::StreamConfiguration(const StreamFormats &formats)
* the camera is configured.
*/
+/**
+ * \var StreamConfiguration::frameSize
+ * \brief Frame size for the stream, in bytes
+ *
+ * The frameSize value reports the number of bytes necessary to contain one
+ * frame of an image buffer for this stream. The value is valid after
+ * successfully validating the configuration with a call to
+ * CameraConfiguration::validate().
+ */
+
/**
* \var StreamConfiguration::bufferCount
* \brief Requested number of buffers to allocate for the stream