Home
last modified time | relevance | path

Searched +full:- +full:p (Results 1 – 25 of 117) sorted by relevance

12345

/lvgl-latest/src/draw/
Dlv_draw_mask.c50 lv_draw_mask_line_param_t * p);
53 … lv_draw_mask_line_param_t * p);
107 * - `LV_DRAW_MASK_RES_FULL_TRANSP`: the whole line is transparent. `mask_buf` is not set to zero
108 * - `LV_DRAW_MASK_RES_FULL_COVER`: the whole line is fully visible. `mask_buf` is unchanged
109 …* - `LV_DRAW_MASK_RES_CHANGED`: `mask_buf` has changed, it shows the desired opacity of each pixel…
119 while(m->param) { in lv_draw_mask_apply()
120 dsc = m->param; in lv_draw_mask_apply()
122 res = dsc->cb(mask_buf, abs_x, abs_y, len, (void *)m->param); in lv_draw_mask_apply()
141 * - `LV_DRAW_MASK_RES_FULL_TRANSP`: the whole line is transparent. `mask_buf` is not set to zero
142 * - `LV_DRAW_MASK_RES_FULL_COVER`: the whole line is fully visible. `mask_buf` is unchanged
[all …]
Dlv_img_buf.c44 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_color()
46 …if(dsc->header.cf == LV_IMG_CF_TRUE_COLOR || dsc->header.cf == LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED || in lv_img_buf_get_px_color()
47 dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA || dsc->header.cf == LV_IMG_CF_RGB565A8) { in lv_img_buf_get_px_color()
48 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color()
49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
55 else if(dsc->header.cf == LV_IMG_CF_INDEXED_1BIT) { in lv_img_buf_get_px_color()
61 *dsc->header.w + 7 means rounding up to 8 because the lines are byte aligned in lv_img_buf_get_px_color()
63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
64 p_color.full = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_color()
66 else if(dsc->header.cf == LV_IMG_CF_INDEXED_2BIT) { in lv_img_buf_get_px_color()
[all …]
/lvgl-latest/tests/unity/
Dunity_support.c4 * Copyright 2002-2010 Guillaume Cottenceau.
31 #define ERR_FILE_NOT_FOUND -1
32 #define ERR_PNG -2
51 static int read_png_file(png_img_t * p, const char * file_name);
53 static void png_release(png_img_t * p);
81 png_img_t p; in lv_test_assert_img_eq() local
82 int res = read_png_file(&p, fn_ref_full); in lv_test_assert_img_eq()
99 for(y = 0; y < p.height; y++) { in lv_test_assert_img_eq()
100 png_byte * row = p.row_pointers[y]; in lv_test_assert_img_eq()
102 for(x = 0; x < p.width; x++) { in lv_test_assert_img_eq()
[all …]
/lvgl-latest/src/misc/
Dlv_area.c26 static bool lv_point_within_circle(const lv_area_t * area, const lv_point_t * p);
50 area_p->x1 = x1; in lv_area_set()
51 area_p->y1 = y1; in lv_area_set()
52 area_p->x2 = x2; in lv_area_set()
53 area_p->y2 = y2; in lv_area_set()
63 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width()
73 area_p->y2 = area_p->y1 + h - 1; in lv_area_set_height()
86 area_p->x1 = x; in _lv_area_set_pos()
87 area_p->y1 = y; in _lv_area_set_pos()
101 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()
[all …]
Dlv_mem.c145 (int)(mon.total_size - mon.free_size), mon.used_pct, mon.frag_pct, in lv_mem_alloc()
160 MEM_TRACE("allocated at %p", alloc); in lv_mem_alloc()
171 MEM_TRACE("freeing %p", data); in lv_mem_free()
180 if(cur_used > size) cur_used -= size; in lv_mem_free()
196 MEM_TRACE("reallocating %p with %lu size", data_p, (unsigned long)new_size); in lv_mem_realloc()
215 MEM_TRACE("allocated at %p", new_p); in lv_mem_realloc()
255 mon_p->total_size = LV_MEM_SIZE; in lv_mem_monitor()
256 mon_p->used_pct = 100 - (100U * mon_p->free_size) / mon_p->total_size; in lv_mem_monitor()
257 if(mon_p->free_size > 0) { in lv_mem_monitor()
258 mon_p->frag_pct = mon_p->free_biggest_size * 100U / mon_p->free_size; in lv_mem_monitor()
[all …]
Dlv_color.c43 px_num--; in lv_color_fill()
68 px_num -= 16; in lv_color_fill()
76 px_num--; in lv_color_fill()
116 px_num -= 16; in lv_color_fill()
121 px_num--; in lv_color_fill()
140 else if(lvl < LV_OPA_50) return lv_color_darken(c, (LV_OPA_50 - lvl) * 2); in lv_color_change_lightness()
141 else return lv_color_lighten(c, (lvl - LV_OPA_50) * 2); in lv_color_change_lightness()
159 uint8_t region, remainder, p, q, t; in lv_color_hsv_to_rgb() local
166 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb()
168 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb()
[all …]
Dlv_tlsf.c26 ** Architecture-specific bit manipulation routines.
31 ** queries using bitmasks and architecture-specific bit-manipulation
40 ** ffs/fls return 1-32 by default, returning 0 for error.
44 ** Detect whether or not we are building for a 32- or 64-bit (LP/LLP)
45 ** architecture. There is no reliable portable method at compile-time.
53 ** Returns one plus the index of the most significant 1-bit of n,
73 #define TLSF_LOG2_CEIL(n) ((n) & (n - 1) ? TLSF_FLS(n) : TLSF_FLS(n) - 1)
88 const int bit = 32 - __builtin_clz(reverse); in tlsf_ffs()
89 return bit - 1; in tlsf_ffs()
96 return __builtin_ffs(word) - 1; in tlsf_ffs()
[all …]
Dlv_log.c63 * @param format printf-like format string
77 size_t p; in _lv_log_add() local
78 for(p = strlen(file); p > 0; p--) { in _lv_log_add()
79 if(file[p] == '/' || file[p] == '\\') { in _lv_log_add()
80 p++; /*Skip the slash*/ in _lv_log_add()
90 lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func); in _lv_log_add()
92 printf(" \t(in %s line #%d)\n", &file[p], line); in _lv_log_add()
100 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, msg, &file[p], line); in _lv_log_add()
104 … lvl_prefix[level], t / 1000, t % 1000, t - last_log_time, func, (void *)&vaf, &file[p], line); in _lv_log_add()
Dlv_printf.c3 // 2014-2019, PALANDesign Hannover, Germany
81 // support for the long long types (%llu or %p)
146 for(s = str; *s && maxsize--; ++s); in _strnlen_s()
147 return (unsigned int)(s - str); in _strnlen_s()
150 // internal test if char is a digit (0-9)
162 i = i * 10U + (unsigned int)(*((*str)++) - '0'); in _atoi()
167 // output the specified string in reverse, taking care of any zero-padding
183 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
188 while(idx - start_idx < width) { in _out_rev()
203 width--; in _ntoa_format()
[all …]
Dlv_assert.h53 /*-----------------
55 *-----------------*/
58 # define LV_ASSERT_NULL(p) LV_ASSERT_MSG(p != NULL, "NULL pointer"); argument
60 # define LV_ASSERT_NULL(p)
64 # define LV_ASSERT_MALLOC(p) LV_ASSERT_MSG(p != NULL, "Out of memory"); argument
66 # define LV_ASSERT_MALLOC(p)
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_polygon.c55 lv_point_t * p = lv_mem_buf_get(point_cnt * sizeof(lv_point_t)); in lv_draw_sw_polygon() local
56 if(p == NULL) return; in lv_draw_sw_polygon()
59 p[0] = points[0]; in lv_draw_sw_polygon()
60 for(i = 0; i < point_cnt - 1; i++) { in lv_draw_sw_polygon()
62 p[pcnt] = points[i]; in lv_draw_sw_polygon()
67 if(points[0].x != points[point_cnt - 1].x || points[0].y != points[point_cnt - 1].y) { in lv_draw_sw_polygon()
68 p[pcnt] = points[point_cnt - 1]; in lv_draw_sw_polygon()
74 lv_mem_buf_release(p); in lv_draw_sw_polygon()
81 poly_coords.x1 = LV_MIN(poly_coords.x1, p[i].x); in lv_draw_sw_polygon()
82 poly_coords.y1 = LV_MIN(poly_coords.y1, p[i].y); in lv_draw_sw_polygon()
[all …]
/lvgl-latest/src/core/
Dlv_obj_pos.c29 static void transform_point(const lv_obj_t * obj, lv_point_t * p, bool inv);
85 if(obj->w_layout && obj->h_layout) return false; in lv_obj_refr_size()
95 if(obj->w_layout) { in lv_obj_refr_size()
110 if(parent->w_layout == 0 && lv_obj_get_style_width(parent, 0) == LV_SIZE_CONTENT) { in lv_obj_refr_size()
129 if(obj->h_layout) { in lv_obj_refr_size()
144 if(parent->h_layout == 0 && lv_obj_get_style_height(parent, 0) == LV_SIZE_CONTENT) { in lv_obj_refr_size()
186 obj->coords.y2 = obj->coords.y1 + h - 1; in lv_obj_refr_size()
188 obj->coords.x1 = obj->coords.x2 - w + 1; in lv_obj_refr_size()
191 obj->coords.x2 = obj->coords.x1 + w - 1; in lv_obj_refr_size()
203 obj->readjust_scroll_after_layout = 1; in lv_obj_refr_size()
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h1 // stb_truetype.h - v1.26htcw (fork to enable streaming and low memory environments)
2 // stb_truetype.h - v1.26 - public domain
3 // authored from 2009-2021 by Sean Barrett / RAD Game Tools
7 // NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES
18 // render glyphs to one-channel bitmaps with antialiasing (box filter)
19 // render glyphs to one-channel SDF bitmaps (signed-distance field/function)
22 // non-MS cmaps
25 // cleartype-style AA?
27 // optimize: build edge-list directly from curves
35 // Daniel Ribeiro Maciel: basic GPOS-based kerning
[all …]
Dstb_rect_pack.h1 // stb_rect_pack.h - v1.01 - public domain - rectangle packing
24 // This library currently uses the Skyline Bottom-Left algorithm.
44 // 1.01 (2021-07-11) always use large rect mode, expose STBRP__MAXVAL in public section
45 // 1.00 (2019-02-25) avoid small space waste; gracefully fail too-wide rectangles
46 // 0.99 (2019-02-07) warning fixes
47 // 0.11 (2017-03-03) return packing success/fail result
48 // 0.10 (2016-10-25) remove cast-away-const to avoid warnings
49 // 0.09 (2016-08-27) fix compiler warnings
50 // 0.08 (2015-09-13) really fix bug with empty rects (w=0 or h=0)
51 // 0.07 (2015-09-13) fix bug with empty rects (w=0 or h=0)
[all …]
/lvgl-latest/src/extra/widgets/colorwheel/
Dlv_colorwheel.c106 …if(colorwheel->hsv.h == hsv.h && colorwheel->hsv.s == hsv.s && colorwheel->hsv.v == hsv.v) return … in lv_colorwheel_set_hsv()
108 colorwheel->hsv = hsv; in lv_colorwheel_set_hsv()
141 colorwheel->mode = mode; in lv_colorwheel_set_mode()
156 colorwheel->mode_fixed = fixed; in lv_colorwheel_set_mode_fixed()
173 return colorwheel->hsv; in lv_colorwheel_get_hsv()
186 return lv_color_hsv_to_rgb(colorwheel->hsv.h, colorwheel->hsv.s, colorwheel->hsv.v); in lv_colorwheel_get_rgb()
199 return colorwheel->mode; in lv_colorwheel_get_color_mode()
212 return colorwheel->mode_fixed; in lv_colorwheel_get_color_mode_fixed()
227 colorwheel->hsv.h = 0; in lv_colorwheel_constructor()
228 colorwheel->hsv.s = 100; in lv_colorwheel_constructor()
[all …]
/lvgl-latest/src/widgets/
Dlv_slider.c73 return slider->dragging ? true : false; in lv_slider_is_dragged()
86 slider->value_to_set = NULL; in lv_slider_constructor()
87 slider->dragging = 0U; in lv_slider_constructor()
88 slider->left_knob_focus = 0U; in lv_slider_constructor()
113 lv_coord_t ext_click_area = obj->spec_attr ? obj->spec_attr->ext_click_pad : 0; in lv_slider_event()
117 lv_area_copy(&a, &slider->right_knob_area); in lv_slider_event()
119 info->res = _lv_area_is_point_on(&a, info->point, 0); in lv_slider_event()
122 if((info->res == false) && (type == LV_SLIDER_MODE_RANGE)) { in lv_slider_event()
123 lv_area_copy(&a, &slider->left_knob_area); in lv_slider_event()
125 info->res = _lv_area_is_point_on(&a, info->point, 0); in lv_slider_event()
[all …]
Dlv_arc.c93 if(start > 360) start -= 360; in lv_arc_set_start_angle()
95 int16_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_start_angle()
96 int16_t new_delta = arc->indic_angle_end - start; in lv_arc_set_start_angle()
101 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_start_angle()
102 …else if(new_delta < old_delta) inv_arc_area(obj, arc->indic_angle_start, start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
103 …else if(old_delta < new_delta) inv_arc_area(obj, start, arc->indic_angle_start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
107 arc->indic_angle_start = start; in lv_arc_set_start_angle()
116 if(end > 360) end -= 360; in lv_arc_set_end_angle()
118 int16_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_end_angle()
119 int16_t new_delta = end - arc->indic_angle_start; in lv_arc_set_end_angle()
[all …]
Dlv_roller.c104 roller->sel_opt_id = 0; in lv_roller_set_options()
105 roller->sel_opt_id_ori = 0; in lv_roller_set_options()
107 /*Count the '\n'-s to determine the number of options*/ in lv_roller_set_options()
108 roller->option_cnt = 0; in lv_roller_set_options()
111 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options()
113 roller->option_cnt++; /*Last option has no `\n`*/ in lv_roller_set_options()
116 roller->mode = LV_ROLLER_MODE_NORMAL; in lv_roller_set_options()
120 roller->mode = LV_ROLLER_MODE_INFINITE; in lv_roller_set_options()
127 opt_extra[opt_len * (i + 1) - 1] = '\n'; in lv_roller_set_options()
129 opt_extra[opt_len * LV_ROLLER_INF_PAGES - 1] = '\0'; in lv_roller_set_options()
[all …]
/lvgl-latest/scripts/
Dstyle_api_gen.py170 …possible values are `LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL`. OR-ed values can be used…
231 {'section': 'Line', 'dsc':'Properties to describe line-like objects' },
300 …xt. The possible values are `LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH`. OR-ed values can be used…
368 def obj_style_get(p): argument
369 if 'section' in p: return
371 cast = style_get_cast(p['style_type'], p['var_type'])
372 …print("static inline " + p['var_type'] + " lv_obj_get_style_" + p['name'].lower() +"(const struct …
374 print(" lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_" + p['name'] + ");")
375 print(" return " + cast + "v." + p['style_type'] + ";")
379 if 'filtered' in p and p['filtered']:
[all …]
/lvgl-latest/src/extra/libs/png/
Dlodepng.c4 Copyright (c) 2005-2020 Lode Vandevenne
6 This software is provided 'as-is', without any express or implied
43 #pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requi…
52 -Tools for C and common code for PNG and Zlib
53 -C Code for Zlib (huffman, deflate, ...)
54 -C Code for PNG (file format chunks, adam7, PNG filters, color conversions, ...)
55 -The C++ wrapper around all of the above
67 -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out
136 return (size_t)(a - orig); in lodepng_strlen()
141 #define LODEPNG_ABS(x) ((x) < 0 ? -(x) : (x))
[all …]
/lvgl-latest/src/extra/libs/gif/
Dgifdec.c120 gif->width = width; in gif_open()
121 gif->height = height; in gif_open()
122 gif->depth = depth; in gif_open()
124 gif->gct.size = gct_sz; in gif_open()
125 f_gif_read(gif, gif->gct.colors, 3 * gif->gct.size); in gif_open()
126 gif->palette = &gif->gct; in gif_open()
127 gif->bgindex = bgidx; in gif_open()
128 gif->canvas = (uint8_t *) &gif[1]; in gif_open()
130 gif->frame = &gif->canvas[4 * width * height]; in gif_open()
132 gif->frame = &gif->canvas[3 * width * height]; in gif_open()
[all …]
/lvgl-latest/docs/others/
Dime_pinyin.md3 … input modes. You can think of `lv_ime_pinyin` as a Pinyin input method plug-in for keyboard objec…
9 <p>
15 </p>
22 …ut method plug-in, then use `lv_ime_pinyin_set_keyboard(pinyin_ime, kb)` to add the `keyboard` you…
23 …, your_dict)` to use a custom dictionary (if you don't want to use the built-in dictionary at firs…
25 The built-in thesaurus is customized based on the **LV_FONT_SIMSUN_16_CJK** font library, which cur…
27 In the process of using the Pinyin input method plug-in, you can change the keyboard and dictionary…
31 <p>
42 </p>
47 If you don't want to use the built-in Pinyin dictionary, you can use the custom dictionary.
[all …]
/lvgl-latest/examples/libs/rlottie/
Dlv_example_rlottie_approve.json1p":{"a":0,"k":[336,396,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix"… object
/lvgl-latest/src/extra/others/fragment/
Dlv_fragment_manager.c68 instance->parent = parent; in lv_fragment_manager_create()
69 _lv_ll_init(&instance->attached, sizeof(lv_fragment_managed_states_t)); in lv_fragment_manager_create()
70 _lv_ll_init(&instance->stack, sizeof(lv_fragment_stack_item_t)); in lv_fragment_manager_create()
78 _LV_LL_READ_BACK(&manager->attached, states) { in lv_fragment_manager_del()
82 _lv_ll_clear(&manager->attached); in lv_fragment_manager_del()
83 _lv_ll_clear(&manager->stack); in lv_fragment_manager_del()
90 lv_fragment_stack_item_t * top = _lv_ll_get_tail(&manager->stack); in lv_fragment_manager_create_obj()
92 _LV_LL_READ(&manager->attached, states) { in lv_fragment_manager_create_obj()
93 if(states->in_stack && top->states != states) { in lv_fragment_manager_create_obj()
105 _LV_LL_READ_BACK(&manager->attached, states) { in lv_fragment_manager_del_obj()
[all …]
/lvgl-latest/src/extra/libs/qrcode/
Dlv_qrcode.c93 int32_t scale = imgdsc->header.w / qr_size; in lv_qrcode_update()
95 int32_t remain = imgdsc->header.w % qr_size; in lv_qrcode_update()
121 lv_coord_t obj_w = imgdsc->header.w; in lv_qrcode_update()
125 int margin = (obj_w - scaled) / 2; in lv_qrcode_update()
126 uint8_t * buf_u8 = (uint8_t *)imgdsc->data + 8; /*+8 skip the palette*/ in lv_qrcode_update()
131 uint32_t row_byte_cnt = (imgdsc->header.w + 7) >> 3; in lv_qrcode_update()
135 uint8_t p = 0; in lv_qrcode_update() local
139 bool a = qrcodegen_getModule(qr0, (x - margin) / scale, (y - margin) / scale); in lv_qrcode_update()
148 if(!a) b |= (1 << (7 - p)); in lv_qrcode_update()
149 p++; in lv_qrcode_update()
[all …]

12345