Lines Matching refs:src_rect

363 	    dev->src_rect.width == 720 && dev->src_rect.height <= 576)  in vivid_get_pixel_aspect()
364 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
384 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
385 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
393 dev->src_rect.width = 720; in vivid_update_format_cap()
395 dev->src_rect.height = 480; in vivid_update_format_cap()
399 dev->src_rect.height = 576; in vivid_update_format_cap()
406 dev->src_rect.width = bt->width; in vivid_update_format_cap()
407 dev->src_rect.height = bt->height; in vivid_update_format_cap()
444 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
445 dev->crop_cap = dev->src_rect; in vivid_update_format_cap()
446 dev->crop_bounds_cap = dev->src_rect; in vivid_update_format_cap()
462 dims[0] = roundup(dev->src_rect.width, PIXEL_ARRAY_DIV); in vivid_update_format_cap()
463 dims[1] = roundup(dev->src_rect.height, PIXEL_ARRAY_DIV); in vivid_update_format_cap()
589 w = dev->src_rect.width; in vivid_try_fmt_vid_cap()
590 h = dev->src_rect.height; in vivid_try_fmt_vid_cap()
608 v4l2_rect_set_max_size(&r, &dev->src_rect); in vivid_try_fmt_vid_cap()
610 v4l2_rect_set_min_size(&r, &dev->src_rect); in vivid_try_fmt_vid_cap()
884 sel->r = dev->src_rect; in vivid_vid_cap_g_selection()
930 v4l2_rect_set_max_size(&s->r, &dev->src_rect); in vivid_vid_cap_s_selection()
995 dev->src_rect.width * MAX_ZOOM, in vivid_vid_cap_s_selection()
996 (dev->src_rect.height / factor) * MAX_ZOOM in vivid_vid_cap_s_selection()
1019 v4l2_rect_set_max_size(&s->r, &dev->src_rect); in vivid_vid_cap_s_selection()
1025 v4l2_rect_set_size_to(&s->r, &dev->src_rect); in vivid_vid_cap_s_selection()
1182 if (dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vidioc_s_input()