Lines Matching refs:crop
102 tpg->crop.width = tpg->compose.width = w; in tpg_init()
103 tpg->crop.height = tpg->compose.height = h; in tpg_init()
389 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, in tpg_s_crop_compose() argument
392 tpg->crop = *crop; in tpg_s_crop_compose()
395 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose()
416 tpg->crop.top = tpg->crop.left = 0; in tpg_reset_source()
417 tpg->crop.width = width; in tpg_reset_source()
418 tpg->crop.height = height; in tpg_reset_source()
1751 return tpg->crop.top + src_y * 2; in tpg_calc_frameline()
1753 return tpg->crop.top + src_y * 2 + 1; in tpg_calc_frameline()
1755 return src_y + tpg->crop.top; in tpg_calc_frameline()
1852 pr_info("tpg crop: %ux%u@%dx%d\n", tpg->crop.width, tpg->crop.height, in tpg_log_status()
1853 tpg->crop.left, tpg->crop.top); in tpg_log_status()
1912 params->wss_width = tpg->crop.left < tpg->src_width / 2 ? in tpg_fill_params_extras()
1913 tpg->src_width / 2 - tpg->crop.left : 0; in tpg_fill_params_extras()
1914 if (params->wss_width > tpg->crop.width) in tpg_fill_params_extras()
1915 params->wss_width = tpg->crop.width; in tpg_fill_params_extras()
1920 if (tpg->crop.left < tpg->border.left) { in tpg_fill_params_extras()
1921 left_pillar_width = tpg->border.left - tpg->crop.left; in tpg_fill_params_extras()
1922 if (left_pillar_width > tpg->crop.width) in tpg_fill_params_extras()
1923 left_pillar_width = tpg->crop.width; in tpg_fill_params_extras()
1928 if (tpg->crop.left + tpg->crop.width > in tpg_fill_params_extras()
1931 tpg->border.left + tpg->border.width - tpg->crop.left; in tpg_fill_params_extras()
1952 const struct v4l2_rect *c = &tpg->crop; in tpg_fill_plane_extras()
2054 unsigned line_offset = tpg_hscale_div(tpg, p, tpg->crop.left); in tpg_fill_plane_pattern()
2192 unsigned int_part = (tpg->crop.height / factor) / tpg->compose.height; in tpg_fill_plane_buffer()
2193 unsigned fract_part = (tpg->crop.height / factor) % tpg->compose.height; in tpg_fill_plane_buffer()