/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_vglite_matrix.c | 65 vg_lite_translate(dsc->pivot.x, dsc->pivot.y, &_vgmatrix); in vglite_set_transformation_matrix() 73 vg_lite_translate(0.0f - dsc->pivot.x, 0.0f - dsc->pivot.y, &_vgmatrix); in vglite_set_transformation_matrix()
|
/lvgl-latest/src/draw/nxp/pxp/ |
D | lv_draw_pxp_img.c | 194 lv_point_t pivot = dsc->pivot; in _pxp_blit_transform() local 220 piv_offset_x = pivot.x + pivot.y - src_h; in _pxp_blit_transform() 221 piv_offset_y = pivot.y - pivot.x; in _pxp_blit_transform() 225 piv_offset_x = 2 * pivot.x - src_w; in _pxp_blit_transform() 226 piv_offset_y = 2 * pivot.y - src_h; in _pxp_blit_transform() 230 piv_offset_x = pivot.x - pivot.y; in _pxp_blit_transform() 231 piv_offset_y = pivot.x + pivot.y - src_w; in _pxp_blit_transform() 256 piv_offset_x = floorf(fp_scale_x * piv_offset_x) - floorf((fp_scale_x - 1) * pivot.x); in _pxp_blit_transform() 257 piv_offset_y = floorf(fp_scale_y * piv_offset_y) - floorf((fp_scale_y - 1) * pivot.y); in _pxp_blit_transform()
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_image.c | 333 lv_point_t pivot; in test_image_ignore_transformation_settings_when_stretched() local 334 lv_image_get_pivot(img, &pivot); in test_image_ignore_transformation_settings_when_stretched() 335 TEST_ASSERT_EQUAL_INT(0, pivot.x); in test_image_ignore_transformation_settings_when_stretched() 336 TEST_ASSERT_EQUAL_INT(0, pivot.y); in test_image_ignore_transformation_settings_when_stretched() 357 lv_point_t pivot; in test_image_ignore_transformation_settings_when_tiled() local 358 lv_image_get_pivot(img, &pivot); in test_image_ignore_transformation_settings_when_tiled() 359 TEST_ASSERT_EQUAL_INT(0, pivot.x); in test_image_ignore_transformation_settings_when_tiled() 360 TEST_ASSERT_EQUAL_INT(0, pivot.y); in test_image_ignore_transformation_settings_when_tiled() 488 lv_point_t pivot; in test_image_properties() local 489 lv_image_get_pivot(obj, &pivot); in test_image_properties() [all …]
|
/lvgl-latest/src/draw/ |
D | lv_draw_image.c | 84 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_layer() 126 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_image() 165 &draw_dsc->pivot); in lv_draw_image_normal_helper() 250 uint16_t scale_x, uint16_t scale_y, const lv_point_t * pivot) in lv_image_buf_get_transformed_area() argument 266 lv_point_transform(&p[0], angle, scale_x, scale_y, pivot, true); in lv_image_buf_get_transformed_area() 267 lv_point_transform(&p[1], angle, scale_x, scale_y, pivot, true); in lv_image_buf_get_transformed_area() 268 lv_point_transform(&p[2], angle, scale_x, scale_y, pivot, true); in lv_image_buf_get_transformed_area() 269 lv_point_transform(&p[3], angle, scale_x, scale_y, pivot, true); in lv_image_buf_get_transformed_area()
|
D | lv_draw_label_private.h | 54 …lv_point_t pivot; /**< Rotation pivot point associated with total glyph including line_he… member
|
D | lv_draw_image_private.h | 75 … uint16_t scale_x, uint16_t scale_y, const lv_point_t * pivot);
|
D | lv_draw_image.h | 40 lv_point_t pivot; member
|
D | lv_draw_label.h | 78 lv_point_t pivot; member
|
D | lv_draw_label.c | 190 dsc->pivot.x = g.adv_w / 2 ; in lv_draw_letter() 191 dsc->pivot.y = font->line_height - font->base_line; in lv_draw_letter() 568 lv_area_move(&letter_coords, -dsc->pivot.x, -dsc->pivot.y); in lv_draw_unit_draw_letter()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_letter.c | 65 glyph_dsc.pivot = dsc->pivot; in lv_draw_sw_letter() 146 img_dsc.pivot = (lv_point_t) { in draw_letter_cb() 147 .x = glyph_draw_dsc->pivot.x, in draw_letter_cb()
|
D | lv_draw_sw_transform.c | 37 lv_point_t pivot; member 109 tr_dsc.pivot = draw_dsc->pivot; in lv_draw_sw_transform() 125 tr_dsc.pivot_x_256 = tr_dsc.pivot.x * 256; in lv_draw_sw_transform() 126 tr_dsc.pivot_y_256 = tr_dsc.pivot.y * 256; in lv_draw_sw_transform() 178 … int32_t x_max = (((src_w - 1 - draw_dsc->pivot.x) * draw_dsc->scale_x) >> 8) + draw_dsc->pivot.x; in lv_draw_sw_transform() 179 … int32_t y_max = (((src_h - 1 - draw_dsc->pivot.y) * draw_dsc->scale_y) >> 8) + draw_dsc->pivot.y; in lv_draw_sw_transform() 764 xin -= t->pivot.x; in transform_point_upscaled() 765 yin -= t->pivot.y; in transform_point_upscaled()
|
/lvgl-latest/src/widgets/image/ |
D | lv_image.c | 38 static void lv_image_set_pivot_helper(lv_obj_t * obj, lv_point_t * pivot); 325 if(img->pivot.x == x && img->pivot.y == y) return; in lv_image_set_pivot() 340 lv_point_set(&img->pivot, x, y); in lv_image_set_pivot() 497 void lv_image_get_pivot(lv_obj_t * obj, lv_point_t * pivot) in lv_image_get_pivot() argument 503 pivot->x = lv_pct_to_px(img->pivot.x, img->w); in lv_image_get_pivot() 504 pivot->y = lv_pct_to_px(img->pivot.y, img->h); in lv_image_get_pivot() 591 lv_point_set(&img->pivot, LV_PCT(50), LV_PCT(50)); /*Default pivot to image center*/ in lv_image_constructor() 659 img->rotation != 0 || img->pivot.x != img->w / 2 || img->pivot.y != img->h / 2)) { in lv_image_event() 760 lv_image_get_pivot(obj, &draw_dsc.pivot); in draw_image() 875 static void lv_image_set_pivot_helper(lv_obj_t * obj, lv_point_t * pivot) in lv_image_set_pivot_helper() argument [all …]
|
D | lv_image_private.h | 43 lv_point_t pivot; /**< Rotation center of the image*/ member
|
D | lv_image.h | 246 void lv_image_get_pivot(lv_obj_t * obj, lv_point_t * pivot);
|
/lvgl-latest/src/misc/ |
D | lv_area.c | 443 …form(lv_point_t * point, int32_t angle, int32_t scale_x, int32_t scale_y, const lv_point_t * pivot, in lv_point_transform() argument 446 lv_point_array_transform(point, 1, angle, scale_x, scale_y, pivot, zoom_first); in lv_point_transform() 450 const lv_point_t * pivot, in lv_point_array_transform() argument 458 points[i].x -= pivot->x; in lv_point_array_transform() 459 points[i].y -= pivot->y; in lv_point_array_transform() 465 points[i].x = (((int32_t)(points[i].x) * scale_x) >> 8) + pivot->x; in lv_point_array_transform() 466 points[i].y = (((int32_t)(points[i].y) * scale_y) >> 8) + pivot->y; in lv_point_array_transform() 494 points[i].x = ((cosma * x - sinma * y) >> LV_TRANSFORM_TRIGO_SHIFT) + pivot->x; in lv_point_array_transform() 495 points[i].y = ((sinma * x + cosma * y) >> LV_TRANSFORM_TRIGO_SHIFT) + pivot->y; in lv_point_array_transform() 501 … points[i].x = (((cosma * x - sinma * y)) >> (LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->x; in lv_point_array_transform() [all …]
|
D | lv_area.h | 173 …form(lv_point_t * point, int32_t angle, int32_t scale_x, int32_t scale_y, const lv_point_t * pivot, 187 const lv_point_t * pivot,
|
/lvgl-latest/src/core/ |
D | lv_refr.c | 987 lv_point_t pivot = { in obj_get_matrix() local 992 pivot.x = obj->coords.x1 + lv_pct_to_px(pivot.x, lv_area_get_width(&obj->coords)); in obj_get_matrix() 993 pivot.y = obj->coords.y1 + lv_pct_to_px(pivot.y, lv_area_get_height(&obj->coords)); in obj_get_matrix() 1007 lv_matrix_translate(matrix, pivot.x, pivot.y); in obj_get_matrix() 1024 lv_matrix_translate(matrix, -pivot.x, -pivot.y); in obj_get_matrix() 1164 lv_point_t pivot = { in refr_obj() local 1169 if(LV_COORD_IS_PCT(pivot.x)) { in refr_obj() 1170 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in refr_obj() 1172 if(LV_COORD_IS_PCT(pivot.y)) { in refr_obj() 1173 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in refr_obj() [all …]
|
D | lv_obj_pos.c | 1290 lv_point_t pivot = { in transform_point_array() local 1295 if(LV_COORD_IS_PCT(pivot.x)) { in transform_point_array() 1296 pivot.x = (LV_COORD_GET_PCT(pivot.x) * lv_area_get_width(&obj->coords)) / 100; in transform_point_array() 1298 if(LV_COORD_IS_PCT(pivot.y)) { in transform_point_array() 1299 pivot.y = (LV_COORD_GET_PCT(pivot.y) * lv_area_get_height(&obj->coords)) / 100; in transform_point_array() 1302 pivot.x = obj->coords.x1 + pivot.x; in transform_point_array() 1303 pivot.y = obj->coords.y1 + pivot.y; in transform_point_array() 1311 lv_point_array_transform(p, p_count, angle, scale_x, scale_y, &pivot, !inv); in transform_point_array()
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_draw_vg_lite_label.c | 95 glyph_dsc.pivot = dsc->pivot; in lv_draw_vg_lite_letter() 211 …vg_lite_translate(image_area.x1 + dsc->pivot.x, image_area.y1 + (dsc->g->box_h + dsc->g->ofs_y), &… in draw_letter_bitmap() 213 vg_lite_translate(-dsc->pivot.x, -dsc->g->box_h - dsc->g->ofs_y, &matrix); in draw_letter_bitmap() 320 …vg_lite_translate(pos.x - dsc->g->ofs_x + dsc->pivot.x, pos.y + dsc->g->box_h + dsc->g->ofs_y, &ma… in draw_letter_outline() 322 vg_lite_translate(-dsc->pivot.x, 0, &matrix); in draw_letter_outline()
|
D | lv_vg_lite_utils.c | 765 lv_point_t pivot = dsc->pivot; in lv_vg_lite_image_matrix() local 766 vg_lite_translate(pivot.x, pivot.y, matrix); in lv_vg_lite_image_matrix() 779 vg_lite_translate(-pivot.x, -pivot.y, matrix); in lv_vg_lite_image_matrix()
|
/lvgl-latest/examples/widgets/canvas/ |
D | lv_example_canvas_1.c | 69 img_dsc.pivot.x = CANVAS_WIDTH / 2; in lv_example_canvas_1() 70 img_dsc.pivot.y = CANVAS_HEIGHT / 2; in lv_example_canvas_1()
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_img.c | 217 nema_mat3x3_translate(m, -(float)dsc->pivot.x, -(float)dsc->pivot.y); in _draw_nema_gfx_img() 222 nema_mat3x3_translate(m, (float)dsc->pivot.x, (float)dsc->pivot.y); in _draw_nema_gfx_img()
|
/lvgl-latest/src/draw/sw/arm2d/ |
D | lv_draw_sw_arm2d.h | 322 source_center.iX = draw_dsc->pivot.x; in lv_draw_sw_image_helium() 323 source_center.iY = draw_dsc->pivot.y; in lv_draw_sw_image_helium() 325 target_center.iX += draw_dsc->pivot.x; in lv_draw_sw_image_helium() 326 target_center.iY += draw_dsc->pivot.y; in lv_draw_sw_image_helium()
|
/lvgl-latest/src/draw/renesas/dave2d/ |
D | lv_draw_dave2d_image.c | 254 …transform(&p[0], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->pivot, true); in img_draw_core() 255 …transform(&p[1], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->pivot, true); in img_draw_core() 256 …transform(&p[2], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->pivot, true); in img_draw_core() 257 …transform(&p[3], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->pivot, true); in img_draw_core()
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl.c | 362 rect.x = -draw_dsc->pivot.x; in blend_texture_layer() 363 rect.y = -draw_dsc->pivot.y; in blend_texture_layer() 366 rect.x += t->area.x1 + draw_dsc->pivot.x; in blend_texture_layer() 367 rect.y += t->area.y1 + draw_dsc->pivot.y; in blend_texture_layer() 377 SDL_Point center = {draw_dsc->pivot.x, draw_dsc->pivot.y}; in blend_texture_layer()
|