Searched refs:video_fmt (Results 1 – 2 of 2) sorted by relevance
254 struct v4l2_format video_fmt; in FillCapabilities() local255 memset(&video_fmt, 0, sizeof(struct v4l2_format)); in FillCapabilities()257 video_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in FillCapabilities()258 video_fmt.fmt.pix.sizeimage = 0; in FillCapabilities()279 video_fmt.fmt.pix.pixelformat = videoFormats[fmts]; in FillCapabilities()280 video_fmt.fmt.pix.width = size[i][0]; in FillCapabilities()281 video_fmt.fmt.pix.height = size[i][1]; in FillCapabilities()283 if (ioctl(fd, VIDIOC_TRY_FMT, &video_fmt) >= 0) in FillCapabilities()285 if ((video_fmt.fmt.pix.width == size[i][0]) in FillCapabilities()286 && (video_fmt.fmt.pix.height == size[i][1])) in FillCapabilities()[all …]
205 struct v4l2_format video_fmt; in StartCapture() local206 memset(&video_fmt, 0, sizeof(struct v4l2_format)); in StartCapture()207 video_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in StartCapture()208 video_fmt.fmt.pix.sizeimage = 0; in StartCapture()209 video_fmt.fmt.pix.width = capability.width; in StartCapture()210 video_fmt.fmt.pix.height = capability.height; in StartCapture()211 video_fmt.fmt.pix.pixelformat = fmts[fmtsIdx]; in StartCapture()213 if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) in StartCapture()215 else if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) in StartCapture()217 else if (video_fmt.fmt.pix.pixelformat == V4L2_PIX_FMT_UYVY) in StartCapture()[all …]