Home
last modified time | relevance | path

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

/external/libkmsxx/kms++util/src/
Dvideodevice.cpp244 v4l2_frmsizeenum v4lfrms { }; in get_discrete_frame_sizes() local
245 v4lfrms.pixel_format = (uint32_t)fmt; in get_discrete_frame_sizes()
247 int r = ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms); in get_discrete_frame_sizes()
250 FAIL_IF(v4lfrms.type != V4L2_FRMSIZE_TYPE_DISCRETE, "No discrete frame sizes"); in get_discrete_frame_sizes()
252 while (ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms) == 0) { in get_discrete_frame_sizes()
253 v.emplace_back(v4lfrms.discrete.width, v4lfrms.discrete.height); in get_discrete_frame_sizes()
254 v4lfrms.index++; in get_discrete_frame_sizes()
262 v4l2_frmsizeenum v4lfrms { }; in get_frame_sizes() local
263 v4lfrms.pixel_format = (uint32_t)fmt; in get_frame_sizes()
265 int r = ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms); in get_frame_sizes()
[all …]
/external/libkmsxx/utils/
Dkmscapture.cpp110 struct v4l2_frmsizeenum v4lfrms = { }; in CameraPipeline() local
111 v4lfrms.pixel_format = (uint32_t)pixfmt; in CameraPipeline()
112 while (ioctl(m_fd, VIDIOC_ENUM_FRAMESIZES, &v4lfrms) == 0) { in CameraPipeline()
113 if (v4lfrms.type != V4L2_FRMSIZE_TYPE_DISCRETE) { in CameraPipeline()
114 v4lfrms.index++; in CameraPipeline()
118 if (v4lfrms.discrete.width > iw || v4lfrms.discrete.height > ih) { in CameraPipeline()
120 } else if (v4lfrms.discrete.width == iw && v4lfrms.discrete.height == ih) { in CameraPipeline()
122 best_w = v4lfrms.discrete.width; in CameraPipeline()
123 best_h = v4lfrms.discrete.height; in CameraPipeline()
125 } else if (v4lfrms.discrete.width >= best_w || v4lfrms.discrete.height >= ih) { in CameraPipeline()
[all …]