Home
last modified time | relevance | path

Searched refs:src_rect (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/drivers/media/platform/sti/bdisp/
Dbdisp-hw.c765 struct v4l2_rect src_rect = src->crop; in bdisp_hw_build_node() local
777 src_rect.left += src_x_offset; in bdisp_hw_build_node()
778 src_rect.width -= src_x_offset; in bdisp_hw_build_node()
779 src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.width); in bdisp_hw_build_node()
783 dst_rect.width = (src_rect.width * dst_width) / ctx->src.crop.width; in bdisp_hw_build_node()
856 src_rect.top /= 2; in bdisp_hw_build_node()
857 src_rect.height /= 2; in bdisp_hw_build_node()
870 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
871 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
876 src_rect.top /= 2; in bdisp_hw_build_node()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_debug.c104 plane_state->src_rect.x, in pre_surface_trace()
105 plane_state->src_rect.y, in pre_surface_trace()
106 plane_state->src_rect.width, in pre_surface_trace()
107 plane_state->src_rect.height, in pre_surface_trace()
278 update->scaling_info->src_rect.x, in update_surface_trace()
279 update->scaling_info->src_rect.y, in update_surface_trace()
280 update->scaling_info->src_rect.width, in update_surface_trace()
281 update->scaling_info->src_rect.height, in update_surface_trace()
Ddc.c1167 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
1168 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
1173 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
1174 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
1177 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
1178 && u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
1183 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
1184 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
Ddc_resource.c482 struct rect surf_src = plane_state->src_rect; in calculate_viewport()
567 struct rect surf_src = plane_state->src_rect; in calculate_recout()
659 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
707 struct rect src = pipe_ctx->plane_state->src_rect; in calculate_inits_and_adj_vp()
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-vid-cap.c362 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
363 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
382 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
383 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
391 dev->src_rect.width = 720; in vivid_update_format_cap()
393 dev->src_rect.height = 480; in vivid_update_format_cap()
397 dev->src_rect.height = 576; in vivid_update_format_cap()
404 dev->src_rect.width = bt->width; in vivid_update_format_cap()
405 dev->src_rect.height = bt->height; in vivid_update_format_cap()
442 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
Dvivid-vid-common.c575 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop()
576 dev->src_rect.height != dev->sink_rect.height) in vivid_vid_can_loop()
Dvivid-core.c1013 dev->fb_cap.fmt.width = dev->src_rect.width; in vivid_create_instance()
1014 dev->fb_cap.fmt.height = dev->src_rect.height; in vivid_create_instance()
1016 dev->fb_cap.fmt.bytesperline = dev->src_rect.width * tpg_g_twopixelsize(&dev->tpg, 0) / 2; in vivid_create_instance()
1017 dev->fb_cap.fmt.sizeimage = dev->src_rect.height * dev->fb_cap.fmt.bytesperline; in vivid_create_instance()
Dvivid-core.h374 struct v4l2_rect src_rect; member
Dvivid-kthread-cap.c499 dev->src_rect.width, dev->src_rect.height, dev->input); in vivid_fillbuff()
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c176 drm_rect_width(&tmp->pipe_cfg.src_rect)); in _dpu_plane_calc_fill_level()
178 drm_rect_width(&tmp->pipe_cfg.src_rect)); in _dpu_plane_calc_fill_level()
269 drm_rect_width(&pdpu->pipe_cfg.src_rect)); in _dpu_plane_set_qos_lut()
490 ot_params.width = drm_rect_width(&pdpu->pipe_cfg.src_rect); in _dpu_plane_set_ot_limit()
491 ot_params.height = drm_rect_height(&pdpu->pipe_cfg.src_rect); in _dpu_plane_set_ot_limit()
754 drm_rect_width(&pdpu->pipe_cfg.src_rect), in _dpu_plane_setup_scaler()
755 drm_rect_height(&pdpu->pipe_cfg.src_rect), in _dpu_plane_setup_scaler()
804 pdpu->pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill()
805 pdpu->pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill()
806 pdpu->pipe_cfg.src_rect.x2 = in _dpu_plane_color_fill()
[all …]
Ddpu_hw_sspp.c465 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_sspp_setup_rects()
466 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects()
467 drm_rect_width(&cfg->src_rect); in dpu_hw_sspp_setup_rects()
Ddpu_hw_sspp.h167 struct drm_rect src_rect; member
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/
Ddc.h472 struct rect src_rect; member
529 struct rect src_rect; member
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_resource.c882 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
883 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
908 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
909 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
Ddce110_hw_sequencer.c2680 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2681 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2682 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2683 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-camera/
Dmmal-parameters.h610 struct vchiq_mmal_rect src_rect; member
/Linux-v4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1910 plane_state->src_rect.x = state->src_x >> 16; in fill_rects_from_plane_state()
1911 plane_state->src_rect.y = state->src_y >> 16; in fill_rects_from_plane_state()
1913 plane_state->src_rect.width = state->src_w >> 16; in fill_rects_from_plane_state()
1915 if (plane_state->src_rect.width == 0) in fill_rects_from_plane_state()
1918 plane_state->src_rect.height = state->src_h >> 16; in fill_rects_from_plane_state()
1919 if (plane_state->src_rect.height == 0) in fill_rects_from_plane_state()
4198 scaling_info[i].src_rect = plane_states[i]->src_rect; in commit_planes_to_stream()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c1068 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()