diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:45:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-09 02:55:47 +0300 |
commit | 2483a44374433299866b0c16e35ccea40b5379e5 (patch) | |
tree | 4e0db44dcd69a39e93f8f7f5be8255b307a88b18 /uvc.h | |
parent | 3e5b2d028c743f8e6f22aae74471a2f1be25d120 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'uvc.h')
-rw-r--r-- | uvc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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__ */ |