Home
last modified time | relevance | path

Searched refs:uint16_t (Results 1 – 25 of 197) sorted by relevance

12345678

/lvgl-latest/src/core/
Dlv_obj_private.h44 uint16_t child_cnt; /**< Number of children*/
45 uint16_t scrollbar_mode : 2; /**< How to display scrollbars, see `lv_scrollbar_mode_t`*/
46uint16_t scroll_snap_x : 2; /**< Where to align the snappable children horizontally, see `lv_s…
47 uint16_t scroll_snap_y : 2; /**< Where to align the snappable children vertically*/
48 uint16_t scroll_dir : 4; /**< The allowed scroll direction(s), see `lv_dir_t`*/
49uint16_t layer_type : 2; /**< Cache the layer type here. Element of lv_intermediate_layer_t…
68 uint16_t layout_inv : 1;
69 uint16_t readjust_scroll_after_layout : 1;
70 uint16_t scr_layout_inv : 1;
71 uint16_t skip_trans : 1;
[all …]
/lvgl-latest/src/others/ime/
Dlv_ime_pinyin_private.h41 uint16_t k9_py_ll_pos; /* Current pinyin map pages(k9) */
42 uint16_t k9_legal_py_count; /* Count of legal Pinyin numbers(k9) */
43 uint16_t k9_input_str_len; /* 9-key input(k9) mode input string max len */
45 uint16_t ta_count; /* The number of characters entered in the text box this time */
46 uint16_t cand_num; /* Number of candidates */
47 uint16_t py_page; /* Current pinyin map pages(k26) */
48 uint16_t py_num[26]; /* Number and length of Pinyin */
49 uint16_t py_pos[26]; /* Pinyin position */
Dlv_ime_pinyin.c37 static void pinyin_page_proc(lv_obj_t * obj, uint16_t btn);
38 static char * pinyin_search_matching(lv_obj_t * obj, char * py_str, uint16_t * cand_num);
46 static void pinyin_k9_cand_page_proc(lv_obj_t * obj, uint16_t dir);
513 uint16_t py_str_i = 0; in lv_ime_pinyin_constructor()
514 uint16_t btnm_i = 0; in lv_ime_pinyin_constructor()
617 uint16_t btn_id = lv_buttonmatrix_get_selected_button(kb); in lv_ime_pinyin_kb_event()
628 uint16_t tmp_button_str_len = lv_strlen(pinyin_ime->input_char); in lv_ime_pinyin_kb_event()
686 for(uint16_t i = 0; i < lv_strlen(txt); i++) in lv_ime_pinyin_kb_event()
710 uint16_t len = lv_strlen(pinyin_ime->input_char); in lv_ime_pinyin_kb_event()
717 for(uint16_t i = 0; i < 8; i++) { in lv_ime_pinyin_kb_event()
[all …]
/lvgl-latest/src/font/
Dlv_font_fmt_txt.h39 uint16_t box_w; /**< Width of the glyph's bounding box*/
40 uint16_t box_h; /**< Height of the glyph's bounding box*/
65 uint16_t range_length;
68 uint16_t glyph_id_start;
97 const uint16_t * unicode_list;
105 uint16_t list_length;
171 uint16_t kern_scale;
174 uint16_t cmap_num : 9;
177 uint16_t bpp : 4;
180 uint16_t kern_classes : 1;
[all …]
Dlv_binfont_loader.c27 uint16_t tables_count;
28 uint16_t font_size;
29 uint16_t ascent;
31 uint16_t typo_ascent;
33 uint16_t typo_line_gap;
36 uint16_t default_advance_width;
37 uint16_t kerning_scale;
49 uint16_t underline_thickness;
55 uint16_t range_length;
56 uint16_t glyph_id_start;
[all …]
/lvgl-latest/src/libs/tjpgd/
Dtjpgd.h43 uint16_t left; /* Left end */
44 uint16_t right; /* Right end */
45 uint16_t top; /* Top end */
46 uint16_t bottom; /* Bottom end */
63 uint16_t nrst; /* Restart interval */
64 uint16_t rst; /* Restart count*/
65 uint16_t rsc; /* Expected restart sequence ID*/
66 uint16_t width, height; /* Size of the input image (pixel) */
68 uint16_t * huffcode[2][2]; /* Huffman code word tables [id][dcac] */
76 uint16_t * hufflut_ac[2]; /* Fast huffman decode tables for AC short code [id] */
[all …]
Dtjpgd.c56 static const uint16_t Ipsf[64] = { /* See also aa_idct.png */
57uint16_t)(1.00000 * 8192), (uint16_t)(1.38704 * 8192), (uint16_t)(1.30656 * 8192), (uint16_t)(1.17…
58uint16_t)(1.38704 * 8192), (uint16_t)(1.92388 * 8192), (uint16_t)(1.81226 * 8192), (uint16_t)(1.63…
59uint16_t)(1.30656 * 8192), (uint16_t)(1.81226 * 8192), (uint16_t)(1.70711 * 8192), (uint16_t)(1.53…
60uint16_t)(1.17588 * 8192), (uint16_t)(1.63099 * 8192), (uint16_t)(1.53636 * 8192), (uint16_t)(1.38…
61uint16_t)(1.00000 * 8192), (uint16_t)(1.38704 * 8192), (uint16_t)(1.30656 * 8192), (uint16_t)(1.17…
62uint16_t)(0.78570 * 8192), (uint16_t)(1.08979 * 8192), (uint16_t)(1.02656 * 8192), (uint16_t)(0.92…
63uint16_t)(0.54120 * 8192), (uint16_t)(0.75066 * 8192), (uint16_t)(0.70711 * 8192), (uint16_t)(0.63…
64uint16_t)(0.27590 * 8192), (uint16_t)(0.38268 * 8192), (uint16_t)(0.36048 * 8192), (uint16_t)(0.32…
204 uint16_t hc, * ph; in create_huffman_tbl()
[all …]
/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_sw_post_process.c19 uint16_t srcArray[3 * 2] = { in test_rotate90_RGB565()
23 uint16_t dstArray[2 * 3] = {0}; in test_rotate90_RGB565()
25 uint16_t expectedArray[2 * 3] = { in test_rotate90_RGB565()
33 3 * sizeof(uint16_t), in test_rotate90_RGB565()
34 2 * sizeof(uint16_t), in test_rotate90_RGB565()
43 uint16_t srcArray[3 * 2] = { in test_rotate180_RGB565()
47 uint16_t dstArray[3 * 2] = {0}; in test_rotate180_RGB565()
48 uint16_t expectedArray[3 * 2] = { in test_rotate180_RGB565()
54 3 * sizeof(uint16_t), in test_rotate180_RGB565()
55 3 * sizeof(uint16_t), in test_rotate180_RGB565()
[all …]
/lvgl-latest/src/misc/
Dlv_bidi.c52 uint16_t * pos_conv_len);
53 …id rtl_reverse(char * dest, const char * src, uint32_t len, uint16_t * pos_conv_out, uint16_t pos_…
54 uint16_t pos_conv_len);
59 static void fill_pos_conv(uint16_t * out, uint16_t len, uint16_t index);
125 uint16_t lv_bidi_get_logical_pos(const char * str_in, char ** bidi_txt, uint32_t len, lv_base_dir_t… in lv_bidi_get_logical_pos()
130 if(buf == NULL) return (uint16_t) -1; in lv_bidi_get_logical_pos()
132 uint16_t * pos_conv_buf = lv_malloc(pos_conv_len * sizeof(uint16_t)); in lv_bidi_get_logical_pos()
135 return (uint16_t) -1; in lv_bidi_get_logical_pos()
145 uint16_t res = GET_POS(pos_conv_buf[visual_pos]); in lv_bidi_get_logical_pos()
150 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()
[all …]
Dlv_bidi_private.h60 uint16_t lv_bidi_get_logical_pos(const char * str_in, char ** bidi_txt, uint32_t len, lv_base_dir_t…
75 uint16_t lv_bidi_get_visual_pos(const char * str_in, char ** bidi_txt, uint16_t len, lv_base_dir_t …
89 uint16_t * pos_conv_out, uint16_t pos_conv_len);
Dlv_color.c116 uint16_t lv_color_to_u16(lv_color_t color) in lv_color_to_u16()
137 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb()
140 s = (uint16_t)((uint16_t)s * 255) / 100; in lv_color_hsv_to_rgb()
141 v = (uint16_t)((uint16_t)v * 255) / 100; in lv_color_hsv_to_rgb()
197 uint16_t r = ((uint32_t)r8 << 10) / 255; in lv_color_rgb_to_hsv()
198 uint16_t g = ((uint32_t)g8 << 10) / 255; in lv_color_rgb_to_hsv()
199 uint16_t b = ((uint32_t)b8 << 10) / 255; in lv_color_rgb_to_hsv()
201 uint16_t rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); in lv_color_rgb_to_hsv()
202 uint16_t rgbMax = r > g ? (r > b ? r : b) : (g > b ? g : b); in lv_color_rgb_to_hsv()
306 uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_16_16_mix(uint16_t c1, uint16_t c2, uint8_t mix) in lv_color_16_16_mix()
[all …]
Dlv_color_op.c40 ret.red = LV_UDIV255((uint16_t)c1.red * mix + c2.red * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
41 …ret.green = LV_UDIV255((uint16_t)c1.green * mix + c2.green * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
42 ret.blue = LV_UDIV255((uint16_t)c1.blue * mix + c2.blue * (255 - mix) + LV_COLOR_MIX_ROUND_OFS); in lv_color_mix()
63 uint16_t bright = (uint16_t)(3u * c.red + c.green + 4u * c.blue); in lv_color_brightness()
Dlv_color.h108 uint16_t blue : 5;
109 uint16_t green : 6;
110 uint16_t red : 5;
121 uint16_t h;
326 uint16_t lv_color_to_u16(lv_color_t color);
344 uint16_t LV_ATTRIBUTE_FAST_MEM lv_color_16_16_mix(uint16_t c1, uint16_t c2, uint8_t mix);
369 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v);
/lvgl-latest/src/draw/sw/blend/arm2d/
Dlv_blend_arm2d.h217 int16_t stride = (dsc->dest_stride) / sizeof(uint16_t); in lv_color_blend_to_rgb565_arm2d()
218 __arm_2d_impl_rgb16_colour_filling((uint16_t *)dsc->dest_buf, in lv_color_blend_to_rgb565_arm2d()
228 int16_t stride = (dsc->dest_stride) / sizeof(uint16_t); in lv_color_blend_to_rgb565_with_opa_arm2d()
229 __arm_2d_impl_rgb565_colour_filling_with_opacity((uint16_t *)dsc->dest_buf, in lv_color_blend_to_rgb565_with_opa_arm2d()
240 int16_t stride = (dsc->dest_stride) / sizeof(uint16_t); in lv_color_blend_to_rgb565_with_mask_arm2d()
241 __arm_2d_impl_rgb565_colour_filling_mask((uint16_t *)dsc->dest_buf, in lv_color_blend_to_rgb565_with_mask_arm2d()
253 int16_t stride = (dsc->dest_stride) / sizeof(uint16_t); in lv_color_blend_to_rgb565_mix_mask_opa_arm2d()
254 __arm_2d_impl_rgb565_colour_filling_mask_opacity((uint16_t *)dsc->dest_buf, in lv_color_blend_to_rgb565_mix_mask_opa_arm2d()
268 int16_t des_stride = dsc->dest_stride / sizeof(uint16_t); in lv_rgb565_blend_normal_to_rgb565_arm2d()
269 int16_t src_stride = dsc->src_stride / sizeof(uint16_t); in lv_rgb565_blend_normal_to_rgb565_arm2d()
[all …]
/lvgl-latest/src/libs/gif/
Dgifdec.h19 uint16_t delay;
34 uint16_t width, height;
35 uint16_t depth;
41 struct _gd_GIF * gif, uint16_t tx, uint16_t ty,
42 uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
47 uint16_t fx, fy, fw, fh;
Dgifdec_mve.h41 static inline void _gifdec_fill_bg_mve(uint8_t * dst, uint16_t w, uint16_t h, uint16_t stride, uint… in _gifdec_fill_bg_mve()
70 static inline void _gifdec_render_frame_mve(uint8_t * dst, uint16_t w, uint16_t h, uint16_t stride,… in _gifdec_render_frame_mve()
71 uint8_t * pattern, uint16_t tindex) in _gifdec_render_frame_mve()
/lvgl-latest/src/draw/nxp/pxp/
Dlv_draw_buf_pxp.c86 uint16_t align_pixels = align_bytes * 8 / bits_per_pixel; in _invalidate_cache()
87 uint16_t offset_x = 0; in _invalidate_cache()
90 uint16_t shift_x = area->x1 - (area->x1 % align_pixels); in _invalidate_cache()
97 uint16_t shift_y = area->y1; in _invalidate_cache()
105 uint16_t line_pixels = offset_x + lv_area_get_width(area); in _invalidate_cache()
106 uint16_t line_size = (line_pixels * bits_per_pixel) / 8; in _invalidate_cache()
107 uint16_t area_height = lv_area_get_height(area); in _invalidate_cache()
109 for(uint16_t y = 0; y < area_height; y++) { in _invalidate_cache()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_buf_vglite.c91 uint16_t align_pixels = align_bytes * 8 / bits_per_pixel; in _invalidate_cache()
92 uint16_t offset_x = 0; in _invalidate_cache()
95 uint16_t shift_x = area->x1 - (area->x1 % align_pixels); in _invalidate_cache()
102 uint16_t shift_y = area->y1; in _invalidate_cache()
110 uint16_t line_pixels = offset_x + lv_area_get_width(area); in _invalidate_cache()
111 uint16_t line_size = (line_pixels * bits_per_pixel) / 8; in _invalidate_cache()
112 uint16_t area_height = lv_area_get_height(area); in _invalidate_cache()
114 for(uint16_t y = 0; y < area_height; y++) { in _invalidate_cache()
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch.h48 typedef void (*lv_smartwatch_music_control_cb_t)(uint16_t);
50 typedef void (*lv_smartwatch_notification_click_cb_t)(uint16_t);
52 typedef void (*lv_smartwatch_settings_change_cb_t)(uint16_t, uint64_t);
106 bool lv_demo_smartwatch_face_load(uint16_t index);
257 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_…
269 lv_obj_t * lv_demo_smartwatch_settings_add_toggle(uint16_t id, const char * name, const lv_img_dsc_…
279 lv_obj_t * lv_demo_smartwatch_settings_add_dropdown(uint16_t id, const char * name, const lv_img_ds…
289 lv_obj_t * lv_demo_smartwatch_settings_add_label(uint16_t id, const char * name, const lv_img_dsc_t…
Dlv_demo_smartwatch_settings.h55 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_…
67 lv_obj_t * lv_demo_smartwatch_settings_add_toggle(uint16_t id, const char * name, const lv_img_dsc_…
77 lv_obj_t * lv_demo_smartwatch_settings_add_dropdown(uint16_t id, const char * name, const lv_img_ds…
87 lv_obj_t * lv_demo_smartwatch_settings_add_label(uint16_t id, const char * name, const lv_img_dsc_t…
/lvgl-latest/src/widgets/table/
Dlv_table.h134 void lv_table_set_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col, void * user_data);
142 void lv_table_set_selected_cell(lv_obj_t * obj, uint16_t row, uint16_t col);
203 void * lv_table_get_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col);
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_table.c30 uint16_t row = 0; in test_table_should_return_assigned_cell_value()
31 uint16_t column = 0; in test_table_should_return_assigned_cell_value()
42 uint16_t original_column_count = lv_table_get_column_count(table); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
49 uint16_t expected_column_count = original_column_count + 1; in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
211 const uint16_t initial_col_num = 8; in test_table_should_reduce_cells()
212 const uint16_t initial_row_num = 1; in test_table_should_reduce_cells()
213 const uint16_t final_col_num = 4; in test_table_should_reduce_cells()
214 const uint16_t final_row_num = 1; in test_table_should_reduce_cells()
241 const uint16_t initial_col_num = 8; in test_table_should_reduce_cells_with_more_than_one_row()
242 const uint16_t initial_row_num = 2; in test_table_should_reduce_cells_with_more_than_one_row()
[all …]
Dtest_line.c10 static const uint16_t default_point_num = 0U;
45 uint16_t point_cnt = (uint16_t) sizeof(points) / sizeof(lv_point_precise_t); in test_line_size_should_be_updated_after_adding_points()
52 uint16_t point_idx = 0; in test_line_size_should_be_updated_after_adding_points()
99 uint16_t point_cnt = (uint16_t) sizeof(points) / sizeof(lv_point_precise_t); in test_line_basic_render()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_utils.c95 static void rotate90_rgb565(const uint16_t * src, uint16_t * dst, int32_t src_width, int32_t src_he…
98 static void rotate180_rgb565(const uint16_t * src, uint16_t * dst, int32_t width, int32_t height, i…
100 static void rotate270_rgb565(const uint16_t * src, uint16_t * dst, int32_t src_width, int32_t src_h…
154 uint16_t * buf16 = buf; in lv_draw_sw_rgb565_swap()
467 static void rotate270_rgb565(const uint16_t * src, uint16_t * dst, int32_t src_width, int32_t src_h… in rotate270_rgb565()
475 src_stride /= sizeof(uint16_t); in rotate270_rgb565()
476 dst_stride /= sizeof(uint16_t); in rotate270_rgb565()
488 static void rotate180_rgb565(const uint16_t * src, uint16_t * dst, int32_t width, int32_t height, i… in rotate180_rgb565()
495 src_stride /= sizeof(uint16_t); in rotate180_rgb565()
496 dest_stride /= sizeof(uint16_t); in rotate180_rgb565()
[all …]
/lvgl-latest/src/drivers/display/lcd/
Dlv_lcd_generic_mipi.h163 uint16_t x_gap; /* x offset of the (0,0) pixel in VRAM */
164 uint16_t y_gap; /* y offset of the (0,0) pixel in VRAM */
194 void lv_lcd_generic_mipi_set_gap(lv_display_t * disp, uint16_t x, uint16_t y);

12345678