libcamera: v4l2_videodevice: Add getSelection() function
The V4L2VideoDevice class implements setSelection() but not getSelection(). The latter is useful for instance to query crop bounds. Implement the function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
@@ -208,6 +208,7 @@ public:
|
||||
int setFormat(V4L2DeviceFormat *format);
|
||||
Formats formats(uint32_t code = 0);
|
||||
|
||||
int getSelection(unsigned int target, Rectangle *rect);
|
||||
int setSelection(unsigned int target, Rectangle *rect);
|
||||
|
||||
int allocateBuffers(unsigned int count,
|
||||
|
||||
Reference in New Issue
Block a user