Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 253) sorted by relevance

1234567891011

/lvgl-3.4.0/src/widgets/
Dlv_canvas.h66 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf…
142 lv_coord_t h);
196 void lv_canvas_draw_rect(lv_obj_t * canvas, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h,
258 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) argument
259 …define LV_CANVAS_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w,… argument
260 #define LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) argument
263 #define LV_CANVAS_BUF_SIZE_ALPHA_1BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) argument
264 #define LV_CANVAS_BUF_SIZE_ALPHA_2BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) argument
265 #define LV_CANVAS_BUF_SIZE_ALPHA_4BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) argument
266 #define LV_CANVAS_BUF_SIZE_ALPHA_8BIT(w, h) LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) argument
[all …]
Dlv_line.c148 lv_coord_t h = 0; in lv_line_event() local
153 h = LV_MAX(line->point_array[i].y, h); in lv_line_event()
158 h += line_width; in lv_line_event()
160 p->y = h; in lv_line_event()
175 lv_coord_t h = lv_obj_get_height(obj); in lv_line_event() local
193 p1.y = h - line->point_array[i].y + y_ofs; in lv_line_event()
194 p2.y = h - line->point_array[i + 1].y + y_ofs; in lv_line_event()
Dlv_img.c144 header.h = size.y; in lv_img_set_src()
149 img->h = header.h; in lv_img_set_src()
152 img->pivot.y = header.h / 2; in lv_img_set_src()
180 y = y % img->h; in lv_img_set_offset_y()
200 lv_coord_t h = lv_obj_get_height(obj); in lv_img_set_angle() local
202 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle + img->angle, transf_zoom, &img->pivot); in lv_img_set_angle()
212 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle + img->angle, transf_zoom, &img->pivot); in lv_img_set_angle()
233 lv_coord_t h = lv_obj_get_height(obj); in lv_img_set_pivot() local
235 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &img->pivot); in lv_img_set_pivot()
246 _lv_img_buf_get_transformed_area(&a, w, h, transf_angle, transf_zoom, &img->pivot); in lv_img_set_pivot()
[all …]
Dlv_canvas.c66 void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument
75 canvas->dsc.header.h = h; in lv_canvas_set_buffer()
137 …y_buf(lv_obj_t * obj, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w, lv_coord_t h) in lv_canvas_copy_buf() argument
144 …if(x + w - 1 >= (lv_coord_t)canvas->dsc.header.w || y + h - 1 >= (lv_coord_t)canvas->dsc.header.h)… in lv_canvas_copy_buf()
153 for(i = 0; i < h; i++) { in lv_canvas_copy_buf()
172 int32_t dest_height = canvas->dsc.header.h; in lv_canvas_transform()
183 dsc.cfg.src_h = img->header.h; in lv_canvas_transform()
277 if(a.y2 > canvas->dsc.header.h - 1) a.y2 = canvas->dsc.header.h - 1; in lv_canvas_blur_hor()
283 a.y2 = canvas->dsc.header.h - 1; in lv_canvas_blur_hor()
302 line_img.header.h = 1; in lv_canvas_blur_hor()
[all …]
/lvgl-3.4.0/src/draw/
Dlv_img_buf.h32 #define LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
33 #define LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument
34 #define LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument
37 #define LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument
38 #define LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument
39 #define LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument
40 #define LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument
43 #define LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument
44 #define LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument
45 #define LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument
[all …]
/lvgl-3.4.0/src/extra/libs/png/
Dlodepng.h131 unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h,
136 unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h,
140 unsigned lodepng_decode24(unsigned char** out, unsigned* w, unsigned* h,
148 unsigned lodepng_decode_file(unsigned char** out, unsigned* w, unsigned* h,
153 unsigned lodepng_decode32_file(unsigned char** out, unsigned* w, unsigned* h,
157 unsigned lodepng_decode24_file(unsigned char** out, unsigned* w, unsigned* h,
181 const unsigned char* image, unsigned w, unsigned h,
186 const unsigned char* image, unsigned w, unsigned h);
190 const unsigned char* image, unsigned w, unsigned h);
199 const unsigned char* image, unsigned w, unsigned h,
[all …]
/lvgl-3.4.0/examples/widgets/canvas/
Dlv_example_canvas_2.py5 def LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h): argument
6 return int(((w / 8) + 1) * h)
8 def LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h): argument
9 return LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2
11 def LV_CANVAS_BUF_SIZE_INDEXED_1BIT(w, h): argument
12 return LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h)
/lvgl-3.4.0/src/draw/sdl/
Dlv_draw_sdl_img.c37 lv_coord_t w, h, radius; member
74 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius);
76 …_draw_img_rounded_key_t rounded_key_create(const SDL_Texture * texture, lv_coord_t w, lv_coord_t h,
152 double x = 0, y = 0, w, h; in calc_draw_part() local
158 h = th; in calc_draw_part()
164 h = header->rect.h; in calc_draw_part()
176 clipped_src->y = (int)(y + (clipped_dst->y - coords->y1) * h / coords_h); in calc_draw_part()
178 clipped_src->h = (int)(h - (coords_h - clipped_dst->h) * h / coords_h); in calc_draw_part()
230 int h = (int) dsc->header.h; in upload_img_texture() local
240 …SDL_Surface * surface = SDL_CreateRGBSurfaceFrom(data, w, h, LV_COLOR_DEPTH, w * LV_COLOR_DEPTH / … in upload_img_texture()
[all …]
Dlv_draw_sdl_stack_blur.c25 stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int cores, int …
81 void lv_stack_blur_grayscale(lv_opa_t * buf, uint16_t w, uint16_t h, uint16_t r) in lv_stack_blur_grayscale() argument
83 stack_blur_job(buf, w, h, r, 1, 0, 1); in lv_stack_blur_grayscale()
84 stack_blur_job(buf, w, h, r, 1, 0, 2); in lv_stack_blur_grayscale()
91 static void stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int… in stack_blur_job() argument
112 unsigned int hm = h - 1; in stack_blur_job()
120 unsigned int minY = core * h / cores; in stack_blur_job()
121 unsigned int maxY = (core + 1) * h / cores; in stack_blur_job()
216 for(y = 0; y < h; y++) { in stack_blur_job()
Dlv_draw_sdl_mask.c48 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_opa() local
49 lv_opa_t * mask_buf = lv_mem_buf_get(w * h); in lv_draw_sdl_mask_dump_opa()
50 for(lv_coord_t y = 0; y < h; y++) { in lv_draw_sdl_mask_dump_opa()
71 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in lv_draw_sdl_mask_dump_texture() local
73 SDL_Surface * surface = lv_sdl_create_opa_surface(mask_buf, w, h, w); in lv_draw_sdl_mask_dump_texture()
Dlv_draw_sdl_polygon.c79 lv_coord_t w = lv_area_get_width(&draw_area), h = lv_area_get_height(&draw_area); in lv_draw_sdl_polygon() local
80 …exture = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM1, w, h); in lv_draw_sdl_polygon()
87 SDL_Rect srcrect = {0, 0, w, h}, dstrect; in lv_draw_sdl_polygon()
102 lv_coord_t w = lv_area_get_width(coords), h = lv_area_get_height(coords); in dump_masks() local
103 SDL_assert(w > 0 && h > 0); in dump_masks()
104 SDL_Rect rect = {0, 0, w, h}; in dump_masks()
110 for(lv_coord_t y = 0; y < rect.h; y++) { in dump_masks()
/lvgl-3.4.0/docs/
Dexample_list.py112 for h in h1:
113 fout.write("## " + h1[h] + "\n")
115 if h == "widgets":
118 print_item(h + "/" + w, 4, d_all, fout)
119 elif h == "layouts":
122 print_item(h + "/" + l, 4, d_all, fout)
124 print_item(h, 3, d_all, fout)
/lvgl-3.4.0/docs/get-started/
Dcmake.md34 ${CMAKE_CURRENT_SOURCE_DIR}/src/lv_conf.h
45 …VGL requires a config header called [lv_conf.h](https://github.com/lvgl/lvgl/blob/master/lv_conf_t…
50 `LV_LVGL_H_INCLUDE_SIMPLE` which specifies whether to `#include "lvgl.h"` absolut or relative
54 | "lvgl.h" | "../../lvgl.h" |
56 `LV_CONF_INCLUDE_SIMPLE` which specifies whether to `#include "lv_conf.h"` and `"lv_drv_conf.h"` ab…
60 | "lv_conf.h" | "../../lv_conf.h" |
61 | "lv_drv_conf.h" | "../../lv_drv_conf.h" |
79 ${CMAKE_CURRENT_SOURCE_DIR}/src/lv_demo_conf.h
93h](https://github.com/lvgl/lvgl/blob/master/lv_conf_template.h) header demos comes with its own co…
/lvgl-3.4.0/src/misc/
Dlv_color.c151 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument
153 h = (uint32_t)((uint32_t)h * 255) / 360; in lv_color_hsv_to_rgb()
165 region = h / 43; in lv_color_hsv_to_rgb()
166 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb()
232 hsv.h = 0; in lv_color_rgb_to_hsv()
240 hsv.h = 0; in lv_color_rgb_to_hsv()
245 int32_t h; in lv_color_rgb_to_hsv() local
247 h = (((g - b) << 10) / delta) + (g < b ? (6 << 10) : 0); // between yellow & magenta in lv_color_rgb_to_hsv()
249 h = (((b - r) << 10) / delta) + (2 << 10); // between cyan & yellow in lv_color_rgb_to_hsv()
251 h = (((r - g) << 10) / delta) + (4 << 10); // between magenta & cyan in lv_color_rgb_to_hsv()
[all …]
Dlv_lru.c252 uint32_t h = cache->seed ^ key_length; in lv_lru_hash() local
260 h *= m; in lv_lru_hash()
261 h ^= k; in lv_lru_hash()
267 h ^= data[2] << 16; in lv_lru_hash()
270 h ^= data[1] << 8; in lv_lru_hash()
273 h ^= data[0]; in lv_lru_hash()
274 h *= m; in lv_lru_hash()
277 h ^= h >> 13; in lv_lru_hash()
278 h *= m; in lv_lru_hash()
279 h ^= h >> 15; in lv_lru_hash()
[all …]
/lvgl-3.4.0/env_support/cmake/
Dcustom.cmake3 "Use #include \"lvgl.h\" instead of #include \"../../lvgl.h\"" ON)
7 "Simple include of \"lv_conf.h\" and \"lv_drv_conf.h\"" ON)
11 option(LV_CONF_PATH "Path defined for lv_conf.h")
42 file(GLOB LVGL_PUBLIC_HEADERS "${CMAKE_SOURCE_DIR}/lv_conf.h"
43 "${CMAKE_SOURCE_DIR}/lvgl.h")
56 PATTERN "*.h")
/lvgl-3.4.0/scripts/
Dcode-format.cfg27 --exclude=../src/extra/libs/gif/gifdec.h
29 --exclude=../src/extra/libs/png/lodepng.h
31 --exclude=../src/extra/libs/qrcode/qrcodegen.h
33 --exclude=../src/extra/libs/sjpg/tjpgd.h
34 --exclude=../src/extra/libs/sjpg/tjpgdcnf.h
35 --exclude=../src/lv_conf_internal.h
/lvgl-3.4.0/examples/widgets/spinbox/
Dlv_example_spinbox_1.c33 lv_coord_t h = lv_obj_get_height(spinbox); in lv_example_spinbox_1() local
36 lv_obj_set_size(btn, h, h); in lv_example_spinbox_1()
42 lv_obj_set_size(btn, h, h); in lv_example_spinbox_1()
Dlv_example_spinbox_1.py18 h = spinbox.get_height() variable
21 btn.set_size(h, h)
27 btn.set_size(h, h)
/lvgl-3.4.0/demos/widgets/
Dlv_demo_widgets.py14 SDL.init(w=480,h=320)
143 h = lv.cont(parent, None)
144 h.set_layout(lv.LAYOUT.PRETTY_MID)
145 h.add_style(lv.cont.PART.MAIN, style_box)
146 h.set_drag_parent(True)
148 h.set_style_local_value_str(lv.cont.PART.MAIN, lv.STATE.DEFAULT, "Basics")
158 h.set_fit2(lv.FIT.NONE, lv.FIT.TIGHT)
159 h.set_width(grid_w)
160 btn = lv.btn(h,None)
163 button_width=h.get_width_grid(1,1)
[all …]
/lvgl-3.4.0/docs/porting/
Dproject.md16 … It contains a couple of folders but to use `lvgl` you only need `.c` and `.h` files from the `src…
40 There is a configuration header file for LVGL called **lv_conf.h**. You modify this header to set t…
42 To get `lv_conf.h` **copy lvgl/lv_conf_template.h** next to the `lvgl` directory and rename it to *…
45 |-lv_conf.h
49 …play's color depth. Note that, the examples and demos explicitly need to be enabled in `lv_conf.h`.
51 Alternatively, `lv_conf.h` can be copied to another place but then you should add the `LV_CONF_INCL…
52 In this case LVGL will attempt to include `lv_conf.h` simply with `#include "lv_conf.h"`.
54 You can even use a different name for `lv_conf.h`. The custom path can be set via the `LV_CONF_PATH…
55 For example `-DLV_CONF_PATH="/home/joe/my_project/my_custom_conf.h"`
57h`. Instead you can pass the config defines using build options. For example `"-DLV_COLOR_DEPTH=32…
[all …]
/lvgl-3.4.0/src/extra/others/snapshot/
Dlv_snapshot.c63 lv_coord_t h = lv_obj_get_height(obj); in lv_snapshot_buf_size_needed() local
66 h += ext_size * 2; in lv_snapshot_buf_size_needed()
69 return w * h * ((px_size + 7) >> 3); in lv_snapshot_buf_size_needed()
103 lv_coord_t h = lv_obj_get_height(obj); in lv_snapshot_take_to_buf() local
106 h += ext_size * 2; in lv_snapshot_take_to_buf()
149 dsc->header.h = h; in lv_snapshot_take_to_buf()
/lvgl-3.4.0/env_support/cmsis-pack/
DREADME.md5 ## STEP 1 Update 'lv_conf_cmsis.h'
7 1. Copy the **lv_conf_template.h** to '**cmsis-pack**' directory
19 3. Add including for '**RTE_Components.h**'
25 #include <stdint.h>
26 #include "RTE_Components.h"
75 #define LV_TICK_CUSTOM_INCLUDE "perf_counter.h"
81 #define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
88 10. rename '**lv_conf_template.h**' to '**lv_conf_cmsis.h**'.
/lvgl-3.4.0/src/extra/widgets/colorwheel/
Dlv_colorwheel.c99 if(hsv.h > 360) hsv.h %= 360; in lv_colorwheel_set_hsv()
106 …if(colorwheel->hsv.h == hsv.h && colorwheel->hsv.s == hsv.s && colorwheel->hsv.v == hsv.v) return … in lv_colorwheel_set_hsv()
187 return lv_color_hsv_to_rgb(colorwheel->hsv.h, colorwheel->hsv.s, colorwheel->hsv.v); in lv_colorwheel_get_rgb()
228 colorwheel->hsv.h = 0; in lv_colorwheel_constructor()
247 lv_coord_t h = lv_obj_get_height(obj); in draw_disc_grad() local
249 lv_coord_t cy = obj->coords.y1 + h / 2; in draw_disc_grad()
400 hsv_cur.h = (colorwheel->hsv.h + 1) % 360; in lv_colorwheel_event()
421 hsv_cur.h = colorwheel->hsv.h > 0 ? (colorwheel->hsv.h - 1) : 360; in lv_colorwheel_event()
508 hsv_cur.h = angle; in lv_colorwheel_event()
578 hsv_cur.h = 0; in double_click_reset()
[all …]
/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_rect.c159 int32_t h; in draw_bg() local
223 for(h = clipped_coords.y1; h <= clipped_coords.y2; h++) { in draw_bg()
224 blend_area.y1 = h; in draw_bg()
225 blend_area.y2 = h; in draw_bg()
230 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clipped_coords.x1, h, clipped_w); in draw_bg()
234 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
236 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
244 for(h = 0; h < rout; h++) { in draw_bg()
245 lv_coord_t top_y = bg_coords.y1 + h; in draw_bg()
246 lv_coord_t bottom_y = bg_coords.y2 - h; in draw_bg()
[all …]

1234567891011