libcamera: v4l2_subdevice: Implement ENUM_FRAME_SIZES

Implement format and size enumeration methods to list all the available
subdevice image resolutions and formats.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi
2019-03-02 18:31:02 +01:00
parent 54e6a3eb1f
commit 0559c740f2
4 changed files with 142 additions and 2 deletions
+34
View File
@@ -46,4 +46,38 @@ namespace libcamera {
* \brief The distance between the top and bottom sides
*/
/**
* \struct SizeRange
* \brief Describe a range of image sizes
*
* SizeRange describes a range of image sizes included in the (minWidth,
* minHeight) - (maxWidth, maxHeight) interval. If the minimum and
* maximum sizes are identical it represents a single image resolution.
*/
/**
* \fn SizeRange::SizeRange()
* \brief Construct a size range
*/
/**
* \var SizeRange::minWidth
* \brief The minimum image width
*/
/**
* \var SizeRange::minHeight
* \brief The minimum image height
*/
/**
* \var SizeRange::maxWidth
* \brief The maximum image width
*/
/**
* \var SizeRange::maxHeight
* \brief The maximum image height
*/
} /* namespace libcamera */