libcamera: V4L2Device: Use Span in updateControls()
V4L2Device::updateControls() takes two arguments, raw array and its size, for the v4l2_ext_control values. This replaces it with libcamera::Span. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
committed by
Laurent Pinchart
parent
3c0e99e034
commit
c3ab0fa0ce
@@ -14,6 +14,7 @@
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include <libcamera/signal.h>
|
||||
#include <libcamera/span.h>
|
||||
|
||||
#include "libcamera/internal/log.h"
|
||||
#include "libcamera/internal/v4l2_controls.h"
|
||||
@@ -55,8 +56,7 @@ protected:
|
||||
private:
|
||||
void listControls();
|
||||
void updateControls(ControlList *ctrls,
|
||||
const struct v4l2_ext_control *v4l2Ctrls,
|
||||
unsigned int count);
|
||||
Span<const v4l2_ext_control> v4l2Ctrls);
|
||||
|
||||
void eventAvailable(EventNotifier *notifier);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user