Lines Matching refs:v4lfrms
244 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()
268 FAIL_IF(v4lfrms.type == V4L2_FRMSIZE_TYPE_DISCRETE, "No continuous frame sizes"); in get_frame_sizes()
272 s.min_w = v4lfrms.stepwise.min_width; in get_frame_sizes()
273 s.max_w = v4lfrms.stepwise.max_width; in get_frame_sizes()
274 s.step_w = v4lfrms.stepwise.step_width; in get_frame_sizes()
276 s.min_h = v4lfrms.stepwise.min_height; in get_frame_sizes()
277 s.max_h = v4lfrms.stepwise.max_height; in get_frame_sizes()
278 s.step_h = v4lfrms.stepwise.step_height; in get_frame_sizes()