Home
last modified time | relevance | path

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

/external/libkmsxx/kms++util/src/
Dvideodevice.cpp54 v4l2_format v4lfmt{}; in v4l2_set_format() local
56 v4lfmt.type = buf_type; in v4l2_set_format()
57 r = ioctl(fd, VIDIOC_G_FMT, &v4lfmt); in v4l2_set_format()
65 v4l2_pix_format_mplane& mp = v4lfmt.fmt.pix_mp; in v4l2_set_format()
87 r = ioctl(fd, VIDIOC_S_FMT, &v4lfmt); in v4l2_set_format()
106 v4lfmt.fmt.pix.pixelformat = (uint32_t)fmt; in v4l2_set_format()
107 v4lfmt.fmt.pix.width = width; in v4l2_set_format()
108 v4lfmt.fmt.pix.height = height; in v4l2_set_format()
109 v4lfmt.fmt.pix.bytesperline = width * pfi.planes[0].bitspp / 8; in v4l2_set_format()
111 r = ioctl(fd, VIDIOC_S_FMT, &v4lfmt); in v4l2_set_format()
[all …]
/external/libkmsxx/utils/
Dkmscapture.cpp140 struct v4l2_format v4lfmt = {}; in CameraPipeline() local
141 v4lfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in CameraPipeline()
142 r = ioctl(m_fd, VIDIOC_G_FMT, &v4lfmt); in CameraPipeline()
145 v4lfmt.fmt.pix.pixelformat = (uint32_t)pixfmt; in CameraPipeline()
146 v4lfmt.fmt.pix.width = m_in_width; in CameraPipeline()
147 v4lfmt.fmt.pix.height = m_in_height; in CameraPipeline()
149 r = ioctl(m_fd, VIDIOC_S_FMT, &v4lfmt); in CameraPipeline()