Home
last modified time | relevance | path

Searched refs:video_fmt (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/webrtc/modules/video_capture/linux/
Ddevice_info_linux.cc254 struct v4l2_format video_fmt; in FillCapabilities() local
255 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 …]
Dvideo_capture_linux.cc205 struct v4l2_format video_fmt; in StartCapture() local
206 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 …]