Lines Matching refs:width

102 	tpg->crop.width = tpg->compose.width = w;  in tpg_init()
394 tpg->scaled_width = (tpg->src_width * tpg->compose.width + in tpg_s_crop_compose()
395 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose()
404 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, in tpg_reset_source() argument
409 tpg->src_width = width; in tpg_reset_source()
415 tpg->scaled_width = width; in tpg_reset_source()
417 tpg->crop.width = width; in tpg_reset_source()
420 tpg->compose.width = width; in tpg_reset_source()
423 tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / in tpg_reset_source()
1371 tpg->square.width = sq_w; in tpg_calculate_square_border()
1377 tpg->square.width = ana_sq_w; in tpg_calculate_square_border()
1379 tpg->square.left = (w - tpg->square.width) / 2; in tpg_calculate_square_border()
1387 tpg->border.width = w; in tpg_calculate_square_border()
1395 tpg->border.width = ((4 * h) / 3) & ~1; in tpg_calculate_square_border()
1396 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1397 tpg->border.width -= 2; in tpg_calculate_square_border()
1398 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1411 tpg->border.width = ((14 * h) / 9) & ~1; in tpg_calculate_square_border()
1412 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1413 tpg->border.width -= 2; in tpg_calculate_square_border()
1414 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1427 tpg->border.width = ((16 * h) / 9) & ~1; in tpg_calculate_square_border()
1428 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1429 tpg->border.width -= 2; in tpg_calculate_square_border()
1430 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1658 if (y + 16 >= tpg->compose.height || x + 8 >= tpg->compose.width) in tpg_gen_text()
1661 if (len > (tpg->compose.width - x) / 8) in tpg_gen_text()
1662 len = (tpg->compose.width - x) / 8; in tpg_gen_text()
1666 x = tpg->compose.width - x - 8; in tpg_gen_text()
1852 pr_info("tpg crop: %ux%u@%dx%d\n", tpg->crop.width, tpg->crop.height, in tpg_log_status()
1854 pr_info("tpg compose: %ux%u@%dx%d\n", tpg->compose.width, tpg->compose.height, in tpg_log_status()
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()
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()
1929 tpg->border.left + tpg->border.width) { in tpg_fill_params_extras()
1931 tpg->border.left + tpg->border.width - tpg->crop.left; in tpg_fill_params_extras()
1977 b->left < c->left + c->width) in tpg_fill_plane_extras()
1980 if (b->left + b->width > c->left && in tpg_fill_plane_extras()
1981 b->left + b->width <= c->left + c->width) in tpg_fill_plane_extras()
1994 sq->left < c->left + c->width && in tpg_fill_plane_extras()
1995 sq->left + sq->width >= c->left) { in tpg_fill_plane_extras()
1997 unsigned width = sq->width; in tpg_fill_plane_extras() local
2000 width -= c->left - left; in tpg_fill_plane_extras()
2003 if (c->left + c->width < left + width) in tpg_fill_plane_extras()
2004 width -= left + width - c->left - c->width; in tpg_fill_plane_extras()
2007 width = tpg_hscale_div(tpg, p, width); in tpg_fill_plane_extras()
2008 memcpy(vbuf + left, tpg->contrast_line[p], width); in tpg_fill_plane_extras()
2011 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width / 3); in tpg_fill_plane_extras()
2026 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width * 2 / 3); in tpg_fill_plane_extras()
2203 params.img_width = tpg_hdiv(tpg, p, tpg->compose.width); in tpg_fill_plane_buffer()