Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 168) sorted by relevance

1234567

/lvgl-latest/src/misc/
Dlv_txt_ap.c114 uint32_t i, j; in _lv_txt_ap_calc_bytes_cnt() local
119 i = 0; in _lv_txt_ap_calc_bytes_cnt()
121 while(i < txt_length) { in _lv_txt_ap_calc_bytes_cnt()
137 i++; in _lv_txt_ap_calc_bytes_cnt()
146 uint32_t index_current, idx_next, idx_previous, i, j; in _lv_txt_ap_proc() local
156 i = 0; in _lv_txt_ap_proc()
159 ch_enc[j++] = _lv_txt_encoded_next(txt, &i); in _lv_txt_ap_proc()
163 i = 0; in _lv_txt_ap_proc()
166 while(i < txt_length) { in _lv_txt_ap_proc()
167 index_current = lv_ap_get_char_index(ch_enc[i]); in _lv_txt_ap_proc()
[all …]
Dlv_txt.c34 static uint32_t lv_txt_utf8_next(const char * txt, uint32_t * i);
43 static uint32_t lv_txt_iso8859_1_next(const char * txt, uint32_t * i);
180 uint32_t i = 0, i_next = 0, i_next_next = 0; /*Iterating index into txt*/ in lv_txt_get_next_word() local
193 while(txt[i] != '\0') { in lv_txt_get_next_word()
200 i = i_next; in lv_txt_get_next_word()
216 break_index = i; in lv_txt_get_next_word()
225 if(i == 0 && break_index == NO_BREAK_FOUND && word_w_ptr != NULL) *word_w_ptr = cur_w; in lv_txt_get_next_word()
233 i = i_next; in lv_txt_get_next_word()
240 if(word_len == 0 || (letter == '\r' && letter_next == '\n')) i = i_next; in lv_txt_get_next_word()
241 return i; in lv_txt_get_next_word()
[all …]
Dlv_bidi.c110 uint32_t i = 0; in _lv_bidi_detect_base_dir() local
112 while(txt[i] != '\0') { in _lv_bidi_detect_base_dir()
113 letter = _lv_txt_encoded_next(txt, &i); in _lv_bidi_detect_base_dir()
191 for(uint16_t i = 0; i < pos_conv_len; i++) { in _lv_bidi_get_visual_pos() local
192 if(GET_POS(pos_conv_buf[i]) == logical_pos) { in _lv_bidi_get_visual_pos()
194 if(is_rtl) *is_rtl = IS_RTL_POS(pos_conv_buf[i]); in _lv_bidi_get_visual_pos()
198 return i; in _lv_bidi_get_visual_pos()
329 uint32_t i = 0; in lv_bidi_get_next_paragraph() local
331 _lv_txt_encoded_next(txt, &i); in lv_bidi_get_next_paragraph()
333 while(txt[i] != '\0' && txt[i] != '\n' && txt[i] != '\r') { in lv_bidi_get_next_paragraph()
[all …]
Dlv_mem.c283 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_get() local
284 if(LV_GC_ROOT(lv_mem_buf[i]).used == 0 && LV_GC_ROOT(lv_mem_buf[i]).size >= size) { in lv_mem_buf_get()
285 if(LV_GC_ROOT(lv_mem_buf[i]).size == size) { in lv_mem_buf_get()
286 LV_GC_ROOT(lv_mem_buf[i]).used = 1; in lv_mem_buf_get()
287 return LV_GC_ROOT(lv_mem_buf[i]).p; in lv_mem_buf_get()
290 i_guess = i; in lv_mem_buf_get()
293 else if(LV_GC_ROOT(lv_mem_buf[i]).size < LV_GC_ROOT(lv_mem_buf[i_guess]).size) { in lv_mem_buf_get()
294 i_guess = i; in lv_mem_buf_get()
307 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_get() local
308 if(LV_GC_ROOT(lv_mem_buf[i]).used == 0) { in lv_mem_buf_get()
[all …]
Dlv_anim_timeline.c98 for(uint32_t i = 0; i < at->anim_dsc_cnt; i++) { in lv_anim_timeline_start() local
99 lv_anim_t a = at->anim_dsc[i].anim; in lv_anim_timeline_start()
100 uint32_t start_time = at->anim_dsc[i].start_time; in lv_anim_timeline_start()
122 for(uint32_t i = 0; i < at->anim_dsc_cnt; i++) { in lv_anim_timeline_stop() local
123 lv_anim_t * a = &(at->anim_dsc[i].anim); in lv_anim_timeline_stop()
141 for(uint32_t i = 0; i < at->anim_dsc_cnt; i++) { in lv_anim_timeline_set_progress() local
142 lv_anim_t * a = &(at->anim_dsc[i].anim); in lv_anim_timeline_set_progress()
148 uint32_t start_time = at->anim_dsc[i].start_time; in lv_anim_timeline_set_progress()
171 for(uint32_t i = 0; i < at->anim_dsc_cnt; i++) { in lv_anim_timeline_get_playtime() local
172 uint32_t end = lv_anim_get_playtime(&at->anim_dsc[i].anim); in lv_anim_timeline_get_playtime()
[all …]
Dlv_ll.h159 #define _LV_LL_READ(list, i) for(i = _lv_ll_get_head(list); i != NULL; i = _lv_ll_get_next(list, i)) argument
161 #define _LV_LL_READ_BACK(list, i) for(i = _lv_ll_get_tail(list); i != NULL; i = _lv_ll_get_prev(lis… argument
/lvgl-latest/src/extra/libs/png/
Dlodepng.c433 size_t i; in writeBits() local
434 for(i = 0; i != nbits; ++i) { in writeBits()
435 WRITEBIT(writer, (unsigned char)((value >> i) & 1)); in writeBits()
442 size_t i; in writeBitsReversed() local
443 for(i = 0; i != nbits; ++i) { in writeBitsReversed()
445 WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u)); in writeBitsReversed()
586 size_t i;
590 for(i = 0; i < numsteps; i++) {
591 size_t step = steps[i];
598 result[i] = readBits(&reader, step);
[all …]
Dlv_png.c238 uint32_t i; in convert_color_depth() local
239 for(i = 0; i < px_cnt; i++) { in convert_color_depth()
240 c = lv_color_make(img_argb[i].ch.red, img_argb[i].ch.green, img_argb[i].ch.blue); in convert_color_depth()
241 img_c[i].ch.red = c.ch.blue; in convert_color_depth()
242 img_c[i].ch.blue = c.ch.red; in convert_color_depth()
247 uint32_t i; in convert_color_depth()
248 for(i = 0; i < px_cnt; i++) { in convert_color_depth()
249 c = lv_color_make(img_argb[i].ch.blue, img_argb[i].ch.green, img_argb[i].ch.red); in convert_color_depth()
250 img[i * 3 + 2] = img_argb[i].ch.alpha; in convert_color_depth()
251 img[i * 3 + 1] = c.full >> 8; in convert_color_depth()
[all …]
/lvgl-latest/src/draw/
Dlv_img_cache.c77 uint16_t i; in _lv_img_cache_open() local
78 for(i = 0; i < entry_cnt; i++) { in _lv_img_cache_open()
79 if(cache[i].life > INT32_MIN + LV_IMG_CACHE_AGING) { in _lv_img_cache_open()
80 cache[i].life -= LV_IMG_CACHE_AGING; in _lv_img_cache_open()
84 for(i = 0; i < entry_cnt; i++) { in _lv_img_cache_open()
85 if(color.full == cache[i].dec_dsc.color.full && in _lv_img_cache_open()
86 frame_id == cache[i].dec_dsc.frame_id && in _lv_img_cache_open()
87 lv_img_cache_match(src, cache[i].dec_dsc.src)) { in _lv_img_cache_open()
91 cached_src = &cache[i]; in _lv_img_cache_open()
104 for(i = 1; i < entry_cnt; i++) { in _lv_img_cache_open()
[all …]
Dlv_draw_mask.c84 uint8_t i; in lv_draw_mask_add() local
85 for(i = 0; i < _LV_MASK_MAX_NUM; i++) { in lv_draw_mask_add()
86 if(LV_GC_ROOT(_lv_draw_mask_list[i]).param == NULL) break; in lv_draw_mask_add()
89 if(i >= _LV_MASK_MAX_NUM) { in lv_draw_mask_add()
94 LV_GC_ROOT(_lv_draw_mask_list[i]).param = param; in lv_draw_mask_add()
95 LV_GC_ROOT(_lv_draw_mask_list[i]).custom_id = custom_id; in lv_draw_mask_add()
97 return i; in lv_draw_mask_add()
152 for(int i = 0; i < ids_count; i++) { in lv_draw_mask_apply_ids() local
153 int16_t id = ids[i]; in lv_draw_mask_apply_ids()
194 uint8_t i; in lv_draw_mask_remove_custom() local
[all …]
/lvgl-latest/src/core/
Dlv_obj_style.c80 uint32_t i; in lv_obj_add_style() local
82 for(i = 0; i < obj->style_cnt; i++) { in lv_obj_add_style()
83 if(obj->styles[i].is_trans) continue; in lv_obj_add_style()
84 if(obj->styles[i].is_local) continue; in lv_obj_add_style()
95 for(j = obj->style_cnt - 1; j > i ; j--) { in lv_obj_add_style()
99 lv_memset_00(&obj->styles[i], sizeof(_lv_obj_style_t)); in lv_obj_add_style()
100 obj->styles[i].style = style; in lv_obj_add_style()
101 obj->styles[i].selector = selector; in lv_obj_add_style()
113 uint32_t i = 0; in lv_obj_remove_style() local
115 while(i < obj->style_cnt) { in lv_obj_remove_style()
[all …]
Dlv_obj_tree.c148 int32_t i; in lv_obj_set_parent() local
149 for(i = lv_obj_get_index(obj); i <= (int32_t)lv_obj_get_child_cnt(old_parent) - 2; i++) { in lv_obj_set_parent()
150 old_parent->spec_attr->children[i] = old_parent->spec_attr->children[i + 1]; in lv_obj_set_parent()
200 int32_t i = old_index; in lv_obj_move_to_index() local
202 while(i > index) { in lv_obj_move_to_index()
203 parent->spec_attr->children[i] = parent->spec_attr->children[i - 1]; in lv_obj_move_to_index()
204 i--; in lv_obj_move_to_index()
208 while(i < index) { in lv_obj_move_to_index()
209 parent->spec_attr->children[i] = parent->spec_attr->children[i + 1]; in lv_obj_move_to_index()
210 i++; in lv_obj_move_to_index()
[all …]
Dlv_indev.c34 static void indev_pointer_proc(lv_indev_t * i, lv_indev_data_t * data);
35 static void indev_keypad_proc(lv_indev_t * i, lv_indev_data_t * data);
36 static void indev_encoder_proc(lv_indev_t * i, lv_indev_data_t * data);
37 static void indev_button_proc(lv_indev_t * i, lv_indev_data_t * data);
131 lv_indev_t * i = lv_indev_get_next(NULL); in lv_indev_enable() local
132 while(i) { in lv_indev_enable()
133 i->proc.disabled = enable; in lv_indev_enable()
134 i = lv_indev_get_next(i); in lv_indev_enable()
169 lv_indev_t * i = lv_indev_get_next(NULL); in lv_indev_reset() local
170 while(i) { in lv_indev_reset()
[all …]
Dlv_event.c180 int32_t i = 0; in lv_obj_remove_event_cb() local
181 for(i = 0; i < obj->spec_attr->event_dsc_cnt; i++) { in lv_obj_remove_event_cb()
182 if(event_cb == NULL || obj->spec_attr->event_dsc[i].cb == event_cb) { in lv_obj_remove_event_cb()
184 for(; i < (obj->spec_attr->event_dsc_cnt - 1); i++) { in lv_obj_remove_event_cb()
185 obj->spec_attr->event_dsc[i] = obj->spec_attr->event_dsc[i + 1]; in lv_obj_remove_event_cb()
204 int32_t i = 0; in lv_obj_remove_event_cb_with_user_data() local
205 for(i = 0; i < obj->spec_attr->event_dsc_cnt; i++) { in lv_obj_remove_event_cb_with_user_data()
206 if((event_cb == NULL || obj->spec_attr->event_dsc[i].cb == event_cb) && in lv_obj_remove_event_cb_with_user_data()
207 obj->spec_attr->event_dsc[i].user_data == user_data) { in lv_obj_remove_event_cb_with_user_data()
209 for(; i < (obj->spec_attr->event_dsc_cnt - 1); i++) { in lv_obj_remove_event_cb_with_user_data()
[all …]
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_stack_blur.c99 unsigned int x, y, xp, yp, i; in stack_blur_job() local
130 for(i = 0; i <= radius; i++) { in stack_blur_job()
131 stack_ptr = &stack[i]; in stack_blur_job()
133 sum_r += src_ptr[0] * (i + 1); in stack_blur_job()
137 for(i = 1; i <= radius; i++) { in stack_blur_job()
138 if(i <= wm) src_ptr += 1; in stack_blur_job()
139 stack_ptr = &stack[i + radius]; in stack_blur_job()
141 sum_r += src_ptr[0] * (radius + 1 - i); in stack_blur_job()
194 for(i = 0; i <= radius; i++) { in stack_blur_job()
195 stack_ptr = &stack[i]; in stack_blur_job()
[all …]
/lvgl-latest/src/extra/widgets/calendar/
Dlv_calendar.c77 uint32_t i; in lv_calendar_set_day_names() local
78 for(i = 0; i < 7; i++) { in lv_calendar_set_day_names()
79 calendar->map[i] = day_names[i]; in lv_calendar_set_day_names()
123 uint32_t i; in lv_calendar_set_showed_date() local
127 for(i = 0; i < 7; i++) { in lv_calendar_set_showed_date()
128 lv_btnmatrix_set_btn_ctrl(calendar->btnm, i, LV_BTNMATRIX_CTRL_DISABLED); in lv_calendar_set_showed_date()
134 for(i = day_first, c = 1; i < act_mo_len + day_first; i++, c++) { in lv_calendar_set_showed_date()
135 lv_snprintf(calendar->nums[i], sizeof(calendar->nums[0]), "%d", c); in lv_calendar_set_showed_date()
139 for(i = 0, c = prev_mo_len - day_first + 1; i < day_first; i++, c++) { in lv_calendar_set_showed_date()
140 lv_snprintf(calendar->nums[i], sizeof(calendar->nums[0]), "%d", c); in lv_calendar_set_showed_date()
[all …]
/lvgl-latest/src/extra/libs/qrcode/
Dqrcodegen.c81 static bool getBit(int x, int i);
148 for (size_t i = 0; i < textLen; i++) in qrcodegen_encodeText() local
149 tempBuffer[i] = (uint8_t)text[i]; in qrcodegen_encodeText()
186 for (int i = numBits - 1; i >= 0; i--, (*bitLen)++) in appendBitsToBuffer() local
187 buffer[*bitLen >> 3] |= ((val >> i) & 1) << (7 - (*bitLen & 7)); in appendBitsToBuffer()
224 for (int i = (int)qrcodegen_Ecc_MEDIUM; i <= (int)qrcodegen_Ecc_HIGH; i++) { // From low to high in qrcodegen_encodeSegmentsAdvanced() local
225 if (boostEcl && dataUsedBits <= getNumDataCodewords(version, (enum qrcodegen_Ecc)i) * 8) in qrcodegen_encodeSegmentsAdvanced()
226 ecl = (enum qrcodegen_Ecc)i; in qrcodegen_encodeSegmentsAdvanced()
232 for (size_t i = 0; i < len; i++) { in qrcodegen_encodeSegmentsAdvanced() local
233 const struct qrcodegen_Segment *seg = &segs[i]; in qrcodegen_encodeSegmentsAdvanced()
[all …]
/lvgl-latest/src/extra/libs/bmp/
Dlv_bmp.c204 for(unsigned int i = 0; i < len * (b->bpp / 8); i += 2) { in decoder_read_line() local
205 buf[i] = buf[i] ^ buf[i + 1]; in decoder_read_line()
206 buf[i + 1] = buf[i] ^ buf[i + 1]; in decoder_read_line()
207 buf[i] = buf[i] ^ buf[i + 1]; in decoder_read_line()
212 lv_coord_t i; in decoder_read_line() local
213 for(i = 0; i < len; i++) { in decoder_read_line()
214 uint8_t b0 = buf[i * 4]; in decoder_read_line()
215 uint8_t b1 = buf[i * 4 + 1]; in decoder_read_line()
216 uint8_t b2 = buf[i * 4 + 2]; in decoder_read_line()
217 uint8_t b3 = buf[i * 4 + 3]; in decoder_read_line()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_polygon.c57 uint16_t i; in lv_draw_sw_polygon() local
60 for(i = 0; i < point_cnt - 1; i++) { in lv_draw_sw_polygon()
61 if(points[i].x != points[i + 1].x || points[i].y != points[i + 1].y) { in lv_draw_sw_polygon()
62 p[pcnt] = points[i]; in lv_draw_sw_polygon()
80 for(i = 0; i < point_cnt; i++) { 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()
83 poly_coords.x2 = LV_MAX(poly_coords.x2, p[i].x); in lv_draw_sw_polygon()
84 poly_coords.y2 = LV_MAX(poly_coords.y2, p[i].y); in lv_draw_sw_polygon()
102 for(i = 1; i < point_cnt; i++) { in lv_draw_sw_polygon()
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h343 int w, h, i, j, c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20);
351 for(i = 0; i < w; ++i)
352 putchar(" .:ioVM@"[bitmap[j * w + i] >> 5]);
383 int i, j, ascent, baseline, ch = 0;
412 for(i = 0; i < 78; ++i)
413 putchar(" .:ioVM@"[screen[j][i] >> 5]);
1234 int i; in stbtt__buf_get() local
1236 for(i = 0; i < n; i++) in stbtt__buf_get()
1336 int i; in stbtt__dict_get_ints() local
1338 for(i = 0; i < outcount && operands.cursor < operands.size; i++) in stbtt__dict_get_ints()
[all …]
/lvgl-latest/tests/src/test_cases/
Dtest_font_loader.c99 for(int i = 0; i < dsc1->cmap_num; ++i) { in compare_fonts() local
100 lv_font_fmt_txt_cmap_t * cmaps1 = (lv_font_fmt_txt_cmap_t *)&dsc1->cmaps[i]; in compare_fonts()
101 lv_font_fmt_txt_cmap_t * cmaps2 = (lv_font_fmt_txt_cmap_t *)&dsc2->cmaps[i]; in compare_fonts()
193 for(int i = 0; i < total_glyphs; ++i) { in compare_fonts() local
194 if(i < total_glyphs - 1) { in compare_fonts()
195 int size1 = glyph_dsc1[i + 1].bitmap_index - glyph_dsc1[i].bitmap_index; in compare_fonts()
199 dsc1->glyph_bitmap + glyph_dsc1[i].bitmap_index, in compare_fonts()
200 dsc2->glyph_bitmap + glyph_dsc2[i].bitmap_index, in compare_fonts()
204 TEST_ASSERT_EQUAL_INT_MESSAGE(glyph_dsc1[i].adv_w, glyph_dsc2[i].adv_w, "adv_w"); in compare_fonts()
205 TEST_ASSERT_EQUAL_INT_MESSAGE(glyph_dsc1[i].box_w, glyph_dsc2[i].box_w, "box_w"); in compare_fonts()
[all …]
/lvgl-latest/src/extra/layouts/grid/
Dlv_grid.c360 uint32_t i; in grid_update() local
361 for(i = 0; i < cont->spec_attr->child_cnt; i++) { in grid_update()
362 lv_obj_t * item = cont->spec_attr->children[i]; in grid_update()
436 uint32_t i; in calc_cols() local
437 for(i = 0; i < c->col_num; i++) { in calc_cols()
439 if(IS_CONTENT(col_templ[i])) { in calc_cols()
449 if(col_pos != i) continue; in calc_cols()
453 if(size >= 0) c->w[i] = size; in calc_cols()
454 else c->w[i] = 0; in calc_cols()
461 for(i = 0; i < c->col_num; i++) { in calc_cols()
[all …]
/lvgl-latest/examples/others/gridnav/
Dlv_example_gridnav_2.c20 uint32_t i; in lv_example_gridnav_2() local
21 for(i = 0; i < 15; i++) { in lv_example_gridnav_2()
22 lv_snprintf(buf, sizeof(buf), "File %d", i + 1); in lv_example_gridnav_2()
35 for(i = 0; i < 15; i++) { in lv_example_gridnav_2()
36 lv_snprintf(buf, sizeof(buf), "Folder %d", i + 1); in lv_example_gridnav_2()
/lvgl-latest/examples/widgets/btnmatrix/
Dlv_example_btnmatrix_3.c12 uint32_t i; in event_cb() local
13 for(i = 1; i < 7; i++) { in event_cb()
14 if(lv_btnmatrix_has_btn_ctrl(obj, i, LV_BTNMATRIX_CTRL_CHECKED)) break; in event_cb()
17 if(prev && i > 1) i--; in event_cb()
18 else if(next && i < 5) i++; in event_cb()
20 lv_btnmatrix_set_btn_ctrl(obj, i, LV_BTNMATRIX_CTRL_CHECKED); in event_cb()
/lvgl-latest/examples/scroll/
Dlv_example_scroll_6.c13 uint32_t i; in scroll_event_cb() local
15 for(i = 0; i < child_cnt; i++) { in scroll_event_cb()
16 lv_obj_t * child = lv_obj_get_child(cont, i); in scroll_event_cb()
36 x = r - res.i; in scroll_event_cb()
64 uint32_t i; in lv_example_scroll_6() local
65 for(i = 0; i < 20; i++) { in lv_example_scroll_6()
70 lv_label_set_text_fmt(label, "Button %"LV_PRIu32, i); in lv_example_scroll_6()

1234567