Lines Matching refs:params

87 #define IS_BVCMD(params) (params->op == RGZ_OUT_BVCMD_REGION || params->op == RGZ_OUT_BVCMD_PAINT)  argument
98 static int rgz_hwc_layer_blit(rgz_out_params_t *params, rgz_layer_t *rgz_layer);
101 static struct rgz_blt_entry* rgz_blts_get(struct rgz_blts *blts, rgz_out_params_t *params);
102 static int rgz_blts_bvdirect(rgz_t* rgz, struct rgz_blts *blts, rgz_out_params_t *params);
211 static void rgz_out_svg(rgz_t *rgz, rgz_out_params_t *params) in rgz_out_svg() argument
218 svgout_header(params->data.svg.htmlw, params->data.svg.htmlh, in rgz_out_svg()
219 params->data.svg.dispw, params->data.svg.disph); in rgz_out_svg()
224 svgout_hregion(&hregions[i], params->data.svg.dispw, in rgz_out_svg()
225 params->data.svg.disph); in rgz_out_svg()
270 static int rgz_out_bvdirect_paint(rgz_t *rgz, rgz_out_params_t *params) in rgz_out_bvdirect_paint() argument
280 rv = rgz_hwc_layer_blit(params, &rgz->rgz_layers[i]); in rgz_out_bvdirect_paint()
288 rgz_blts_bvdirect(rgz, &blts, params); in rgz_out_bvdirect_paint()
298 static void rgz_get_screen_info(rgz_out_params_t *params, struct bvsurfgeom **screen_geom) in rgz_get_screen_info() argument
300 *screen_geom = params->data.bvc.dstgeom; in rgz_get_screen_info()
303 static int rgz_is_blending_disabled(rgz_out_params_t *params) in rgz_is_blending_disabled() argument
305 return params->data.bvc.noblend; in rgz_is_blending_disabled()
316 static void rgz_set_dst_data(rgz_out_params_t *params, blit_rect_t *subregion_rect, in rgz_set_dst_data() argument
320 rgz_get_screen_info(params, &screen_geom); in rgz_set_dst_data()
336 static void rgz_set_src_data(rgz_out_params_t *params, rgz_layer_t *rgz_layer, in rgz_set_src_data() argument
370 static void rgz_set_clip_rect(rgz_out_params_t *params, blit_rect_t *subregion_rect, in rgz_set_clip_rect() argument
374 rgz_get_screen_info(params, &screen_geom); in rgz_set_clip_rect()
391 static void rgz_set_src2_is_dst(rgz_out_params_t *params, struct rgz_blt_entry* e) in rgz_set_src2_is_dst() argument
416 static struct rgz_blt_entry* rgz_hwc_subregion_copy(rgz_out_params_t *params, in rgz_hwc_subregion_copy() argument
419 struct rgz_blt_entry* e = rgz_blts_get(&blts, params); in rgz_hwc_subregion_copy()
434 rgz_set_src_data(params, rgz_src1, &tmp_rect, e, 0); in rgz_hwc_subregion_copy()
435 rgz_set_dst_data(params, &tmp_rect, e); in rgz_hwc_subregion_copy()
436 rgz_set_clip_rect(params, subregion_rect, e); in rgz_hwc_subregion_copy()
451 static struct rgz_blt_entry* rgz_hwc_subregion_blend(rgz_out_params_t *params, in rgz_hwc_subregion_blend() argument
454 struct rgz_blt_entry* e = rgz_blts_get(&blts, params); in rgz_hwc_subregion_blend()
469 rgz_set_src_data(params, rgz_src1, &tmp_rect, e, 0); in rgz_hwc_subregion_blend()
470 rgz_set_dst_data(params, &tmp_rect, e); in rgz_hwc_subregion_blend()
471 rgz_set_clip_rect(params, subregion_rect, e); in rgz_hwc_subregion_blend()
482 rgz_set_src_data(params, rgz_src2, subregion_rect, e, 1); in rgz_hwc_subregion_blend()
484 rgz_set_src2_is_dst(params, e); in rgz_hwc_subregion_blend()
493 static void rgz_out_clrdst(rgz_out_params_t *params, blit_rect_t *rect) in rgz_out_clrdst() argument
495 struct rgz_blt_entry* e = rgz_blts_get(&blts, params); in rgz_out_clrdst()
502 rgz_get_screen_info(params, &screen_geom); in rgz_out_clrdst()
528 rgz_set_dst_data(params, &clear_rect, e); in rgz_out_clrdst()
529 rgz_set_clip_rect(params, &clear_rect, e); in rgz_out_clrdst()
532 static int rgz_out_bvcmd_paint(rgz_t *rgz, rgz_out_params_t *params) in rgz_out_bvcmd_paint() argument
535 params->data.bvc.out_blits = 0; in rgz_out_bvcmd_paint()
536 params->data.bvc.out_nhndls = 0; in rgz_out_bvcmd_paint()
538 rgz_out_clrdst(params, NULL); in rgz_out_bvcmd_paint()
554 struct bvsurfgeom *scrgeom = params->data.bvc.dstgeom; in rgz_out_bvcmd_paint()
560 rgz_out_clrdst(params, &srcregion); in rgz_out_bvcmd_paint()
564 rv = rgz_hwc_layer_blit(params, rgz_layer); in rgz_out_bvcmd_paint()
571 params->data.bvc.out_hndls[j++] = l->handle; in rgz_out_bvcmd_paint()
572 params->data.bvc.out_nhndls++; in rgz_out_bvcmd_paint()
581 params->data.bvc.cmdp = blts.bvcmds; in rgz_out_bvcmd_paint()
582 params->data.bvc.cmdlen = blts.idx; in rgz_out_bvcmd_paint()
584 if (params->data.bvc.out_blits >= RGZ_MAX_BLITS) { in rgz_out_bvcmd_paint()
1196 static int rgz_hwc_layer_blit(rgz_out_params_t *params, rgz_layer_t *rgz_layer) in rgz_hwc_layer_blit() argument
1206 int noblend = rgz_is_blending_disabled(params); in rgz_hwc_layer_blit()
1208 rgz_hwc_subregion_blend(params, &srcregion, rgz_layer, NULL); in rgz_hwc_layer_blit()
1210 rgz_hwc_subregion_copy(params, &srcregion, rgz_layer); in rgz_hwc_layer_blit()
1290 static int rgz_hwc_subregion_blit(blit_hregion_t *hregion, int sidx, rgz_out_params_t *params) in rgz_hwc_subregion_blit() argument
1325 rgz_out_clrdst(params, &hregion->blitrects[lix][sidx]); in rgz_hwc_subregion_blit()
1343 rgz_out_clrdst(params, &hregion->blitrects[lix][sidx]); in rgz_hwc_subregion_blit()
1349 int noblend = rgz_is_blending_disabled(params); in rgz_hwc_subregion_blit()
1365 e = rgz_hwc_subregion_blend(params, rect, hregion->rgz_layers[lix], in rgz_hwc_subregion_blit()
1371 e = rgz_hwc_subregion_copy(params, rect, hregion->rgz_layers[lix]); in rgz_hwc_subregion_blit()
1380 e = rgz_hwc_subregion_blend(params, rect, hregion->rgz_layers[lix], NULL); in rgz_hwc_subregion_blit()
1404 rgz_hwc_subregion_copy(params, rect, hregion->rgz_layers[lix]); in rgz_hwc_subregion_blit()
1428 static struct rgz_blt_entry* rgz_blts_get(struct rgz_blts *blts, rgz_out_params_t *params) in rgz_blts_get() argument
1433 if (IS_BVCMD(params)) in rgz_blts_get()
1434 params->data.bvc.out_blits++; in rgz_blts_get()
1442 static int rgz_blts_bvdirect(rgz_t *rgz, struct rgz_blts *blts, rgz_out_params_t *params) in rgz_blts_bvdirect() argument
1465 static int rgz_out_region(rgz_t *rgz, rgz_out_params_t *params) in rgz_out_region() argument
1475 if (IS_BVCMD(params)) in rgz_out_region()
1476 params->data.bvc.out_blits = 0; in rgz_out_region()
1492 if (rgz_hwc_subregion_blit(hregion, s, params)) in rgz_out_region()
1499 if (IS_BVCMD(params)) { in rgz_out_region()
1501 params->data.bvc.out_nhndls = 0; in rgz_out_region()
1509 params->data.bvc.out_hndls[i++] = layer->handle; in rgz_out_region()
1510 params->data.bvc.out_nhndls++; in rgz_out_region()
1521 params->data.bvc.cmdp = blts.bvcmds; in rgz_out_region()
1522 params->data.bvc.cmdlen = blts.idx; in rgz_out_region()
1523 if (params->data.bvc.out_blits >= RGZ_MAX_BLITS) in rgz_out_region()
1527 rv = rgz_blts_bvdirect(rgz, &blts, params); in rgz_out_region()
1659 int rgz_out(rgz_t *rgz, rgz_out_params_t *params) in rgz_out() argument
1661 switch (params->op) { in rgz_out()
1663 rgz_out_svg(rgz, params); in rgz_out()
1666 return rgz_out_bvdirect_paint(rgz, params); in rgz_out()
1668 return rgz_out_bvcmd_paint(rgz, params); in rgz_out()
1671 return rgz_out_region(rgz, params); in rgz_out()