113 unsigned int *height,
114 unsigned int *bytesperline,
115 unsigned int *sizeimage);
Support for process management (memory allocation, logging, etc.)
int sc_v4l2_device_write(sc_v4l2_device_t *vd, const char *wbuf)
Call write (2) to copy an image buffer to device.
int sc_v4l2_device_select(sc_v4l2_device_t *vd, unsigned usec)
Call select (2) to wait for write availability of device.
const char * sc_v4l2_device_devstring(const sc_v4l2_device_t *vd)
Return string that details some driver and device properties.
int sc_v4l2_device_format(sc_v4l2_device_t *vd, unsigned int *width, unsigned int *height, unsigned int *bytesperline, unsigned int *sizeimage)
Set output configuration of device.
const char * sc_v4l2_device_capstring(const sc_v4l2_device_t *vd)
Return string that details some device capabilities.
const char * sc_v4l2_device_outstring(const sc_v4l2_device_t *vd)
Return string that details some output properties.
int sc_v4l2_device_is_readwrite(const sc_v4l2_device_t *vd)
Query whether a device supports read/write I/O.
struct sc_v4l2_device sc_v4l2_device_t
Opaque structure for a video device.
Definition: sc_v4l2.h:37
int sc_v4l2_device_close(sc_v4l2_device_t *vd)
Close a video device.
int sc_v4l2_device_is_streaming(const sc_v4l2_device_t *vd)
Query whether a device supports streaming I/O.
sc_v4l2_device_t * sc_v4l2_device_open(const char *devname)
Open a video device by special file name.