Lines Matching refs:radius
55 static void circ_init(lv_point_t * c, lv_coord_t * tmp, lv_coord_t radius);
58 static void circ_calc_aa4(_lv_draw_mask_radius_circle_dsc_t * c, lv_coord_t radius);
268 … if(!_lv_area_is_out(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any()
271 … if(!_lv_area_is_in(a, &radius_param->cfg.rect, radius_param->cfg.radius)) return true; in lv_draw_mask_is_any()
475 …dius_init(lv_draw_mask_radius_param_t * param, const lv_area_t * rect, lv_coord_t radius, bool inv) in lv_draw_mask_radius_init() argument
480 if(radius > short_side >> 1) radius = short_side >> 1; in lv_draw_mask_radius_init()
481 if(radius < 0) radius = 0; in lv_draw_mask_radius_init()
484 param->cfg.radius = radius; in lv_draw_mask_radius_init()
489 if(radius == 0) { in lv_draw_mask_radius_init()
498 if(LV_GC_ROOT(_lv_circle_cache[i]).radius == radius) { in lv_draw_mask_radius_init()
500 CIRCLE_CACHE_AGING(LV_GC_ROOT(_lv_circle_cache[i]).life, radius); in lv_draw_mask_radius_init()
524 CIRCLE_CACHE_AGING(entry->life, radius); in lv_draw_mask_radius_init()
529 circ_calc_aa4(param->circle, radius); in lv_draw_mask_radius_init()
1057 int32_t radius = p->cfg.radius; in lv_draw_mask_radius() local
1072 if((abs_x >= rect.x1 + radius && abs_x + len <= rect.x2 - radius) || in lv_draw_mask_radius()
1073 (abs_y >= rect.y1 + radius && abs_y <= rect.y2 - radius)) { in lv_draw_mask_radius()
1119 if(abs_y < radius) { in lv_draw_mask_radius()
1120 cir_y = radius - abs_y - 1; in lv_draw_mask_radius()
1123 cir_y = abs_y - (h - radius); in lv_draw_mask_radius()
1126 lv_coord_t cir_x_right = k + w - radius + x_start; in lv_draw_mask_radius()
1127 lv_coord_t cir_x_left = k + radius - x_start - 1; in lv_draw_mask_radius()
1327 static void circ_init(lv_point_t * c, lv_coord_t * tmp, lv_coord_t radius) in circ_init() argument
1329 c->x = radius; in circ_init()
1331 *tmp = 1 - radius; in circ_init()
1362 static void circ_calc_aa4(_lv_draw_mask_radius_circle_dsc_t * c, lv_coord_t radius) in circ_calc_aa4() argument
1364 if(radius == 0) return; in circ_calc_aa4()
1365 c->radius = radius; in circ_calc_aa4()
1370 c->buf = lv_mem_alloc(radius * 6 + 6); /*Use uint16_t for opa_start_on_y and x_start_on_y*/ in circ_calc_aa4()
1373 c->opa_start_on_y = (uint16_t *)(c->buf + 2 * radius + 2); in circ_calc_aa4()
1374 c->x_start_on_y = (uint16_t *)(c->buf + 4 * radius + 4); in circ_calc_aa4()
1377 if(radius == 1) { in circ_calc_aa4()
1385 lv_coord_t * cir_x = lv_mem_buf_get((radius + 1) * 2 * 2 * sizeof(lv_coord_t)); in circ_calc_aa4()
1386 lv_coord_t * cir_y = &cir_x[(radius + 1) * 2]; in circ_calc_aa4()
1391 circ_init(&cp, &tmp, radius * 4); /*Upscale by 4*/ in circ_calc_aa4()
1466 int32_t mid = radius * 723; in circ_calc_aa4()