19 #include <linux/v4l2-subdev.h> 26 using namespace Linux;
30 struct v4l2_subdev_format fmt;
38 memset(&fmt, 0,
sizeof(fmt));
40 fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE;
41 fmt.format.width = width;
42 fmt.format.height = height;
43 fmt.format.code = format;
45 ret = ioctl(fd, VIDIOC_SUBDEV_S_FMT, &fmt);
int open(const char *pathname, int flags)
POSIX Open a file with integer mode flags.
bool set_format(uint32_t width, uint32_t height, uint32_t format)
const char * _device_path