Lines Matching refs:fmt_cap_rect
105 unsigned h = dev->fmt_cap_rect.height; in vid_cap_queue_setup()
192 size = tpg_g_line_width(&dev->tpg, p) * dev->fmt_cap_rect.height + in vid_cap_buf_prepare()
471 dev->fmt_cap_rect = dev->compose_cap; in vivid_update_format_cap()
536 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap()
537 mp->height = dev->fmt_cap_rect.height; in vivid_g_fmt_vid_cap()
747 dev->fmt_cap_rect.width = mp->width; in vivid_s_fmt_vid_cap()
748 dev->fmt_cap_rect.height = mp->height; in vivid_s_fmt_vid_cap()
863 sel->r = dev->fmt_cap_rect; in vivid_vid_cap_g_selection()
899 struct v4l2_rect fmt = dev->fmt_cap_rect; in vivid_vid_cap_s_selection()
914 if (!rect_same_size(&dev->fmt_cap_rect, &fmt) && in vivid_vid_cap_s_selection()
921 dev->fmt_cap_rect = fmt; in vivid_vid_cap_s_selection()
924 struct v4l2_rect fmt = dev->fmt_cap_rect; in vivid_vid_cap_s_selection()
927 if (!rect_same_size(&dev->fmt_cap_rect, &fmt) && in vivid_vid_cap_s_selection()
930 dev->fmt_cap_rect = fmt; in vivid_vid_cap_s_selection()
933 rect_map_inside(compose, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
935 if (!rect_same_size(&s->r, &dev->fmt_cap_rect) && in vivid_vid_cap_s_selection()
938 rect_set_size_to(&dev->fmt_cap_rect, &s->r); in vivid_vid_cap_s_selection()
940 rect_map_inside(compose, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
941 tpg_s_buf_height(&dev->tpg, dev->fmt_cap_rect.height); in vivid_vid_cap_s_selection()
954 rect_set_max_size(&s->r, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()
991 rect_map_inside(&s->r, &dev->fmt_cap_rect); in vivid_vid_cap_s_selection()