Searched refs:src_rect (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
H A D | bdisp-hw.c | 470 struct v4l2_rect src_rect = src->crop; bdisp_hw_build_node() local 482 src_rect.left += src_x_offset; bdisp_hw_build_node() 483 src_rect.width -= src_x_offset; bdisp_hw_build_node() 484 src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.width); bdisp_hw_build_node() 488 dst_rect.width = (src_rect.width * dst_width) / ctx->src.crop.width; bdisp_hw_build_node() 561 src_rect.top /= 2; bdisp_hw_build_node() 562 src_rect.height /= 2; bdisp_hw_build_node() 575 node->s2xy = src_rect.top << 16 | src_rect.left; bdisp_hw_build_node() 576 node->s2sz = src_rect.height << 16 | src_rect.width; bdisp_hw_build_node() 581 src_rect.top /= 2; bdisp_hw_build_node() 582 src_rect.left /= 2; bdisp_hw_build_node() 583 src_rect.width /= 2; bdisp_hw_build_node() 584 src_rect.height /= 2; bdisp_hw_build_node() 597 node->s2xy = src_rect.top << 16 | src_rect.left; bdisp_hw_build_node() 598 node->s2sz = src_rect.height << 16 | src_rect.width; bdisp_hw_build_node()
|
/linux-4.4.14/drivers/media/platform/vivid/ |
H A D | vivid-vid-cap.c | 393 dev->src_rect.width == 720 && dev->src_rect.height <= 576) vivid_get_pixel_aspect() 394 return dev->src_rect.height == 480 ? vivid_get_pixel_aspect() 412 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; vivid_update_format_cap() 413 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; vivid_update_format_cap() 421 dev->src_rect.width = 720; vivid_update_format_cap() 423 dev->src_rect.height = 480; vivid_update_format_cap() 427 dev->src_rect.height = 576; vivid_update_format_cap() 434 dev->src_rect.width = bt->width; vivid_update_format_cap() 435 dev->src_rect.height = bt->height; vivid_update_format_cap() 465 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); vivid_update_format_cap() 466 dev->crop_cap = dev->src_rect; vivid_update_format_cap() 467 dev->crop_bounds_cap = dev->src_rect; vivid_update_format_cap() 585 w = dev->src_rect.width; vivid_try_fmt_vid_cap() 586 h = dev->src_rect.height; vivid_try_fmt_vid_cap() 604 rect_set_max_size(&r, &dev->src_rect); vivid_try_fmt_vid_cap() 606 rect_set_min_size(&r, &dev->src_rect); vivid_try_fmt_vid_cap() 848 sel->r = dev->src_rect; vivid_vid_cap_g_selection() 894 rect_set_max_size(&s->r, &dev->src_rect); vivid_vid_cap_s_selection() 958 dev->src_rect.width * MAX_ZOOM, vivid_vid_cap_s_selection() 959 (dev->src_rect.height / factor) * MAX_ZOOM vivid_vid_cap_s_selection() 982 rect_set_max_size(&s->r, &dev->src_rect); vivid_vid_cap_s_selection() 988 rect_set_size_to(&s->r, &dev->src_rect); vivid_vid_cap_s_selection() 1374 if (dev->src_rect.width == 720 && dev->src_rect.height <= 576) vidioc_s_input()
|
H A D | vivid-vid-common.c | 520 if (dev->src_rect.width != dev->sink_rect.width || vivid_vid_can_loop() 521 dev->src_rect.height != dev->sink_rect.height) vivid_vid_can_loop()
|
H A D | vivid-core.c | 1011 dev->fb_cap.fmt.width = dev->src_rect.width; vivid_create_instance() 1012 dev->fb_cap.fmt.height = dev->src_rect.height; vivid_create_instance() 1014 dev->fb_cap.fmt.bytesperline = dev->src_rect.width * tpg_g_twopixelsize(&dev->tpg, 0) / 2; vivid_create_instance() 1015 dev->fb_cap.fmt.sizeimage = dev->src_rect.height * dev->fb_cap.fmt.bytesperline; vivid_create_instance()
|
H A D | vivid-core.h | 370 struct v4l2_rect src_rect; member in struct:vivid_dev
|
H A D | vivid-kthread-cap.c | 510 dev->src_rect.width, dev->src_rect.height, dev->input); vivid_fillbuff()
|
Completed in 282 milliseconds