Home
last modified time | relevance | path

Searched refs:scale_x (Results 1 – 25 of 43) sorted by relevance

12

/lvgl-latest/src/draw/nxp/vglite/
Dlv_vglite_matrix.c61 bool has_scale = (dsc->scale_x != LV_SCALE_NONE || dsc->scale_y != LV_SCALE_NONE); in vglite_set_transformation_matrix()
69 vg_lite_float_t scale_x = 1.0f * dsc->scale_x / LV_SCALE_NONE; in vglite_set_transformation_matrix() local
71 vg_lite_scale(scale_x, scale_y, &_vgmatrix); in vglite_set_transformation_matrix()
Dlv_draw_vglite_layer.c78 bool has_transform = (draw_dsc->rotation != 0 || draw_dsc->scale_x != LV_SCALE_NONE || in lv_draw_vglite_layer()
85 …lv_image_buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc… in lv_draw_vglite_layer()
/lvgl-latest/src/draw/
Dlv_draw_image.c54 dsc->scale_x = LV_SCALE_NONE; in lv_draw_image_dsc_init()
68 if(dsc->scale_x <= 0 || dsc->scale_y <= 0) { in lv_draw_layer()
84 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_layer()
103 if(dsc->scale_x <= 0 || dsc->scale_y <= 0) { in lv_draw_image()
126 dsc->rotation, dsc->scale_x, dsc->scale_y, &dsc->pivot); in lv_draw_image()
160 …if(draw_dsc->rotation || draw_dsc->scale_x != LV_SCALE_NONE || draw_dsc->scale_y != LV_SCALE_NONE)… in lv_draw_image_normal_helper()
164 …lv_image_buf_get_transformed_area(&draw_area, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_ds… 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
252 if(angle == 0 && scale_x == LV_SCALE_NONE && scale_y == LV_SCALE_NONE) { in lv_image_buf_get_transformed_area()
266 lv_point_transform(&p[0], angle, scale_x, scale_y, pivot, true); in lv_image_buf_get_transformed_area()
[all …]
Dlv_draw_image_private.h75 … uint16_t scale_x, uint16_t scale_y, const lv_point_t * pivot);
Dlv_draw_image.h36 int32_t scale_x; member
Dlv_draw_label.h74 int32_t scale_x; member
/lvgl-latest/src/widgets/image/
Dlv_image.c35 static void scale_update(lv_obj_t * obj, int32_t scale_x, int32_t scale_y);
243 if(img->rotation || img->scale_x != LV_SCALE_NONE || img->scale_y != LV_SCALE_NONE) { in lv_image_set_src()
291 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
307 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_rotation()
333 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
350 … lv_image_buf_get_transformed_area(&a, w, h, img->rotation, img->scale_x, img->scale_y, &pivot_px); in lv_image_set_pivot()
367 if(zoom == img->scale_x && zoom == img->scale_y) return; in lv_image_set_scale()
383 if(zoom == img->scale_x) return; in lv_image_set_scale_x()
403 scale_update(obj, img->scale_x, zoom); in lv_image_set_scale_y()
513 return img->scale_x; in lv_image_get_scale()
[all …]
Dlv_image_private.h41 uint32_t scale_x; /**< 256 means no zoom, 512 double size, 128 half size*/ member
/lvgl-latest/src/draw/sw/arm2d/
Dlv_draw_sw_arm2d.h195 if(draw_dsc->scale_x != draw_dsc->scale_y) { in lv_draw_sw_image_helium()
341 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
355 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
388 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
400 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
418 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
427 (float)(draw_dsc->scale_x / 256.0f)); in lv_draw_sw_image_helium()
442 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
468 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
480 draw_dsc->scale_x / 256.0f, in lv_draw_sw_image_helium()
[all …]
/lvgl-latest/src/indev/
Dlv_indev_scroll.c68 int16_t scale_x = 256; in lv_indev_scroll_handler() local
75 scale_x = (scale_x * zoom_act_x) >> 8; in lv_indev_scroll_handler()
80 if(scale_x == 0) { in lv_indev_scroll_handler()
81 scale_x = 1; in lv_indev_scroll_handler()
88 if(angle != 0 || scale_x != LV_SCALE_NONE || scale_y != LV_SCALE_NONE) { in lv_indev_scroll_handler()
90 scale_x = (256 * 256) / scale_x; in lv_indev_scroll_handler()
93 lv_point_transform(&indev->pointer.vect, angle, scale_x, scale_y, &pivot, false); in lv_indev_scroll_handler()
291 int32_t scale_x = 256; in lv_indev_find_scroll_obj() local
299 scale_x = (scale_x * zoom_act_x) >> 8; in lv_indev_find_scroll_obj()
304 if(scale_x == 0) { in lv_indev_find_scroll_obj()
[all …]
Dlv_indev.c1422 int16_t scale_x = 256; in indev_proc_release() local
1430 scale_x = (scale_x * zoom_act_x) >> 8; in indev_proc_release()
1431 scale_y = (scale_x * zoom_act_y) >> 8; in indev_proc_release()
1435 if(scale_x == 0) { in indev_proc_release()
1436 scale_x = 1; in indev_proc_release()
1443 if(angle != 0 || scale_y != LV_SCALE_NONE || scale_x != LV_SCALE_NONE) { in indev_proc_release()
1445 scale_x = (256 * 256) / scale_x; in indev_proc_release()
1447 … lv_point_transform(&indev->pointer.scroll_throw_vect, angle, scale_x, scale_y, &pivot, false); in indev_proc_release()
1448 … lv_point_transform(&indev->pointer.scroll_throw_vect_ori, angle, scale_x, scale_y, &pivot, false); in indev_proc_release()
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_matrix.c106 vg_lite_error_t vg_lite_scale(vg_lite_float_t scale_x, vg_lite_float_t scale_y, vg_lite_matrix_t * … in vg_lite_scale() argument
109 vg_lite_matrix_t s = { { {scale_x, 0.0f, 0.0f}, in vg_lite_scale()
120 matrix->scaleX = matrix->scaleX * scale_x; in vg_lite_scale()
/lvgl-latest/src/draw/renesas/dave2d/
Dlv_draw_dave2d_image.c66 bool transformed = draw_dsc->rotation != 0 || draw_dsc->scale_x != LV_SCALE_NONE || in img_draw_core()
254 …lv_point_transform(&p[0], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
255 …lv_point_transform(&p[1], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
256 …lv_point_transform(&p[2], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
257 …lv_point_transform(&p[3], draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, &draw_dsc->piv… in img_draw_core()
273 if(LV_SCALE_NONE != draw_dsc->scale_x) { in img_draw_core()
274 dxu = (dxu * LV_SCALE_NONE) / draw_dsc->scale_x; in img_draw_core()
275 dxv = (dxv * LV_SCALE_NONE) / draw_dsc->scale_x; in img_draw_core()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h903 STBTT_DEF unsigned char * stbtt_GetCodepointBitmap(const stbtt_fontinfo * info, float scale_x, floa…
913 … char * stbtt_GetCodepointBitmapSubpixel(const stbtt_fontinfo * info, float scale_x, float scale_y,
919 … int out_stride, float scale_x, float scale_y, int codepoint);
926 …int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int codepoi…
931 …int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, …
936 …btt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y,
944 …void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, int codepoint, float scale_x,
951 STBTT_DEF unsigned char * stbtt_GetGlyphBitmap(const stbtt_fontinfo * info, float scale_x, float sc…
953 STBTT_DEF unsigned char * stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo * info, float scale_x, …
956 int out_stride, float scale_x, float scale_y, int glyph);
[all …]
/lvgl-latest/src/misc/
Dlv_area.c443 void lv_point_transform(lv_point_t * point, int32_t angle, int32_t scale_x, int32_t scale_y, const … in lv_point_transform() argument
446 lv_point_array_transform(point, 1, angle, scale_x, scale_y, pivot, zoom_first); in lv_point_transform()
449 void lv_point_array_transform(lv_point_t * points, size_t count, int32_t angle, int32_t scale_x, in… in lv_point_array_transform() argument
453 if(angle == 0 && scale_x == 256 && scale_y == 256) { in lv_point_array_transform()
465 points[i].x = (((int32_t)(points[i].x) * scale_x) >> 8) + pivot->x; in lv_point_array_transform()
493 if(scale_x == 256 && scale_y == 256) { in lv_point_array_transform()
499 x *= scale_x; in lv_point_array_transform()
505 … points[i].x = (((cosma * x - sinma * y) * scale_x) >> (LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->x; in lv_point_array_transform()
Dlv_matrix.h64 void lv_matrix_scale(lv_matrix_t * matrix, float scale_x, float scale_y);
Dlv_area.h173 void lv_point_transform(lv_point_t * point, int32_t angle, int32_t scale_x, int32_t scale_y, const …
186 void lv_point_array_transform(lv_point_t * points, size_t count, int32_t angle, int32_t scale_x, in…
Dlv_matrix.c76 void lv_matrix_scale(lv_matrix_t * matrix, float scale_x, float scale_y) in lv_matrix_scale() argument
79 {scale_x, 0.0f, 0.0f}, in lv_matrix_scale()
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_img.c120 …bool has_transform = (dsc->rotation != 0 || dsc->scale_x != LV_SCALE_NONE || dsc->scale_y != LV_SC… in _draw_nema_gfx_img()
219 float scale_x = 1.f * dsc->scale_x / LV_SCALE_NONE; in _draw_nema_gfx_img() local
221 nema_mat3x3_scale(m, (float)scale_x, (float)scale_y); in _draw_nema_gfx_img()
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp_layer.c81 …if(draw_dsc->rotation || draw_dsc->scale_x != LV_SCALE_NONE || draw_dsc->scale_y != LV_SCALE_NONE)… in lv_draw_pxp_layer()
85 …lv_image_buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc… in lv_draw_pxp_layer()
Dlv_draw_pxp_img.c83 …bool has_transform = (dsc->rotation != 0 || dsc->scale_x != LV_SCALE_NONE || dsc->scale_y != LV_SC… in lv_draw_pxp_img()
203 bool has_scale = (dsc->scale_x != LV_SCALE_NONE || dsc->scale_y != LV_SCALE_NONE); in _pxp_blit_transform()
243 float fp_scale_x = (float)dsc->scale_x / LV_SCALE_NONE; in _pxp_blit_transform()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_transform.c32 int32_t scale_x; member
107 tr_dsc.scale_x = draw_dsc->scale_x; 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()
758 if(t->angle == 0 && t->scale_x == LV_SCALE_NONE && t->scale_y == LV_SCALE_NONE) { in transform_point_upscaled()
768 *xout = ((int32_t)(xin * 256 * 256 / t->scale_x)) + (t->pivot_x_256); in transform_point_upscaled()
771 else if(t->scale_x == LV_SCALE_NONE && t->scale_y == LV_SCALE_NONE) { in transform_point_upscaled()
776 *xout = (((t->cosma * xin - t->sinma * yin) * 256 / t->scale_x) >> 2) + (t->pivot_x_256); in transform_point_upscaled()
/lvgl-latest/src/widgets/roller/
Dlv_roller.c877 int32_t scale_x = 256; in transform_vect_recursive() local
884 scale_x = (scale_x * zoom_act_x) >> 8; in transform_vect_recursive()
890 if(scale_x == 0) { in transform_vect_recursive()
891 scale_x = 1; in transform_vect_recursive()
898 scale_x = 256 * 256 / scale_x; in transform_vect_recursive()
900 lv_point_transform(vect, -angle, scale_x, scale_y, &pivot, false); in transform_vect_recursive()
/lvgl-latest/src/core/
Dlv_obj_pos.c1283 int32_t scale_x = lv_obj_get_style_transform_scale_x_safe(obj, 0); in transform_point_array() local
1285 if(scale_x == 0) scale_x = 1; in transform_point_array()
1288 if(angle == 0 && scale_x == LV_SCALE_NONE && scale_y == LV_SCALE_NONE) return; in transform_point_array()
1307 scale_x = (256 * 256 + scale_x - 1) / scale_x; 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/
Dlv_draw_vg_lite_img.c62 dsc->scale_x, in lv_draw_vg_lite_img()

12