30 int res = 0,
flags = O_RDWR;
31 struct v4l2_format fmt = {
32 .type = V4L2_BUF_TYPE_VIDEO_OUTPUT
52 "V4L2 output device supports only a single raw video stream\n");
65 if (ioctl(s->
fd, VIDIOC_G_FMT, &fmt) < 0) {
71 fmt.fmt.pix.width = enc_ctx->
width;
72 fmt.fmt.pix.height = enc_ctx->
height;
73 fmt.fmt.pix.pixelformat = v4l2_pixfmt;
76 if (ioctl(s->
fd, VIDIOC_S_FMT, &fmt) < 0) {
117 .priv_class = &v4l2_class,