Lines Matching refs:v4lfrms
110 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()
126 best_w = v4lfrms.discrete.width; in CameraPipeline()
127 best_h = v4lfrms.discrete.height; in CameraPipeline()
130 v4lfrms.index++; in CameraPipeline()