Lines Matching refs:width

102 	tpg->crop.width = tpg->compose.width = w;  in tpg_init()
373 tpg->scaled_width = (tpg->src_width * tpg->compose.width + in tpg_s_crop_compose()
374 tpg->crop.width - 1) / tpg->crop.width; in tpg_s_crop_compose()
383 void tpg_reset_source(struct tpg_data *tpg, unsigned width, unsigned height, in tpg_reset_source() argument
388 tpg->src_width = width; in tpg_reset_source()
394 tpg->scaled_width = width; in tpg_reset_source()
396 tpg->crop.width = width; in tpg_reset_source()
399 tpg->compose.width = width; in tpg_reset_source()
402 tpg->bytesperline[p] = (width * tpg->twopixelsize[p]) / in tpg_reset_source()
1206 tpg->square.width = sq_w; in tpg_calculate_square_border()
1212 tpg->square.width = ana_sq_w; in tpg_calculate_square_border()
1214 tpg->square.left = (w - tpg->square.width) / 2; in tpg_calculate_square_border()
1222 tpg->border.width = w; in tpg_calculate_square_border()
1230 tpg->border.width = ((4 * h) / 3) & ~1; in tpg_calculate_square_border()
1231 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1232 tpg->border.width -= 2; in tpg_calculate_square_border()
1233 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1246 tpg->border.width = ((14 * h) / 9) & ~1; in tpg_calculate_square_border()
1247 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1248 tpg->border.width -= 2; in tpg_calculate_square_border()
1249 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1262 tpg->border.width = ((16 * h) / 9) & ~1; in tpg_calculate_square_border()
1263 if (((w - tpg->border.width) / 2) & ~1) in tpg_calculate_square_border()
1264 tpg->border.width -= 2; in tpg_calculate_square_border()
1265 tpg->border.left = (w - tpg->border.width) / 2; in tpg_calculate_square_border()
1412 if (y + 16 >= tpg->compose.height || x + 8 >= tpg->compose.width) in tpg_gen_text()
1415 if (len > (tpg->compose.width - x) / 8) in tpg_gen_text()
1416 len = (tpg->compose.width - x) / 8; in tpg_gen_text()
1420 x = tpg->compose.width - x - 8; in tpg_gen_text()
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()
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()
1739 tpg->border.left + tpg->border.width) { in tpg_fill_params_extras()
1741 tpg->border.left + tpg->border.width - tpg->crop.left; in tpg_fill_params_extras()
1787 b->left < c->left + c->width) in tpg_fill_plane_extras()
1790 if (b->left + b->width > c->left && in tpg_fill_plane_extras()
1791 b->left + b->width <= c->left + c->width) in tpg_fill_plane_extras()
1804 sq->left < c->left + c->width && in tpg_fill_plane_extras()
1805 sq->left + sq->width >= c->left) { in tpg_fill_plane_extras()
1807 unsigned width = sq->width; in tpg_fill_plane_extras() local
1810 width -= c->left - left; in tpg_fill_plane_extras()
1813 if (c->left + c->width < left + width) in tpg_fill_plane_extras()
1814 width -= left + width - c->left - c->width; in tpg_fill_plane_extras()
1817 width = tpg_hscale_div(tpg, p, width); in tpg_fill_plane_extras()
1818 memcpy(vbuf + left, tpg->contrast_line[p], width); in tpg_fill_plane_extras()
1821 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width / 3); in tpg_fill_plane_extras()
1836 unsigned offset = tpg_hdiv(tpg, p, tpg->compose.width * 2 / 3); in tpg_fill_plane_extras()
2013 params.img_width = tpg_hdiv(tpg, p, tpg->compose.width); in tpg_fill_plane_buffer()