Searched refs:fival (Results 1 – 7 of 7) sorted by relevance
874 struct v4l2_frmivalenum *fival = arg; in uvc_v4l2_do_ioctl() local882 fival->pixel_format) { in uvc_v4l2_do_ioctl()891 if (format->frame[i].wWidth == fival->width && in uvc_v4l2_do_ioctl()892 format->frame[i].wHeight == fival->height) { in uvc_v4l2_do_ioctl()901 if (fival->index >= frame->bFrameIntervalType) in uvc_v4l2_do_ioctl()904 fival->type = V4L2_FRMIVAL_TYPE_DISCRETE; in uvc_v4l2_do_ioctl()905 fival->discrete.numerator = in uvc_v4l2_do_ioctl()906 frame->dwFrameInterval[fival->index]; in uvc_v4l2_do_ioctl()907 fival->discrete.denominator = 10000000; in uvc_v4l2_do_ioctl()908 uvc_simplify_fraction(&fival->discrete.numerator, in uvc_v4l2_do_ioctl()[all …]
1637 struct v4l2_frmivalenum *fival) in vidioc_enum_frameintervals() argument1643 fmt = vivid_get_format(dev, fival->pixel_format); in vidioc_enum_frameintervals()1650 if (fival->index) in vidioc_enum_frameintervals()1652 if (fival->width < MIN_WIDTH || fival->width > MAX_WIDTH * MAX_ZOOM) in vidioc_enum_frameintervals()1654 if (fival->height < MIN_HEIGHT || fival->height > MAX_HEIGHT * MAX_ZOOM) in vidioc_enum_frameintervals()1656 fival->type = V4L2_FRMIVAL_TYPE_CONTINUOUS; in vidioc_enum_frameintervals()1657 fival->stepwise.min = tpf_min; in vidioc_enum_frameintervals()1658 fival->stepwise.max = tpf_max; in vidioc_enum_frameintervals()1659 fival->stepwise.step = step; in vidioc_enum_frameintervals()1664 if (fival->width == webcam_sizes[i].width && in vidioc_enum_frameintervals()[all …]
67 int vidioc_enum_frameintervals(struct file *file, void *priv, struct v4l2_frmivalenum *fival);
603 struct v4l2_frmivalenum *fival) in cpia2_enum_frameintervals() argument609 if (fival->pixel_format != V4L2_PIX_FMT_MJPEG && in cpia2_enum_frameintervals()610 fival->pixel_format != V4L2_PIX_FMT_JPEG) in cpia2_enum_frameintervals()617 if (fival->index > max) in cpia2_enum_frameintervals()620 if (fival->width == cpia2_framesizes[i].width && in cpia2_enum_frameintervals()621 fival->height == cpia2_framesizes[i].height) in cpia2_enum_frameintervals()625 fival->type = V4L2_FRMIVAL_TYPE_DISCRETE; in cpia2_enum_frameintervals()626 fival->discrete = framerate_controls[fival->index].period; in cpia2_enum_frameintervals()
557 struct v4l2_frmivalenum *fival) in vidioc_enum_frameintervals() argument563 if (fival->index > 4) in vidioc_enum_frameintervals()566 if (!valid_pixelformat(fival->pixel_format)) in vidioc_enum_frameintervals()572 if (fival->width == ((width >> i) & ~0xf) && in vidioc_enum_frameintervals()573 fival->height == ((height >> i) & ~0xf)) in vidioc_enum_frameintervals()578 fival->type = V4L2_FRMIVAL_TYPE_DISCRETE; in vidioc_enum_frameintervals()579 fival->discrete.numerator = 1001 * (fival->index + 1); in vidioc_enum_frameintervals()580 fival->discrete.denominator = go->sensor_framerate; in vidioc_enum_frameintervals()
951 struct v4l2_frmivalenum *fival) in pwc_enum_frameintervals() argument958 if (pwc_image_sizes[i][0] == fival->width && in pwc_enum_frameintervals()959 pwc_image_sizes[i][1] == fival->height) { in pwc_enum_frameintervals()966 if (size < 0 || fival->pixel_format != V4L2_PIX_FMT_YUV420) in pwc_enum_frameintervals()969 i = pwc_get_fps(pdev, fival->index, size); in pwc_enum_frameintervals()973 fival->type = V4L2_FRMIVAL_TYPE_DISCRETE; in pwc_enum_frameintervals()974 fival->discrete.numerator = 1; in pwc_enum_frameintervals()975 fival->discrete.denominator = i; in pwc_enum_frameintervals()
1233 struct v4l2_frmivalenum *fival) in vidioc_enum_frameintervals() argument1236 int mode = wxh_to_mode(gspca_dev, fival->width, fival->height); in vidioc_enum_frameintervals()1243 if (fival->pixel_format != in vidioc_enum_frameintervals()1248 if (fival->index == i) { in vidioc_enum_frameintervals()1249 fival->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_frameintervals()1250 fival->discrete.numerator = 1; in vidioc_enum_frameintervals()1251 fival->discrete.denominator = in vidioc_enum_frameintervals()