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()
368 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop, in tpg_s_crop_compose() argument
371 tpg->crop = *crop; in tpg_s_crop_compose()
374 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose()
395 tpg->crop.top = tpg->crop.left = 0; in tpg_reset_source()
396 tpg->crop.width = width; in tpg_reset_source()
397 tpg->crop.height = height; in tpg_reset_source()
1551 return tpg->crop.top + src_y * 2; in tpg_calc_frameline()
1553 return tpg->crop.top + src_y * 2 + 1; in tpg_calc_frameline()
1555 return src_y + tpg->crop.top; in tpg_calc_frameline()
1722 params->wss_width = tpg->crop.left < tpg->src_width / 2 ? in tpg_fill_params_extras()
1723 tpg->src_width / 2 - tpg->crop.left : 0; in tpg_fill_params_extras()
1724 if (params->wss_width > tpg->crop.width) in tpg_fill_params_extras()
1725 params->wss_width = tpg->crop.width; in tpg_fill_params_extras()
1730 if (tpg->crop.left < tpg->border.left) { in tpg_fill_params_extras()
1731 left_pillar_width = tpg->border.left - tpg->crop.left; in tpg_fill_params_extras()
1732 if (left_pillar_width > tpg->crop.width) in tpg_fill_params_extras()
1733 left_pillar_width = tpg->crop.width; in tpg_fill_params_extras()
1738 if (tpg->crop.left + tpg->crop.width > in tpg_fill_params_extras()
1741 tpg->border.left + tpg->border.width - tpg->crop.left; in tpg_fill_params_extras()
1762 const struct v4l2_rect *c = &tpg->crop; in tpg_fill_plane_extras()
1864 unsigned line_offset = tpg_hscale_div(tpg, p, tpg->crop.left); in tpg_fill_plane_pattern()
2002 unsigned int_part = (tpg->crop.height / factor) / tpg->compose.height; in tpg_fill_plane_buffer()
2003 unsigned fract_part = (tpg->crop.height / factor) % tpg->compose.height; in tpg_fill_plane_buffer()