Home
last modified time | relevance | path

Searched refs:zoom (Results 1 – 25 of 39) sorted by relevance

12

/lvgl-latest/src/widgets/
Dlv_img.c158 if(img->angle || img->zoom != LV_IMG_ZOOM_NONE) lv_obj_refresh_ext_draw_size(obj); in lv_img_set_src()
195 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
211 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_angle()
228 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
245 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom, &img->pivot); in lv_img_set_pivot()
253 void lv_img_set_zoom(lv_obj_t * obj, uint16_t zoom) in lv_img_set_zoom() argument
256 if(zoom == img->zoom) return; in lv_img_set_zoom()
258 if(zoom == 0) zoom = 1; in lv_img_set_zoom()
264 _lv_img_buf_get_transformed_area(&a, w, h, img->angle, img->zoom >> 8, &img->pivot); in lv_img_set_zoom()
271 img->zoom = zoom; in lv_img_set_zoom()
[all …]
Dlv_img.h48 uint16_t zoom; /*256 means no zoom, 512 double size, 128 half size*/ member
142 void lv_img_set_zoom(lv_obj_t * obj, uint16_t zoom);
Dlv_canvas.h158 void lv_canvas_transform(lv_obj_t * canvas, lv_img_dsc_t * img, int16_t angle, uint16_t zoom, lv_co…
Dlv_canvas.c161 void lv_canvas_transform(lv_obj_t * obj, lv_img_dsc_t * src_img, int16_t angle, uint16_t zoom, lv_c… in lv_canvas_transform() argument
178 draw_dsc.zoom = zoom; in lv_canvas_transform()
214 LV_UNUSED(zoom); in lv_canvas_transform()
/lvgl-latest/src/core/
Dlv_indev_scroll.c66 int16_t zoom = 256; in _lv_indev_scroll_handler() local
70 zoom *= (lv_obj_get_style_transform_zoom(parent, 0) / 256); in _lv_indev_scroll_handler()
74 if(angle != 0 || zoom != LV_IMG_ZOOM_NONE) { in _lv_indev_scroll_handler()
76 zoom = (256 * 256) / zoom; in _lv_indev_scroll_handler()
78 lv_point_transform(&proc->types.pointer.vect, angle, zoom, &pivot); in _lv_indev_scroll_handler()
281 int32_t zoom = 256; in find_scroll_obj() local
287 zoom = (zoom * zoom_act) >> 8; in find_scroll_obj()
292 if(angle != 0 || zoom != LV_IMG_ZOOM_NONE) { in find_scroll_obj()
294 zoom = (256 * 256) / zoom; in find_scroll_obj()
295 lv_point_transform(&obj_scroll_sum, angle, zoom, &pivot); in find_scroll_obj()
Dlv_obj_style.h241 int16_t zoom = lv_obj_get_style_transform_zoom(obj, part); in lv_obj_get_style_transform_zoom_safe() local
242 return zoom != 0 ? zoom : 1; in lv_obj_get_style_transform_zoom_safe()
Dlv_indev.c990 int16_t zoom = 256; in indev_proc_release() local
995 zoom *= (lv_obj_get_style_transform_zoom(parent, 0) / 256); in indev_proc_release()
999 if(angle != 0 || zoom != LV_IMG_ZOOM_NONE) { in indev_proc_release()
1001 zoom = (256 * 256) / zoom; in indev_proc_release()
1002 lv_point_transform(&proc->types.pointer.scroll_throw_vect, angle, zoom, &pivot); in indev_proc_release()
1003 lv_point_transform(&proc->types.pointer.scroll_throw_vect_ori, angle, zoom, &pivot); in indev_proc_release()
Dlv_obj_pos.c1156 int16_t zoom = lv_obj_get_style_transform_zoom(obj, 0); in transform_point() local
1158 if(angle == 0 && zoom == LV_IMG_ZOOM_NONE) return; in transform_point()
1177 zoom = (256 * 256) / zoom; in transform_point()
1180 lv_point_transform(p, angle, zoom, &pivot); in transform_point()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_transform.c29 int32_t zoom; member
88 tr_dsc.zoom = (256 * 256) / draw_dsc->zoom; in lv_draw_sw_transform()
470 if(t->angle == 0 && t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled()
480 *xout = ((int32_t)(xin * t->zoom)) + (t->pivot_x_256); in transform_point_upscaled()
481 *yout = ((int32_t)(yin * t->zoom)) + (t->pivot_y_256); in transform_point_upscaled()
483 else if(t->zoom == LV_IMG_ZOOM_NONE) { in transform_point_upscaled()
488 *xout = (((t->cosma * xin - t->sinma * yin) * t->zoom) >> 10) + (t->pivot_x_256); in transform_point_upscaled()
489 *yout = (((t->sinma * xin + t->cosma * yin) * t->zoom) >> 10) + (t->pivot_y_256); in transform_point_upscaled()
Dlv_draw_sw_img.c54 bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false; in lv_draw_sw_img_decoded()
134 draw_dsc->zoom != LV_IMG_ZOOM_NONE) ? in lv_draw_sw_img_decoded()
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_utils.c95 void lv_area_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t… in lv_area_zoom_to_sdl_rect() argument
97 if(zoom == LV_IMG_ZOOM_NONE) { in lv_area_zoom_to_sdl_rect()
102 …_lv_img_buf_get_transformed_area(&tmp, lv_area_get_width(in), lv_area_get_height(in), 0, zoom, piv… in lv_area_zoom_to_sdl_rect()
Dlv_draw_sdl_layer.c99 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_act, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend()
102 … lv_area_zoom_to_sdl_rect(&layer_ctx->area_full, &trans_rect, draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_layer_blend()
Dlv_draw_sdl_utils.h45 void lv_area_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t…
/lvgl-latest/src/draw/
Dlv_img_buf.c352 …buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t h, int16_t angle, uint16_t zoom, in _lv_img_buf_get_transformed_area() argument
356 if(angle == 0 && zoom == LV_IMG_ZOOM_NONE) { in _lv_img_buf_get_transformed_area()
370 lv_point_transform(&p[0], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
371 lv_point_transform(&p[1], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
372 lv_point_transform(&p[2], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
373 lv_point_transform(&p[3], angle, zoom, pivot); in _lv_img_buf_get_transformed_area()
381 LV_UNUSED(zoom); in _lv_img_buf_get_transformed_area()
Dlv_draw_img.c52 dsc->zoom = LV_IMG_ZOOM_NONE; in lv_draw_img_dsc_init()
258 if(draw_dsc->angle || draw_dsc->zoom != LV_IMG_ZOOM_NONE) {
275 if(draw_dsc->angle || draw_dsc->zoom != LV_IMG_ZOOM_NONE) {
279 …_lv_img_buf_get_transformed_area(&map_area_rot, w, h, draw_dsc->angle, draw_dsc->zoom, &draw_dsc->…
Dlv_draw_img.h35 uint16_t zoom; member
Dlv_img_buf.h237 …buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t h, int16_t angle, uint16_t zoom,
/lvgl-latest/src/misc/
Dlv_area.c532 void lv_point_transform(lv_point_t * p, int32_t angle, int32_t zoom, const lv_point_t * pivot) in lv_point_transform() argument
534 if(angle == 0 && zoom == 256) { in lv_point_transform()
542 p->x = (((int32_t)(p->x) * zoom) >> 8) + pivot->x; in lv_point_transform()
543 p->y = (((int32_t)(p->y) * zoom) >> 8) + pivot->y; in lv_point_transform()
573 if(zoom == 256) { in lv_point_transform()
578 p->x = (((cosma * x - sinma * y) * zoom) >> (_LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->x; in lv_point_transform()
579 p->y = (((sinma * x + cosma * y) * zoom) >> (_LV_TRANSFORM_TRIGO_SHIFT + 8)) + pivot->y; in lv_point_transform()
Dlv_area.h247 void lv_point_transform(lv_point_t * p, int32_t angle, int32_t zoom, const lv_point_t * pivot);
/lvgl-latest/examples/widgets/img/
Dindex.rst16 Rotate and zoom
/lvgl-latest/src/draw/renesas/
Dlv_gpu_d2_ra6m3.c497 if(img_dsc.zoom != LV_IMG_ZOOM_NONE) {
498 …img_area_scaled.x1 = src_area->x1 + ((((int32_t)0 - img_dsc.pivot.x) * img_dsc.zoom) >> 8) + img_d…
499 …img_area_scaled.x2 = src_area->x1 + ((((int32_t)w - img_dsc.pivot.x) * img_dsc.zoom) >> 8) + img_d…
500 …img_area_scaled.y1 = src_area->y1 + ((((int32_t)0 - img_dsc.pivot.y) * img_dsc.zoom) >> 8) + img_d…
501 …img_area_scaled.y2 = src_area->y1 + ((((int32_t)h - img_dsc.pivot.y) * img_dsc.zoom) >> 8) + img_d…
560 pivot_scaled_x = (img_dsc.pivot.x * img_dsc.zoom) >> 4;
561 pivot_scaled_y = (img_dsc.pivot.y * img_dsc.zoom) >> 4;
636 …flags |= ((img_dsc.angle || img_dsc.zoom != LV_IMG_ZOOM_NONE) && img_dsc.antialias) ? d2_bf_filter…
/lvgl-latest/docs/widgets/core/
Dcanvas.md8 Additionally "effects" can be applied, such as rotation, zoom and blur.
63 - `zoom` zoom factor (256: no zoom, 512: double size, 128: half size);
/lvgl-latest/src/draw/arm2d/
Dlv_gpu_arm2d.c906 bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false; in lv_draw_arm2d_img_decoded()
993 draw_dsc->zoom != LV_IMG_ZOOM_NONE) ? in lv_draw_arm2d_img_decoded()
1283 draw_dsc->zoom / 256.0f, in lv_draw_arm2d_img_decoded()
1301 draw_dsc->zoom / 256.0f, in lv_draw_arm2d_img_decoded()
1326 draw_dsc->zoom / 256.0f, in lv_draw_arm2d_img_decoded()
1355 draw_dsc->zoom / 256.0f, in lv_draw_arm2d_img_decoded()
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_pxp.c200 bool has_scale = (dsc->zoom != LV_IMG_ZOOM_NONE); in lv_draw_pxp_img_decoded()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_blend.c588 bool has_scale = (dsc->zoom != LV_IMG_ZOOM_NONE); in lv_vglite_set_transformation_matrix()
595 vg_lite_float_t scale = 1.0f * dsc->zoom / LV_IMG_ZOOM_NONE; in lv_vglite_set_transformation_matrix()

12