Lines Matching refs:image

671     lv_svg_render_image_t * image = (lv_svg_render_image_t *)obj;  in _set_image_attr()  local
674 image->x = attr->value.fval; in _set_image_attr()
677 image->y = attr->value.fval; in _set_image_attr()
680 image->height = attr->value.fval; in _set_image_attr()
683 image->width = attr->value.fval; in _set_image_attr()
686 image->img_dsc.opa = (lv_opa_t)(attr->value.fval * 255.0f); in _set_image_attr()
691 hal_funcs.load_image(xlink, &image->img_dsc); in _set_image_attr()
697 image->ratio = attr->value.uval; in _set_image_attr()
1074 lv_svg_render_image_t * image = (lv_svg_render_image_t *)obj; in _init_image() local
1075 lv_draw_image_dsc_init(&image->img_dsc); in _init_image()
1076 image->ratio = LV_SVG_ASPECT_RATIO_XMID_YMID | LV_SVG_ASPECT_RATIO_OPT_MEET; in _init_image()
1412 lv_svg_render_image_t * image = (lv_svg_render_image_t *)obj; in _render_image() local
1413 if(!image->img_dsc.header.w || !image->img_dsc.header.h || !image->img_dsc.src) { in _render_image()
1418 …lv_area_t rc = {(int32_t)image->x, (int32_t)image->y, (int32_t)(image->x + image->width), (int32_t… in _render_image()
1424 float img_w = (float)image->img_dsc.header.w; in _render_image()
1425 float img_h = (float)image->img_dsc.header.h; in _render_image()
1426 float scale_x = image->width / img_w; in _render_image()
1427 float scale_y = image->height / img_h; in _render_image()
1430 if((image->ratio & 0x1) == LV_SVG_ASPECT_RATIO_OPT_SLICE) { in _render_image()
1433 else if((image->ratio & 0x1) == LV_SVG_ASPECT_RATIO_OPT_MEET) { in _render_image()
1437 uint32_t align = image->ratio & ~0x1; in _render_image()
1447 float tx = (image->width - img_w * scale) / 2; in _render_image()
1453 float tx = image->width - img_w * scale; in _render_image()
1459 float ty = (image->height - img_h * scale) / 2; in _render_image()
1465 float tx = (image->width - img_w * scale) / 2; in _render_image()
1466 float ty = (image->height - img_h * scale) / 2; in _render_image()
1472 float tx = image->width - img_w * scale; in _render_image()
1473 float ty = (image->height - img_h * scale) / 2; in _render_image()
1479 float ty = image->height - img_h * scale; in _render_image()
1485 float tx = (image->width - img_w * scale) / 2; in _render_image()
1486 float ty = image->height - img_h * scale; in _render_image()
1492 float tx = image->width - img_w * scale; in _render_image()
1493 float ty = image->height - img_h * scale; in _render_image()
1501 lv_vector_dsc_set_fill_image(dsc, &image->img_dsc); in _render_image()
1913 lv_svg_render_image_t * image = lv_malloc_zeroed(sizeof(lv_svg_render_image_t)); in _lv_svg_render_create() local
1914 LV_ASSERT_MALLOC(image); in _lv_svg_render_create()
1915 image->base.init = _init_image; in _lv_svg_render_create()
1916 image->base.render = _render_image; in _lv_svg_render_create()
1917 image->base.set_attr = _set_image_attr; in _lv_svg_render_create()
1918 _set_render_attrs(LV_SVG_RENDER_OBJ(image), node, state); in _lv_svg_render_create()
1919 return LV_SVG_RENDER_OBJ(image); in _lv_svg_render_create()