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-02-19 12:11:04 +01:00
parent 54e6a3eb1f
commit 0559c740f2
4 changed files with 142 additions and 2 deletions
+12
View File
@@ -17,6 +17,18 @@ struct Rectangle {
unsigned int h;
};
struct SizeRange {
SizeRange(unsigned int minW, unsigned int minH,
unsigned int maxW, unsigned int maxH)
: minWidth(minW), minHeight(minH), maxWidth(maxW),
maxHeight(maxH) {}
unsigned int minWidth;
unsigned int minHeight;
unsigned int maxWidth;
unsigned int maxHeight;
};
} /* namespace libcamera */
#endif /* __LIBCAMERA_GEOMETRY_H__ */