Home
last modified time | relevance | path

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

/lvgl-3.4.0/src/widgets/
Dlv_img.c157 if(img->angle || img->zoom != LV_IMG_ZOOM_NONE) lv_obj_refresh_ext_draw_size(obj); in lv_img_set_src()
194 transf_zoom = ((int32_t)transf_zoom * img->zoom) >> 8; in lv_img_set_angle()
226 transf_zoom = ((int32_t)transf_zoom * img->zoom) >> 8; in lv_img_set_pivot()
254 void lv_img_set_zoom(lv_obj_t * obj, uint16_t zoom) in lv_img_set_zoom() argument
257 if(zoom == img->zoom) return; in lv_img_set_zoom()
259 if(zoom == 0) zoom = 1; in lv_img_set_zoom()
270 …_lv_img_buf_get_transformed_area(&a, w, h, transf_angle, ((int32_t)transf_zoom * img->zoom) >> 8, … in lv_img_set_zoom()
277 img->zoom = zoom; in lv_img_set_zoom()
280 …_lv_img_buf_get_transformed_area(&a, w, h, transf_angle, ((int32_t)transf_zoom * img->zoom) >> 8, … in lv_img_set_zoom()
362 return img->zoom; in lv_img_get_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.h159 void lv_canvas_transform(lv_obj_t * canvas, lv_img_dsc_t * img, int16_t angle, uint16_t zoom, lv_co…
Dlv_canvas.c160 void lv_canvas_transform(lv_obj_t * obj, lv_img_dsc_t * img, int16_t angle, uint16_t zoom, lv_coord… in lv_canvas_transform() argument
180 dsc.cfg.zoom = zoom; in lv_canvas_transform()
253 LV_UNUSED(zoom); in lv_canvas_transform()
Dlv_slider.c291 lv_coord_t zoom = lv_obj_get_style_transform_zoom(obj, LV_PART_KNOB); in lv_slider_event() local
295 knob_size = (knob_size * zoom) >> 8; in lv_slider_event()
/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_img.c56 if(!mask_any && draw_dsc->angle == 0 && draw_dsc->zoom == LV_IMG_ZOOM_NONE && in lv_draw_sw_img_decoded()
87 bool transform = draw_dsc->angle != 0 || draw_dsc->zoom != LV_IMG_ZOOM_NONE ? true : false; in lv_draw_sw_img_decoded()
164 trans_dsc.cfg.zoom = draw_dsc->zoom; in lv_draw_sw_img_decoded()
189 … draw_dsc->zoom != LV_IMG_ZOOM_NONE) ? LV_DRAW_MASK_RES_CHANGED : LV_DRAW_MASK_RES_FULL_COVER; in lv_draw_sw_img_decoded()
298 … draw_dsc->zoom != LV_IMG_ZOOM_NONE) ? LV_DRAW_MASK_RES_CHANGED : LV_DRAW_MASK_RES_FULL_COVER; in lv_draw_sw_img_decoded()
/lvgl-3.4.0/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_utils.h45 void lv_area_zoom_to_sdl_rect(const lv_area_t * in, SDL_Rect * out, uint16_t zoom, const lv_point_t…
Dlv_draw_sdl_img.c118 draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_img_core()
/lvgl-3.4.0/examples/widgets/img/
Dindex.rst16 Rotate and zoom
/lvgl-3.4.0/src/draw/
Dlv_draw_img.h35 uint16_t zoom; member
Dlv_draw_img.c51 dsc->zoom = LV_IMG_ZOOM_NONE; in lv_draw_img_dsc_init()
255 if(draw_dsc->angle || draw_dsc->zoom != LV_IMG_ZOOM_NONE) { in decode_and_draw()
259 …_lv_img_buf_get_transformed_area(&map_area_rot, w, h, draw_dsc->angle, draw_dsc->zoom, &draw_dsc->… in decode_and_draw()
Dlv_img_buf.c458 dsc->tmp.zoom_inv = (((256 * 256) << _LV_ZOOM_INV_UPSCALE) + dsc->cfg.zoom / 2) / dsc->cfg.zoom; in _lv_img_buf_transform_init()
474 …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
478 if(angle == 0 && zoom == LV_IMG_ZOOM_NONE) { in _lv_img_buf_get_transformed_area()
486 res->x1 = (((int32_t)(-pivot->x) * zoom) >> 8) - 1; in _lv_img_buf_get_transformed_area()
487 res->y1 = (((int32_t)(-pivot->y) * zoom) >> 8) - 1; in _lv_img_buf_get_transformed_area()
488 res->x2 = (((int32_t)(w - pivot->x) * zoom) >> 8) + 2; in _lv_img_buf_get_transformed_area()
489 res->y2 = (((int32_t)(h - pivot->y) * zoom) >> 8) + 2; in _lv_img_buf_get_transformed_area()
550 LV_UNUSED(zoom); in _lv_img_buf_get_transformed_area()
579 if(dsc->cfg.zoom == LV_IMG_ZOOM_NONE) { in _lv_img_buf_transform()
Dlv_img_buf.h149 uint16_t zoom; /*256 no zoom, 128 half size, 512 double size*/ member
299 …buf_get_transformed_area(lv_area_t * res, lv_coord_t w, lv_coord_t h, int16_t angle, uint16_t zoom,
/lvgl-3.4.0/docs/widgets/core/
Dcanvas.md12 Additionally "effects" can be applied, such as rotation, zoom and blur.
67 - `zoom` zoom factor (256: no zoom, 512: double size, 128: half size);
Dimg.md84 …m_zoom` and `transform_angle` style properties are also used to determine the final zoom and angle.
/lvgl-3.4.0/demos/benchmark/
Dlv_demo_benchmark.c81 static void img_create(lv_style_t * style, const void * src, bool rotate, bool zoom, bool aa);
885 static void img_create(lv_style_t * style, const void * src, bool rotate, bool zoom, bool aa) in img_create() argument
896 if(zoom) lv_img_set_zoom(obj, rnd_next(IMG_ZOOM_MIN, IMG_ZOOM_MAX)); in img_create()
/lvgl-3.4.0/docs/widgets/extra/
Dchart.md117 If `factor` is 256 there is no zoom. 512 means double zoom, etc. Fractional values are also possibl…
/lvgl-3.4.0/demos/music/
Dlv_demo_music_main.c109 static void _img_set_zoom_anim_cb(void * obj, int32_t zoom) { in _img_set_zoom_anim_cb() argument
110 lv_img_set_zoom((lv_obj_t*)obj, (uint16_t)zoom); in _img_set_zoom_anim_cb()
/lvgl-3.4.0/src/core/
Dlv_obj_draw.c234 draw_dsc->zoom = LV_IMG_ZOOM_NONE; in lv_obj_init_draw_img_dsc()
/lvgl-3.4.0/docs/
DCHANGELOG.md435 - fix(zoom) multiplication overflow on 16-bit platforms [`2536`](https://github.com/lvgl/lvgl/pull/…
571 - fix(chart) be sure the chart doesn't remain scrolled out on zoom out [`ad5b1bd`](https://github.c…
1323 - `lv_img` fix invalidation area when angle or zoom changes
1392 - `lv_img_set_zoom`: set image object's zoom factor
/lvgl-3.4.0/docs/overview/
Dstyle-props.md124 Zoom image-like objects. Multiplied with the zoom set on the object. The value 256 (or `LV_IMG_ZOOM…