/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_vglite_matrix.c | 61 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()
|
D | lv_draw_vglite_layer.c | 79 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/ |
D | lv_draw_image.c | 55 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 …]
|
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 | 37 int32_t scale_y; member
|
D | lv_draw_label.h | 75 int32_t scale_y; member
|
/lvgl-latest/src/widgets/image/ |
D | lv_image.c | 35 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 …]
|
D | lv_image_private.h | 42 uint32_t scale_y; /**< 256 means no zoom, 512 double size, 128 half size*/ member
|
/lvgl-latest/src/indev/ |
D | lv_indev_scroll.c | 69 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 …]
|
D | lv_indev.c | 1423 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/ |
D | vg_lite_matrix.c | 106 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/ |
D | lv_draw_dave2d_image.c | 67 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/ |
D | stb_truetype_htcw.h | 903 …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/ |
D | lv_area.c | 443 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()
|
D | lv_matrix.h | 64 void lv_matrix_scale(lv_matrix_t * matrix, float scale_x, float scale_y);
|
D | lv_area.h | 173 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,
|
D | lv_matrix.c | 76 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/ |
D | lv_draw_nema_gfx_img.c | 120 …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/ |
D | lv_draw_pxp_layer.c | 81 …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()
|
D | lv_draw_pxp_img.c | 83 …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/ |
D | lv_draw_sw_transform.c | 33 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()
|
D | lv_draw_sw_letter.c | 142 img_dsc.scale_y = LV_SCALE_NONE; in draw_letter_cb()
|
/lvgl-latest/src/widgets/roller/ |
D | lv_roller.c | 878 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/ |
D | lv_obj_pos.c | 1284 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/ |
D | lv_draw_vg_lite_img.c | 63 dsc->scale_y, in lv_draw_vg_lite_img()
|