Home
last modified time | relevance | path

Searched refs:scale_y (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()
70 vg_lite_float_t scale_y = 1.0f * dsc->scale_y / 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.c79 draw_dsc->scale_y != LV_SCALE_NONE); in lv_draw_vglite_layer()
85 …buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, in lv_draw_vglite_layer()
/lvgl-latest/src/draw/
Dlv_draw_image.c55 dsc->scale_y = 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 …uf_get_transformed_area(&draw_area, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, 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.h37 int32_t scale_y; member
Dlv_draw_label.h75 int32_t scale_y; 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()
387 scale_update(obj, zoom, img->scale_y); in lv_image_set_scale_x()
399 if(zoom == img->scale_y) return; in lv_image_set_scale_y()
531 return img->scale_y; in lv_image_get_scale_y()
[all …]
Dlv_image_private.h42 uint32_t scale_y; /**< 256 means no zoom, 512 double size, 128 half size*/ member
/lvgl-latest/src/indev/
Dlv_indev_scroll.c69 int16_t scale_y = 256; in lv_indev_scroll_handler() local
76 scale_y = (scale_y * zoom_act_y) >> 8; in lv_indev_scroll_handler()
84 if(scale_y == 0) { in lv_indev_scroll_handler()
85 scale_y = 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()
91 scale_y = (256 * 256) / scale_y; in lv_indev_scroll_handler()
93 lv_point_transform(&indev->pointer.vect, angle, scale_x, scale_y, &pivot, false); in lv_indev_scroll_handler()
292 int32_t scale_y = 256; in lv_indev_find_scroll_obj() local
300 scale_y = (scale_y * zoom_act_y) >> 8; in lv_indev_find_scroll_obj()
308 if(scale_y == 0) { in lv_indev_find_scroll_obj()
[all …]
Dlv_indev.c1423 int16_t scale_y = 256; in indev_proc_release() local
1431 scale_y = (scale_x * zoom_act_y) >> 8; in indev_proc_release()
1439 if(scale_y == 0) { in indev_proc_release()
1440 scale_y = 1; in indev_proc_release()
1443 if(angle != 0 || scale_y != LV_SCALE_NONE || scale_x != LV_SCALE_NONE) { in indev_proc_release()
1446 scale_y = (256 * 256) / scale_y; 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
110 {0.0f, scale_y, 0.0f}, in vg_lite_scale()
121 matrix->scaleY = matrix->scaleY * scale_y; in vg_lite_scale()
/lvgl-latest/src/draw/renesas/dave2d/
Dlv_draw_dave2d_image.c67 draw_dsc->scale_y != LV_SCALE_NONE ? true : false; 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()
277 if(LV_SCALE_NONE != draw_dsc->scale_y) { in img_draw_core()
278 dyu = (dyu * LV_SCALE_NONE) / draw_dsc->scale_y; in img_draw_core()
279 dyv = (dyv * LV_SCALE_NONE) / draw_dsc->scale_y; in img_draw_core()
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h903 …unsigned char * stbtt_GetCodepointBitmap(const stbtt_fontinfo * info, float scale_x, float scale_y,
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,
945 … float scale_y, float shift_x, float shift_y, int * ix0, int * iy0, int * ix1, int * iy1);
951 …d char * stbtt_GetGlyphBitmap(const stbtt_fontinfo * info, float scale_x, float scale_y, int glyph,
953 …gned char * stbtt_GetGlyphBitmapSubpixel(const stbtt_fontinfo * info, float scale_x, float scale_y,
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 …array_transform(lv_point_t * points, size_t count, int32_t angle, int32_t scale_x, int32_t scale_y, in lv_point_array_transform() argument
453 if(angle == 0 && scale_x == 256 && scale_y == 256) { in lv_point_array_transform()
466 points[i].y = (((int32_t)(points[i].y) * scale_y) >> 8) + pivot->y; in lv_point_array_transform()
493 if(scale_x == 256 && scale_y == 256) { in lv_point_array_transform()
500 y *= scale_y; in lv_point_array_transform()
506 … points[i].y = (((sinma * x + cosma * y) * scale_y) >> (LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->y; 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 …array_transform(lv_point_t * points, size_t count, int32_t angle, int32_t scale_x, int32_t scale_y,
Dlv_matrix.c76 void lv_matrix_scale(lv_matrix_t * matrix, float scale_x, float scale_y) in lv_matrix_scale() argument
80 {0.0f, scale_y, 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()
220 float scale_y = 1.f * dsc->scale_y / 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 …buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->scale_y, 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()
244 float fp_scale_y = (float)dsc->scale_y / LV_SCALE_NONE; in _pxp_blit_transform()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_transform.c33 int32_t scale_y; member
108 tr_dsc.scale_y = draw_dsc->scale_y; 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()
758 if(t->angle == 0 && t->scale_x == LV_SCALE_NONE && t->scale_y == LV_SCALE_NONE) { in transform_point_upscaled()
769 *yout = ((int32_t)(yin * 256 * 256 / t->scale_y)) + (t->pivot_y_256); in transform_point_upscaled()
771 else if(t->scale_x == LV_SCALE_NONE && t->scale_y == LV_SCALE_NONE) { in transform_point_upscaled()
777 *yout = (((t->sinma * xin + t->cosma * yin) * 256 / t->scale_y) >> 2) + (t->pivot_y_256); in transform_point_upscaled()
Dlv_draw_sw_letter.c142 img_dsc.scale_y = LV_SCALE_NONE; in draw_letter_cb()
/lvgl-latest/src/widgets/roller/
Dlv_roller.c878 int32_t scale_y = 256; in transform_vect_recursive() local
885 scale_y = (scale_y * zoom_act_y) >> 8; in transform_vect_recursive()
894 if(scale_y == 0) { in transform_vect_recursive()
895 scale_y = 1; in transform_vect_recursive()
899 scale_y = 256 * 256 / scale_y; 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.c1284 int32_t scale_y = lv_obj_get_style_transform_scale_y_safe(obj, 0); in transform_point_array() local
1286 if(scale_y == 0) scale_y = 1; in transform_point_array()
1288 if(angle == 0 && scale_x == LV_SCALE_NONE && scale_y == LV_SCALE_NONE) return; in transform_point_array()
1308 scale_y = (256 * 256 + scale_y - 1) / scale_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/
Dlv_draw_vg_lite_img.c63 dsc->scale_y, in lv_draw_vg_lite_img()

12