Home
last modified time | relevance | path

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

/linux/drivers/media/platform/st/sti/bdisp/
H A 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/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_sspp.h151 struct drm_rect src_rect; member
367 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_setup_rects_impl()
368 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_setup_rects_impl()
369 drm_rect_width(&cfg->src_rect); in dpu_hw_setup_rects_impl()
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-vid-cap.c360 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
361 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
381 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
382 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
390 dev->src_rect.width = 720; in vivid_update_format_cap()
392 dev->src_rect.height = 480; in vivid_update_format_cap()
396 dev->src_rect.height = 576; in vivid_update_format_cap()
403 dev->src_rect.width = bt->width; in vivid_update_format_cap()
404 dev->src_rect.height = bt->height; in vivid_update_format_cap()
441 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_plane.c1155 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1156 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1173 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info()
1176 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1177 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1180 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1181 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1210 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info()
1216 scaling_info->src_rect.height; in amdgpu_dm_plane_fill_dc_scaling_info()
H A Damdgpu_dm.c6323 dc_plane_state->src_rect = scaling_info.src_rect; in fill_dc_plane_attributes()
8113 dc_plane_state->src_rect.height = stream->src.height; in dm_validate_stream_and_context()
8114 dc_plane_state->src_rect.width = stream->src.width; in dm_validate_stream_and_context()
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/
H A Ddml21_utils.c300 memcpy(&phantom_plane->src_rect, &main_plane->src_rect, sizeof(phantom_plane->src_rect)); in dml21_add_phantom_plane()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c1685 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1687 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1743 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1792 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1823 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
1827 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c1184 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1216 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1217 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1220 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1224 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A Ddce110_resource.c1049 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1050 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1075 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1076 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
/linux/drivers/platform/raspberrypi/vchiq-mmal/
H A Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c1191 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1307 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1506 !plane_state->src_rect.width || in resource_build_scaling_params()
1507 !plane_state->src_rect.height) { in resource_build_scaling_params()
1671 plane_state->src_rect.height, in resource_build_scaling_params()
1672 plane_state->src_rect.width, in resource_build_scaling_params()
1673 plane_state->src_rect.x, in resource_build_scaling_params()
1674 plane_state->src_rect.y, in resource_build_scaling_params()
5217 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c3103 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
3104 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
3105 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
3106 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
3262 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
3263 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn20/
H A Ddcn20_resource.c1891 pipe->plane_state->src_rect.width <= 16 || in dcn20_validate_apply_pipe_split_flags()
1892 pipe->plane_state->src_rect.height <= 16)) in dcn20_validate_apply_pipe_split_flags()
1950 && pipe->plane_state->src_rect.width <= 1920 in dcn20_validate_apply_pipe_split_flags()
1951 && pipe->plane_state->src_rect.height <= 1080) in dcn20_validate_apply_pipe_split_flags()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c1695 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1696 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1737 if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120) { in dcn31_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1701 …memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect in dcn32_enable_phantom_plane()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c1707 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn316_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc.h1514 struct rect src_rect; member
1879 struct rect src_rect; member
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/
H A Ddcn401_hwseq.c999 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn401_set_cursor_position()
1000 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn401_set_cursor_position()
1042 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn401_set_cursor_position()
1043 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn401_set_cursor_position()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/
H A Ddcn21_resource.c1391 plane_state->dcc.meta_pitch = ((plane_state->src_rect.width + 1023) / 1024) * 1024; in dcn21_patch_unknown_plane_state()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1631 pipes[pipe_cnt].pipe.src.viewport_width_max = pln->src_rect.width; in dcn20_populate_dml_pipes_from_context()
1632 pipes[pipe_cnt].pipe.src.viewport_height_max = pln->src_rect.height; in dcn20_populate_dml_pipes_from_context()