diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-02-19 12:11:04 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-03-02 18:31:02 +0100 |
commit | 0559c740f201bebf89983464c2e9ae92d0a8936b (patch) | |
tree | 4d2b8e62d62d65af10d800e7b9cfcd2d6fb9a37c /src/libcamera/geometry.cpp | |
parent | 54e6a3eb1f84a6020e6b24b61f37344ba6eecb7d (diff) |
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>
Diffstat (limited to 'src/libcamera/geometry.cpp')
-rw-r--r-- | src/libcamera/geometry.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp index 57f4fc77..b6b6592b 100644 --- a/src/libcamera/geometry.cpp +++ b/src/libcamera/geometry.cpp @@ -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 */ |