Lines Matching refs:fmt_cap_rect
90 unsigned h = dev->fmt_cap_rect.height; in vid_cap_queue_setup()
161 size = tpg_g_line_width(&dev->tpg, p) * dev->fmt_cap_rect.height + in vid_cap_buf_prepare()
448 dev->fmt_cap_rect = dev->compose_cap; in vivid_update_format_cap()
520 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap()
521 mp->height = dev->fmt_cap_rect.height; in vivid_g_fmt_vid_cap()
746 dev->fmt_cap_rect.width = mp->width; in vivid_s_fmt_vid_cap()
747 dev->fmt_cap_rect.height = mp->height; in vivid_s_fmt_vid_cap()
862 sel->r = dev->fmt_cap_rect; in vivid_vid_cap_g_selection()
898 struct v4l2_rect fmt = dev->fmt_cap_rect; in vivid_vid_cap_s_selection()
913 if (!v4l2_rect_same_size(&dev->fmt_cap_rect, &fmt) && in vivid_vid_cap_s_selection()
920 dev->fmt_cap_rect = fmt; in vivid_vid_cap_s_selection()
923 struct v4l2_rect fmt = dev->fmt_cap_rect; in vivid_vid_cap_s_selection()
926 if (!v4l2_rect_same_size(&dev->fmt_cap_rect, &fmt) && in vivid_vid_cap_s_selection()
929 dev->fmt_cap_rect = fmt; in vivid_vid_cap_s_selection()
932 v4l2_rect_map_inside(compose, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
934 if (!v4l2_rect_same_size(&s->r, &dev->fmt_cap_rect) && in vivid_vid_cap_s_selection()
937 v4l2_rect_set_size_to(&dev->fmt_cap_rect, &s->r); in vivid_vid_cap_s_selection()
939 v4l2_rect_map_inside(compose, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
940 tpg_s_buf_height(&dev->tpg, dev->fmt_cap_rect.height); in vivid_vid_cap_s_selection()
953 v4l2_rect_set_max_size(&s->r, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
990 v4l2_rect_map_inside(&s->r, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()