Home
last modified time | relevance | path

Searched refs:dsc (Results 1 – 25 of 52) sorted by relevance

123

/lvgl-2.7.6/src/lv_draw/
Dlv_img_buf.c52 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color) in lv_img_buf_get_px_color() argument
55 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_color()
57 …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()
58 dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA) { in lv_img_buf_get_px_color()
59 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color()
60 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color()
66 else if(dsc->header.cf == LV_IMG_CF_INDEXED_1BIT) { in lv_img_buf_get_px_color()
74 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color()
77 else if(dsc->header.cf == LV_IMG_CF_INDEXED_2BIT) { in lv_img_buf_get_px_color()
85 uint32_t px = ((dsc->header.w + 3) >> 2) * y + x; in lv_img_buf_get_px_color()
[all …]
Dlv_img_decoder.c40 static lv_res_t lv_img_decoder_built_in_line_true_color(lv_img_decoder_dsc_t * dsc, lv_coord_t x, l…
42 static lv_res_t lv_img_decoder_built_in_line_alpha(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coo…
44 static lv_res_t lv_img_decoder_built_in_line_indexed(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_c…
121 lv_res_t lv_img_decoder_open(lv_img_decoder_dsc_t * dsc, const void * src, lv_color_t color) in lv_img_decoder_open() argument
123 dsc->color = color; in lv_img_decoder_open()
124 dsc->src_type = lv_img_src_get_type(src); in lv_img_decoder_open()
125 dsc->user_data = NULL; in lv_img_decoder_open()
127 if(dsc->src_type == LV_IMG_SRC_FILE) { in lv_img_decoder_open()
129 dsc->src = lv_mem_alloc(fnlen + 1); in lv_img_decoder_open()
130 strcpy((char *)dsc->src, src); in lv_img_decoder_open()
[all …]
Dlv_img_buf.h213 lv_color_t lv_img_buf_get_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t color…
223 lv_opa_t lv_img_buf_get_px_alpha(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y);
233 void lv_img_buf_set_px_color(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_color_t c);
243 void lv_img_buf_set_px_alpha(lv_img_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_opa_t opa);
255 void lv_img_buf_set_palette(lv_img_dsc_t * dsc, uint8_t id, lv_color_t c);
261 void lv_img_buf_free(lv_img_dsc_t * dsc);
278 void _lv_img_buf_transform_init(lv_img_transform_dsc_t * dsc);
284 bool _lv_img_buf_transform_anti_alias(lv_img_transform_dsc_t * dsc);
295 static inline bool _lv_img_buf_transform(lv_img_transform_dsc_t * dsc, lv_coord_t x, lv_coord_t y) in _lv_img_buf_transform() argument
297 const uint8_t * src_u8 = (const uint8_t *)dsc->cfg.src; in _lv_img_buf_transform()
[all …]
Dlv_draw_rect.c31 const lv_draw_rect_dsc_t * dsc);
33 const lv_draw_rect_dsc_t * dsc);
36 …oid draw_outline(const lv_area_t * coords, const lv_area_t * clip, const lv_draw_rect_dsc_t * dsc);
40 const lv_draw_rect_dsc_t * dsc);
47 …oid draw_pattern(const lv_area_t * coords, const lv_area_t * clip, const lv_draw_rect_dsc_t * dsc);
51 …d draw_value_str(const lv_area_t * coords, const lv_area_t * clip, const lv_draw_rect_dsc_t * dsc);
55 LV_ATTRIBUTE_FAST_MEM static inline lv_color_t grad_get(const lv_draw_rect_dsc_t * dsc, lv_coord_t …
74 LV_ATTRIBUTE_FAST_MEM void lv_draw_rect_dsc_init(lv_draw_rect_dsc_t * dsc) in lv_draw_rect_dsc_init() argument
76 _lv_memset_00(dsc, sizeof(lv_draw_rect_dsc_t)); in lv_draw_rect_dsc_init()
77 dsc->bg_color = LV_COLOR_WHITE; in lv_draw_rect_dsc_init()
[all …]
Dlv_draw_line.c29 const lv_draw_line_dsc_t * dsc);
32 const lv_draw_line_dsc_t * dsc);
35 const lv_draw_line_dsc_t * dsc);
49 LV_ATTRIBUTE_FAST_MEM void lv_draw_line_dsc_init(lv_draw_line_dsc_t * dsc) in lv_draw_line_dsc_init() argument
51 _lv_memset_00(dsc, sizeof(lv_draw_line_dsc_t)); in lv_draw_line_dsc_init()
52 dsc->width = 1; in lv_draw_line_dsc_init()
53 dsc->opa = LV_OPA_COVER; in lv_draw_line_dsc_init()
54 dsc->color = LV_COLOR_BLACK; in lv_draw_line_dsc_init()
65 const lv_draw_line_dsc_t * dsc) in lv_draw_line() argument
67 if(dsc->width == 0) return; in lv_draw_line()
[all …]
Dlv_draw_label.c93 LV_ATTRIBUTE_FAST_MEM void lv_draw_label_dsc_init(lv_draw_label_dsc_t * dsc) in lv_draw_label_dsc_init() argument
95 _lv_memset_00(dsc, sizeof(lv_draw_label_dsc_t)); in lv_draw_label_dsc_init()
96 dsc->opa = LV_OPA_COVER; in lv_draw_label_dsc_init()
97 dsc->color = LV_COLOR_BLACK; in lv_draw_label_dsc_init()
98 dsc->font = LV_THEME_DEFAULT_FONT_NORMAL; in lv_draw_label_dsc_init()
99 dsc->sel_start = LV_DRAW_LABEL_NO_TXT_SEL; in lv_draw_label_dsc_init()
100 dsc->sel_end = LV_DRAW_LABEL_NO_TXT_SEL; in lv_draw_label_dsc_init()
101 dsc->sel_color = LV_COLOR_BLUE; in lv_draw_label_dsc_init()
102 dsc->bidi_dir = LV_BIDI_DIR_LTR; in lv_draw_label_dsc_init()
115 const lv_draw_label_dsc_t * dsc, in lv_draw_label() argument
[all …]
Dlv_img_decoder.h64 …s_t (*lv_img_decoder_open_f_t)(struct _lv_img_decoder * decoder, struct _lv_img_decoder_dsc * dsc);
77 …(*lv_img_decoder_read_line_f_t)(struct _lv_img_decoder * decoder, struct _lv_img_decoder_dsc * dsc,
85 …id (*lv_img_decoder_close_f_t)(struct _lv_img_decoder * decoder, struct _lv_img_decoder_dsc * dsc);
164 lv_res_t lv_img_decoder_open(lv_img_decoder_dsc_t * dsc, const void * src, lv_color_t color);
175 lv_res_t lv_img_decoder_read_line(lv_img_decoder_dsc_t * dsc, lv_coord_t x, lv_coord_t y, lv_coord_…
182 void lv_img_decoder_close(lv_img_decoder_dsc_t * dsc);
239 lv_res_t lv_img_decoder_built_in_open(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc);
252 lv_res_t lv_img_decoder_built_in_read_line(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc, …
260 void lv_img_decoder_built_in_close(lv_img_decoder_t * decoder, lv_img_decoder_dsc_t * dsc);
Dlv_draw_mask.h74 lv_draw_mask_common_dsc_t dsc; member
113 lv_draw_mask_common_dsc_t dsc; member
128 lv_draw_mask_common_dsc_t dsc; member
143 lv_draw_mask_common_dsc_t dsc; member
157 lv_draw_mask_common_dsc_t dsc; member
Dlv_draw_arc.c72 const lv_area_t * clip_area, const lv_draw_line_dsc_t * dsc) in lv_draw_arc() argument
74 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_arc()
75 if(dsc->width == 0) return; in lv_draw_arc()
78 lv_style_int_t width = dsc->width; in lv_draw_arc()
85 cir_dsc.border_opa = dsc->opa; in lv_draw_arc()
86 cir_dsc.border_color = dsc->color; in lv_draw_arc()
88 cir_dsc.border_blend_mode = dsc->blend_mode; in lv_draw_arc()
142 if(dsc->round_start || dsc->round_end) { in lv_draw_arc()
143 cir_dsc.bg_color = dsc->color; in lv_draw_arc()
144 cir_dsc.bg_opa = dsc->opa; in lv_draw_arc()
[all …]
Dlv_draw_line.h50 const lv_draw_line_dsc_t * dsc);
52 LV_ATTRIBUTE_FAST_MEM void lv_draw_line_dsc_init(lv_draw_line_dsc_t * dsc);
Dlv_draw_img.c53 void lv_draw_img_dsc_init(lv_draw_img_dsc_t * dsc) in lv_draw_img_dsc_init() argument
55 _lv_memset_00(dsc, sizeof(lv_draw_img_dsc_t)); in lv_draw_img_dsc_init()
56 dsc->recolor = LV_COLOR_BLACK; in lv_draw_img_dsc_init()
57 dsc->opa = LV_OPA_COVER; in lv_draw_img_dsc_init()
58 dsc->zoom = LV_IMG_ZOOM_NONE; in lv_draw_img_dsc_init()
59 dsc->antialias = LV_ANTIALIAS; in lv_draw_img_dsc_init()
70 …(const lv_area_t * coords, const lv_area_t * mask, const void * src, const lv_draw_img_dsc_t * dsc) in lv_draw_img() argument
78 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_img()
81 res = lv_img_draw_core(coords, mask, src, dsc); in lv_draw_img()
Dlv_draw_img.h50 void lv_draw_img_dsc_init(lv_draw_img_dsc_t * dsc);
58 …const lv_area_t * coords, const lv_area_t * mask, const void * src, const lv_draw_img_dsc_t * dsc);
Dlv_draw_label.h69 LV_ATTRIBUTE_FAST_MEM void lv_draw_label_dsc_init(lv_draw_label_dsc_t * dsc);
81 const lv_draw_label_dsc_t * dsc,
Dlv_draw_rect.h88 LV_ATTRIBUTE_FAST_MEM void lv_draw_rect_dsc_init(lv_draw_rect_dsc_t * dsc);
98 void lv_draw_rect(const lv_area_t * coords, const lv_area_t * mask, const lv_draw_rect_dsc_t * dsc);
Dlv_draw_mask.c108 lv_draw_mask_common_dsc_t * dsc; in lv_draw_mask_apply() local
113 dsc = m->param; in lv_draw_mask_apply()
115 res = dsc->cb(mask_buf, abs_x, abs_y, len, (void *)m->param); in lv_draw_mask_apply()
216 param->dsc.cb = (lv_draw_mask_xcb_t)lv_draw_mask_line; in lv_draw_mask_line_points_init()
217 param->dsc.type = LV_DRAW_MASK_TYPE_LINE; in lv_draw_mask_line_points_init()
334 param->dsc.cb = (lv_draw_mask_xcb_t)lv_draw_mask_angle; in lv_draw_mask_angle_init()
335 param->dsc.type = LV_DRAW_MASK_TYPE_ANGLE; in lv_draw_mask_angle_init()
381 param->dsc.cb = (lv_draw_mask_xcb_t)lv_draw_mask_radius; in lv_draw_mask_radius_init()
382 param->dsc.type = LV_DRAW_MASK_TYPE_RADIUS; in lv_draw_mask_radius_init()
407 param->dsc.cb = (lv_draw_mask_xcb_t)lv_draw_mask_fade; in lv_draw_mask_fade_init()
[all …]
Dlv_draw_arc.h42 const lv_area_t * clip_area, const lv_draw_line_dsc_t * dsc);
/lvgl-2.7.6/src/lv_widgets/
Dlv_canvas.c94 ext->dsc.header.always_zero = 0; in lv_canvas_create()
95 ext->dsc.header.cf = LV_IMG_CF_TRUE_COLOR; in lv_canvas_create()
96 ext->dsc.header.h = 0; in lv_canvas_create()
97 ext->dsc.header.w = 0; in lv_canvas_create()
98 ext->dsc.data_size = 0; in lv_canvas_create()
99 ext->dsc.data = NULL; in lv_canvas_create()
101 lv_img_set_src(new_canvas, &ext->dsc); in lv_canvas_create()
146 ext->dsc.header.cf = cf; in lv_canvas_set_buffer()
147 ext->dsc.header.w = w; in lv_canvas_set_buffer()
148 ext->dsc.header.h = h; in lv_canvas_set_buffer()
[all …]
Dlv_objmask.c114 lv_draw_mask_common_dsc_t * dsc = param; in lv_objmask_add_mask() local
115 uint16_t param_size = get_param_size(dsc->type); in lv_objmask_add_mask()
142 lv_draw_mask_common_dsc_t * dsc = param; in lv_objmask_update_mask() local
144 memcpy(mask->param, param, get_param_size(dsc->type)); in lv_objmask_update_mask()
230 lv_draw_mask_common_dsc_t * dsc = m->param; in lv_objmask_design() local
232 if(dsc->type == LV_DRAW_MASK_TYPE_LINE) { in lv_objmask_design()
241 else if(dsc->type == LV_DRAW_MASK_TYPE_ANGLE) { in lv_objmask_design()
249 else if(dsc->type == LV_DRAW_MASK_TYPE_RADIUS) { in lv_objmask_design()
262 else if(dsc->type == LV_DRAW_MASK_TYPE_FADE) { in lv_objmask_design()
276 else if(dsc->type == LV_DRAW_MASK_TYPE_MAP) { in lv_objmask_design()
Dlv_canvas.h35 lv_img_dsc_t dsc; member
/lvgl-2.7.6/src/lv_font/
Dlv_font_loader.c127 lv_font_fmt_txt_dsc_t * dsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in lv_font_free() local
129 if(NULL != dsc) { in lv_font_free()
131 if(dsc->kern_classes == 0) { in lv_font_free()
133 (lv_font_fmt_txt_kern_pair_t *) dsc->kern_dsc; in lv_font_free()
147 (lv_font_fmt_txt_kern_classes_t *) dsc->kern_dsc; in lv_font_free()
164 (lv_font_fmt_txt_cmap_t *) dsc->cmaps; in lv_font_free()
167 for(int i = 0; i < dsc->cmap_num; ++i) { in lv_font_free()
176 if(NULL != dsc->glyph_bitmap) { in lv_font_free()
177 lv_mem_free((void *) dsc->glyph_bitmap); in lv_font_free()
179 if(NULL != dsc->glyph_dsc) { in lv_font_free()
[all …]
Dlv_font_fmt_txt.c88 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in lv_font_get_bitmap_fmt_txt()
156 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in lv_font_get_glyph_dsc_fmt_txt()
211 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in get_glyph_dsc_id()
268 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in get_kern_value()
Dlv_font.h78 …void * dsc; /**< Store implementation specific or run_time data or caching her… member
/lvgl-2.7.6/src/lv_core/
Dlv_refr.c510 lv_draw_img_dsc_t dsc; in lv_refr_area_part() local
511 lv_draw_img_dsc_init(&dsc); in lv_refr_area_part()
512 dsc.opa = disp_refr->bg_opa; in lv_refr_area_part()
519 lv_draw_img(&a, &start_mask, disp_refr->bg_img, &dsc); in lv_refr_area_part()
526 lv_draw_rect_dsc_t dsc; in lv_refr_area_part() local
527 lv_draw_rect_dsc_init(&dsc); in lv_refr_area_part()
528 dsc.bg_color = disp_refr->bg_color; in lv_refr_area_part()
529 dsc.bg_opa = disp_refr->bg_opa; in lv_refr_area_part()
530 lv_draw_rect(&start_mask, &start_mask, &dsc); in lv_refr_area_part()
/lvgl-2.7.6/examples/
DLVGL_Arduino.ino10 void my_print(lv_log_level_t level, const char * file, uint32_t line, const char * dsc)
13 Serial.printf("%s@%d->%s\r\n", file, line, dsc);
/lvgl-2.7.6/tests/lv_test_core/
Dlv_test_font_loader.c82 lv_font_fmt_txt_dsc_t * dsc1 = (lv_font_fmt_txt_dsc_t *) f1->dsc; in compare_fonts()
83 lv_font_fmt_txt_dsc_t * dsc2 = (lv_font_fmt_txt_dsc_t *) f2->dsc; in compare_fonts()

123