Lines Matching refs:format
93 v4l2_format format; in open() local
94 format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in open()
95 format.fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; in open()
96 format.fmt.pix.width = 720; in open()
97 format.fmt.pix.height = 240; in open()
99 ((char*)&format.fmt.pix.pixelformat)[0], in open()
100 ((char*)&format.fmt.pix.pixelformat)[1], in open()
101 ((char*)&format.fmt.pix.pixelformat)[2], in open()
102 ((char*)&format.fmt.pix.pixelformat)[3], in open()
103 format.fmt.pix.pixelformat); in open()
104 if (ioctl(mDeviceFd, VIDIOC_S_FMT, &format) < 0) { in open()
109 format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in open()
110 if (ioctl(mDeviceFd, VIDIOC_G_FMT, &format) == 0) { in open()
112 mFormat = format.fmt.pix.pixelformat; in open()
113 mWidth = format.fmt.pix.width; in open()
114 mHeight = format.fmt.pix.height; in open()
115 mStride = format.fmt.pix.bytesperline; in open()
118 format.fmt.pix.pixelformat, in open()
119 format.fmt.pix.width, in open()
120 format.fmt.pix.height, in open()
121 format.fmt.pix.bytesperline in open()