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