Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 71) sorted by relevance

123

/lvgl-latest/src/misc/
Dlv_mem.h131 static inline void * lv_memcpy(void * dst, const void * src, size_t len) in lv_memcpy() argument
133 return memcpy(dst, src, len); in lv_memcpy()
142 static inline void * lv_memcpy_small(void * dst, const void * src, size_t len) in lv_memcpy_small() argument
144 return memcpy(dst, src, len); in lv_memcpy_small()
153 static inline void lv_memset(void * dst, uint8_t v, size_t len) in lv_memset() argument
155 memset(dst, v, len); in lv_memset()
163 static inline void lv_memset_00(void * dst, size_t len) in lv_memset_00() argument
165 memset(dst, 0x00, len); in lv_memset_00()
173 static inline void lv_memset_ff(void * dst, size_t len) in lv_memset_ff() argument
175 memset(dst, 0xFF, len); in lv_memset_ff()
[all …]
Dlv_mem.c367 void * LV_ATTRIBUTE_FAST_MEM lv_memcpy(void * dst, const void * src, size_t len) in lv_memcpy() argument
377 while(len > 32) { in lv_memcpy()
382 len -= 32; in lv_memcpy()
384 while(len) { in lv_memcpy()
386 len--; in lv_memcpy()
394 while(d_align && len) { in lv_memcpy()
397 len--; in lv_memcpy()
403 while(len > 32) { in lv_memcpy()
405 len -= 32; in lv_memcpy()
408 while(len > 4) { in lv_memcpy()
[all …]
Dlv_printf.c168 … _out_rev(out_fct_type out, char * buffer, size_t idx, size_t maxlen, const char * buf, size_t len, in _out_rev() argument
176 for(i = len; i < width; i++) { in _out_rev()
182 while(len) { in _out_rev()
183 out(buf[--len], buffer, idx++, maxlen); in _out_rev()
197 …_t _ntoa_format(out_fct_type out, char * buffer, size_t idx, size_t maxlen, char * buf, size_t len, in _ntoa_format() argument
205 while((len < prec) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
206 buf[len++] = '0'; in _ntoa_format()
208 while((flags & FLAGS_ZEROPAD) && (len < width) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
209 buf[len++] = '0'; in _ntoa_format()
215 if(!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
[all …]
Dlv_bidi.c44 …base_dir_t get_next_run(const char * txt, lv_base_dir_t base_dir, uint32_t max_len, uint32_t * len,
46 static void rtl_reverse(char * dest, const char * src, uint32_t len, uint16_t * pos_conv_out, uint1…
49 static lv_base_dir_t bracket_process(const char * txt, uint32_t next_pos, uint32_t len, uint32_t le…
51 static void fill_pos_conv(uint16_t * out, uint16_t len, uint16_t index);
137 uint16_t _lv_bidi_get_logical_pos(const char * str_in, char ** bidi_txt, uint32_t len, lv_base_dir_… in _lv_bidi_get_logical_pos() argument
140 uint32_t pos_conv_len = get_txt_len(str_in, len); in _lv_bidi_get_logical_pos()
141 char * buf = lv_mem_buf_get(len + 1); in _lv_bidi_get_logical_pos()
152 …_lv_bidi_process_paragraph(str_in, bidi_txt ? *bidi_txt : NULL, len, base_dir, pos_conv_buf, pos_c… in _lv_bidi_get_logical_pos()
174 uint16_t _lv_bidi_get_visual_pos(const char * str_in, char ** bidi_txt, uint16_t len, lv_base_dir_t… in _lv_bidi_get_visual_pos() argument
177 uint32_t pos_conv_len = get_txt_len(str_in, len); in _lv_bidi_get_visual_pos()
[all …]
Dlv_fs.c454 size_t len = strlen(path); in lv_fs_up() local
455 if(len == 0) return path; in lv_fs_up()
457 len--; /*Go before the trailing '\0'*/ in lv_fs_up()
460 while(path[len] == '/' || path[len] == '\\') { in lv_fs_up()
461 path[len] = '\0'; in lv_fs_up()
462 if(len > 0) in lv_fs_up()
463 len--; in lv_fs_up()
469 for(i = len; i > 0; i--) { in lv_fs_up()
480 size_t len = strlen(path); in lv_fs_get_last() local
481 if(len == 0) return path; in lv_fs_get_last()
[all …]
Dlv_bidi.h77 uint16_t _lv_bidi_get_logical_pos(const char * str_in, char ** bidi_txt, uint32_t len, lv_base_dir_…
92 uint16_t _lv_bidi_get_visual_pos(const char * str_in, char ** bidi_txt, uint16_t len, lv_base_dir_t…
105 void _lv_bidi_process_paragraph(const char * str_in, char * str_out, uint32_t len, lv_base_dir_t ba…
Dlv_txt.c434 void _lv_txt_cut(char * txt, uint32_t pos, uint32_t len) in _lv_txt_cut() argument
441 len = _lv_txt_encoded_get_byte_id(&txt[pos], len); in _lv_txt_cut()
445 for(i = pos; i <= old_len - len; i++) { in _lv_txt_cut()
446 txt[i] = txt[i + len]; in _lv_txt_cut()
455 uint32_t len = lv_vsnprintf(NULL, 0, fmt, ap_copy); in _lv_txt_set_text_vfmt() local
461 char * raw_txt = lv_mem_buf_get(len + 1); in _lv_txt_set_text_vfmt()
467 lv_vsnprintf(raw_txt, len + 1, fmt, ap); in _lv_txt_set_text_vfmt()
480 text = lv_mem_alloc(len + 1); in _lv_txt_set_text_vfmt()
485 text[len] = 0; /*Ensure NULL termination*/ in _lv_txt_set_text_vfmt()
487 lv_vsnprintf(text, len + 1, fmt, ap); in _lv_txt_set_text_vfmt()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_mask.c30 … lv_coord_t abs_y, lv_coord_t len,
33 … lv_coord_t abs_y, lv_coord_t len,
36 … lv_coord_t abs_y, lv_coord_t len,
39 … lv_coord_t abs_y, lv_coord_t len,
42 … lv_coord_t abs_y, lv_coord_t len,
45 … lv_coord_t abs_y, lv_coord_t len,
49 … lv_coord_t abs_y, lv_coord_t len,
52 … lv_coord_t abs_y, lv_coord_t len,
59 …tic lv_opa_t * get_next_line(_lv_draw_mask_radius_circle_dsc_t * c, lv_coord_t y, lv_coord_t * len,
112 lv_coord_t abs_y, lv_coord_t len) in lv_draw_mask_apply() argument
[all …]
Dlv_img_decoder.c35 lv_coord_t len, uint8_t * buf);
37 lv_coord_t len, uint8_t * buf);
39 lv_coord_t len, uint8_t * buf);
176 …er_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf) in lv_img_decoder_read_line() argument
179 …if(dsc->decoder->read_line_cb) res = dsc->decoder->read_line_cb(dsc->decoder, dsc, x, y, len, buf); in lv_img_decoder_read_line()
373 uint32_t len = dsc->header.w * dsc->header.h; in lv_img_decoder_built_in_open() local
374 len *= cf == LV_IMG_CF_RGB565A8 ? 3 : 1; in lv_img_decoder_built_in_open()
375 uint8_t * fs_buf = lv_mem_alloc(len); in lv_img_decoder_built_in_open()
380 lv_fs_res_t res = lv_fs_read(&user_data->f, fs_buf, len, NULL); in lv_img_decoder_built_in_open()
481 lv_coord_t y, lv_coord_t len, uint8_t * buf) in lv_img_decoder_built_in_read_line() argument
[all …]
Dlv_img_decoder.h76 … lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf);
177 …_t lv_img_decoder_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_coord_t len,
255 lv_coord_t y, lv_coord_t len, uint8_t * buf);
/lvgl-latest/tests/
Dmain.py66 return options_name[len(prefix):].lower()
92 print('=' * len(label))
94 print('=' * len(label))
120 print('=' * len(label))
122 print('=' * len(label), flush=True)
136 print('=' * len(label))
138 print('=' * len(label))
/lvgl-latest/scripts/
Djpg_to_sjpg.py16 if len(sys.argv) == 2:
67 lenbuf.append(len(a))
99 for i in range(len(lenbuf)):
108 for i in range(len(sjpeg)):
121 c_code = c_code + "\t.data_size = " + str(len(sjpeg)) + ",\n"
135 print("\tbin size = " + str(round(len(sjpeg)/1024, 1)) + " KB" )
/lvgl-latest/examples/others/imgfont/
Dlv_example_imgfont_1.c9 uint16_t len, uint32_t unicode, uint32_t unicode_next) in LV_IMG_DECLARE()
20 snprintf(path, len, "%s/%04X.%s", "A:lvgl/examples/assets/emoji", unicode, "png"); in LV_IMG_DECLARE()
21 path[len - 1] = '\0'; in LV_IMG_DECLARE()
/lvgl-latest/examples/widgets/animimg/
Dlv_example_animimg_1.py18 'data_size': len(anim001_data),
30 'data_size': len(anim002_data),
42 'data_size': len(anim003_data),
/lvgl-latest/examples/widgets/textarea/
Dlv_example_textarea_3.py15 if len(rest) > 3:
18 if len(txt) < 2:
24 if len(txt) == 2 or txt[2] != ':' :
/lvgl-latest/src/extra/libs/sjpg/
Dtjpgd.c973 size_t len; in jd_prepare() local
997 len = LDB_WORD(seg + 2); /* Length field */ in jd_prepare()
998 if (len <= 2 || (marker >> 8) != 0xFF) return JDR_FMT1; in jd_prepare()
999 len -= 2; /* Segent content size */ in jd_prepare()
1000 ofs += 4 + len; /* Number of bytes loaded */ in jd_prepare()
1004 if (len > JD_SZBUF) return JDR_MEM2; in jd_prepare()
1005 if (jd->infunc(jd, seg, len) != len) return JDR_INP; /* Load segment data */ in jd_prepare()
1029 if (len > JD_SZBUF) return JDR_MEM2; in jd_prepare()
1030 if (jd->infunc(jd, seg, len) != len) return JDR_INP; /* Load segment data */ in jd_prepare()
1036 if (len > JD_SZBUF) return JDR_MEM2; in jd_prepare()
[all …]
/lvgl-latest/src/font/
Dlv_font_fmt_txt.c43 static inline uint8_t get_bits(const uint8_t * in, uint32_t bit_pos, uint8_t len);
44 static inline void bits_write(uint8_t * out, uint32_t bit_pos, uint8_t val, uint8_t len);
426 static inline uint8_t get_bits(const uint8_t * in, uint32_t bit_pos, uint8_t len) in get_bits() argument
429 switch(len) { in get_bits()
446 bit_mask = (uint16_t)((uint16_t) 1 << len) - 1; in get_bits()
452 if(bit_pos + len >= 8) { in get_bits()
454 return (in16 >> (16 - bit_pos - len)) & bit_mask; in get_bits()
457 return (in[byte_pos] >> (8 - bit_pos - len)) & bit_mask; in get_bits()
469 static inline void bits_write(uint8_t * out, uint32_t bit_pos, uint8_t val, uint8_t len) in bits_write() argument
471 if(len == 3) { in bits_write()
[all …]
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_mask.c53 …lv_coord_t abs_x = (lv_coord_t) coords->x1, abs_y = (lv_coord_t)(y + coords->y1), len = (lv_coord_… in lv_draw_sdl_mask_dump_opa() local
56 res = lv_draw_mask_apply_ids(line_buf, abs_x, abs_y, len, ids, ids_count); in lv_draw_sdl_mask_dump_opa()
59 res = lv_draw_mask_apply(line_buf, abs_x, abs_y, len); in lv_draw_sdl_mask_dump_opa()
/lvgl-latest/examples/widgets/imgbtn/
Dlv_example_imgbtn_1.py17 'data_size': len(imgbtn_left_data),
29 'data_size': len(imgbtn_mid_data),
41 'data_size': len(imgbtn_right_data),
/lvgl-latest/src/extra/libs/qrcode/
Dqrcodegen.h209 bool qrcodegen_encodeSegments(const struct qrcodegen_Segment segs[], size_t len,
228 bool qrcodegen_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcod…
266 struct qrcodegen_Segment qrcodegen_makeBytes(const uint8_t data[], size_t len, uint8_t buf[]);
Dqrcodegen.c84 testable int getTotalBits(const struct qrcodegen_Segment segs[], size_t len, int version);
195 bool qrcodegen_encodeSegments(const struct qrcodegen_Segment segs[], size_t len, in qrcodegen_encodeSegments() argument
197 return qrcodegen_encodeSegmentsAdvanced(segs, len, ecl, in qrcodegen_encodeSegments()
203 bool qrcodegen_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcod… in qrcodegen_encodeSegmentsAdvanced() argument
205 LV_ASSERT(segs != NULL || len == 0); in qrcodegen_encodeSegmentsAdvanced()
213 dataUsedBits = getTotalBits(segs, len, version); in qrcodegen_encodeSegmentsAdvanced()
232 for (size_t i = 0; i < len; i++) { in qrcodegen_encodeSegmentsAdvanced()
863 struct qrcodegen_Segment qrcodegen_makeBytes(const uint8_t data[], size_t len, uint8_t buf[]) { in qrcodegen_makeBytes() argument
864 LV_ASSERT(data != NULL || len == 0); in qrcodegen_makeBytes()
867 result.bitLength = calcSegmentBitLength(result.mode, len); in qrcodegen_makeBytes()
[all …]
/lvgl-latest/src/extra/libs/bmp/
Dlv_bmp.c38 lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf);
192 lv_coord_t x, lv_coord_t y, lv_coord_t len, uint8_t * buf) in decoder_read_line() argument
201 lv_fs_read(&b->f, buf, len * (b->bpp / 8), NULL); in decoder_read_line()
204 for(unsigned int i = 0; i < len * (b->bpp / 8); i += 2) { in decoder_read_line()
213 for(i = 0; i < len; i++) { in decoder_read_line()
228 for(i = len - 1; i >= 0; i--) { in decoder_read_line()
/lvgl-latest/src/extra/others/ime/
Dlv_ime_pinyin.c905 uint8_t index, len = 0, offset; in pinyin_search_matching() local
914 len = strlen(py_str); in pinyin_search_matching()
920 for(index = 0; index < len; index++) { in pinyin_search_matching()
927 if(len == 1 || index == len) { in pinyin_search_matching()
996 uint16_t len = strlen(k9_input); in pinyin_k9_get_legal_py() local
998 if((len == 0) || (len >= LV_IME_PINYIN_K9_MAX_INPUT)) { in pinyin_k9_get_legal_py()
1015 if(index == len) { in pinyin_k9_get_legal_py()
1055 uint8_t index = 0, len = 0, offset = 0; in pinyin_k9_is_valid_py() local
1065 len = strlen(py_str); in pinyin_k9_is_valid_py()
1071 for(index = 0; index < len; index++) { in pinyin_k9_is_valid_py()
[all …]
/lvgl-latest/demos/music/assets/
Dspectrum.py17 fs = int(len(S) / fn)
19 for t in range(0,len(S[0]-1)):
/lvgl-latest/examples/widgets/dropdown/
Dlv_example_dropdown_3.py17 'data_size': len(png_data),
24 dropdown.get_selected_str(option, len(option))

123