From 2483a44374433299866b0c16e35ccea40b5379e5 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 9 Jun 2018 02:45:00 +0300 Subject: uvc: Add API to set video format Add a uvc_setformat() function to set the format for the UVC video stream instead of accessing the internals of the uvc_device in stream.c. Signed-off-by: Laurent Pinchart --- uvc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'uvc.h') diff --git a/uvc.h b/uvc.h index c1138bf..f73ff70 100644 --- a/uvc.h +++ b/uvc.h @@ -49,5 +49,6 @@ struct uvc_device *uvc_open(const char *devname, struct uvc_stream *stream); void uvc_close(struct uvc_device *dev); void uvc_events_init(struct uvc_device *dev, struct events *events); void uvc_set_config(struct uvc_device *dev, struct uvc_function_config *fc); +int uvc_set_format(struct uvc_device *dev, struct v4l2_pix_format *format); #endif /* __UVC_H__ */ -- cgit v1.2.3