Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/media/platform/st/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-v6.1/drivers/media/platform/renesas/rcar-vin/
Drcar-v4l2.c229 vin->src_rect.top = 0; in rvin_reset_format()
230 vin->src_rect.left = 0; in rvin_reset_format()
231 vin->src_rect.width = vin->format.width; in rvin_reset_format()
232 vin->src_rect.height = vin->format.height; in rvin_reset_format()
242 vin->crop = vin->src_rect; in rvin_reset_format()
254 struct v4l2_rect *src_rect) in rvin_try_format() argument
292 if (src_rect) { in rvin_try_format()
293 src_rect->top = 0; in rvin_try_format()
294 src_rect->left = 0; in rvin_try_format()
295 src_rect->width = pix->width; in rvin_try_format()
[all …]
Drcar-vin.h250 struct v4l2_rect src_rect; member
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_debug.c103 plane_state->src_rect.x, in pre_surface_trace()
104 plane_state->src_rect.y, in pre_surface_trace()
105 plane_state->src_rect.width, in pre_surface_trace()
106 plane_state->src_rect.height, in pre_surface_trace()
277 update->scaling_info->src_rect.x, in update_surface_trace()
278 update->scaling_info->src_rect.y, in update_surface_trace()
279 update->scaling_info->src_rect.width, in update_surface_trace()
280 update->scaling_info->src_rect.height, in update_surface_trace()
Ddc.c2294 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
2295 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
2300 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2301 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
2304 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2305 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
2310 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
2311 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
2662 surface->src_rect = in copy_surface_update_to_plane()
2663 srf_update->scaling_info->src_rect; in copy_surface_update_to_plane()
[all …]
Ddc_resource.c884 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1001 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1105 !plane_state->src_rect.width || in resource_build_scaling_params()
1106 !plane_state->src_rect.height) { in resource_build_scaling_params()
1254 plane_state->src_rect.height, in resource_build_scaling_params()
1255 plane_state->src_rect.width, in resource_build_scaling_params()
1256 plane_state->src_rect.x, in resource_build_scaling_params()
1257 plane_state->src_rect.y, in resource_build_scaling_params()
3405 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
/Linux-v6.1/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c370 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
371 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
391 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
392 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
400 dev->src_rect.width = 720; in vivid_update_format_cap()
402 dev->src_rect.height = 480; in vivid_update_format_cap()
406 dev->src_rect.height = 576; in vivid_update_format_cap()
413 dev->src_rect.width = bt->width; in vivid_update_format_cap()
414 dev->src_rect.height = bt->height; in vivid_update_format_cap()
453 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.c774 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop()
775 dev->src_rect.height != dev->sink_rect.height) in vivid_vid_can_loop()
/Linux-v6.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c156 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
157 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
202 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_clk()
291 drm_rect_width(&pipe_cfg->src_rect)); in _dpu_plane_set_qos_lut()
429 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
430 ot_params.height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
641 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
642 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
711 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill()
712 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill()
[all …]
Ddpu_hw_sspp.c474 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_sspp_setup_rects()
475 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects()
476 drm_rect_width(&cfg->src_rect); in dpu_hw_sspp_setup_rects()
Ddpu_hw_sspp.h166 struct drm_rect src_rect; member
Ddpu_trace.h644 __field_struct( struct drm_rect, src_rect )
658 __entry->src_rect = drm_plane_state_src(state);
673 DRM_RECT_FP_ARG(&__entry->src_rect),
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddcn314_fpu.c309 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn314_populate_dml_pipes_from_context_fpu()
310 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn314_populate_dml_pipes_from_context_fpu()
355 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn314_populate_dml_pipes_from_context_fpu()
357 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn314_populate_dml_pipes_from_context_fpu()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c353 pipe_ctx->plane_state->src_rect.x, in dce60_program_front_end_for_pipe()
354 pipe_ctx->plane_state->src_rect.y, in dce60_program_front_end_for_pipe()
355 pipe_ctx->plane_state->src_rect.width, in dce60_program_front_end_for_pipe()
356 pipe_ctx->plane_state->src_rect.height, in dce60_program_front_end_for_pipe()
/Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.c1056 scaling_info->src_rect.x = state->src_x >> 16; in fill_dc_scaling_info()
1057 scaling_info->src_rect.y = state->src_y >> 16; in fill_dc_scaling_info()
1074 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in fill_dc_scaling_info()
1077 scaling_info->src_rect.width = state->src_w >> 16; in fill_dc_scaling_info()
1078 if (scaling_info->src_rect.width == 0) in fill_dc_scaling_info()
1081 scaling_info->src_rect.height = state->src_h >> 16; in fill_dc_scaling_info()
1082 if (scaling_info->src_rect.height == 0) in fill_dc_scaling_info()
1111 scaling_info->src_rect.width; in fill_dc_scaling_info()
1117 scaling_info->src_rect.height; in fill_dc_scaling_info()
Damdgpu_dm_trace.h430 __entry->src_x = plane_state->src_rect.x;
431 __entry->src_y = plane_state->src_rect.y;
432 __entry->src_w = plane_state->src_rect.width;
433 __entry->src_h = plane_state->src_rect.height;
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_resource_helpers.c375 if (pipe->plane_state->src_rect.width >= 5120 && in dcn32_set_det_allocations()
376 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations()
Ddcn32_hwseq.c1354 phantom_plane->src_rect.x = pipe->plane_state->src_rect.x; in dcn32_update_phantom_vp_position()
1355 phantom_plane->src_rect.y = pipe->plane_state->src_rect.y; in dcn32_update_phantom_vp_position()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c1161 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1193 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1194 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1197 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1201 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
Ddcn10_hw_sequencer.c3399 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3400 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3423 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3425 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3428 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3430 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3447 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn10_set_cursor_position()
3448 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn10_set_cursor_position()
3495 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
3588 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
/Linux-v6.1/drivers/staging/vc04_services/vchiq-mmal/
Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_resource.c1039 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1040 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1065 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1066 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
Ddce110_hw_sequencer.c2766 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2767 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2768 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2769 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
2915 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
2916 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_resource.c1659 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1660 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1708 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn31_populate_dml_pipes_from_context()
1710 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn31_populate_dml_pipes_from_context()
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/
Ddc.h1138 struct rect src_rect; member
1219 struct rect src_rect; member

12