Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 100) sorted by relevance

1234

/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_line.c31 lv_coord_t width; member
82 lv_area_t extension = {dsc->width / 2, dsc->width / 2, dsc->width / 2, dsc->width / 2}; in lv_draw_sdl_draw_line()
91 SDL_Rect srcrect = {0, 0, (int) length + dsc->width + 2, dsc->width + 2}, in lv_draw_sdl_draw_line()
92 dstrect = {t_coords.x1 - 1 - dsc->width / 2, t_coords.y1 - 1, srcrect.w, srcrect.h}; in lv_draw_sdl_draw_line()
93 SDL_Point center = {1 + dsc->width / 2, 1 + dsc->width / 2}; in lv_draw_sdl_draw_line()
116 key.width = dsc->width; in line_key_create()
124 length + dsc->width + 2, dsc->width + 2); in line_texture_create()
134 SDL_Rect line_rect = {1 + dsc->width / 2, 1, length, dsc->width}; in line_texture_create()
138 lv_area_t round_area = {0, 0, dsc->width - 1, dsc->width - 1}; in line_texture_create()
145 SDL_Rect round_src = {0, 0, dsc->width, dsc->width}; in line_texture_create()
[all …]
Dlv_draw_sdl_utils.c121 SDL_Surface * lv_sdl_create_opa_surface(lv_opa_t * opa, lv_coord_t width, lv_coord_t height, lv_coo… in lv_sdl_create_opa_surface() argument
123 SDL_Surface * indexed = SDL_CreateRGBSurfaceFrom(opa, width, height, 8, stride, 0, 0, 0, 0); in lv_sdl_create_opa_surface()
130 …L_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t width, in lv_sdl_create_opa_texture() argument
133 SDL_Surface * indexed = lv_sdl_create_opa_surface(pixels, width, height, stride); in lv_sdl_create_opa_texture()
139 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t… in lv_sdl_to_8bpp() argument
141 int src_len = width * height; in lv_sdl_to_8bpp()
172 dest[(cur / width * stride) + (cur % width)] = opa_table[src_bits]; in lv_sdl_to_8bpp()
Dlv_draw_sdl_utils.h49 SDL_Surface * lv_sdl_create_opa_surface(lv_opa_t * opa, lv_coord_t width, lv_coord_t height, lv_coo…
51 …L_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t width,
54 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t…
Dlv_draw_sdl_arc.c65 area_in.x1 += dsc->width; in lv_draw_sdl_draw_arc()
66 area_in.y1 += dsc->width; in lv_draw_sdl_draw_arc()
67 area_in.x2 -= dsc->width; in lv_draw_sdl_draw_arc()
68 area_in.y2 -= dsc->width; in lv_draw_sdl_draw_arc()
97 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc()
98 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc()
99 lv_draw_mask_radius_init(&cap_start_param, &start_area, dsc->width / 2, false); in lv_draw_sdl_draw_arc()
101 lv_draw_mask_radius_init(&cap_end_param, &end_area, dsc->width / 2, false); in lv_draw_sdl_draw_arc()
Dlv_draw_sdl_texture_cache.c38 lv_coord_t width, height; member
108 int access, width, height; in lv_draw_sdl_texture_cache_put_advanced() local
109 if(SDL_QueryTexture(texture, &format, &access, &width, &height) != 0) { in lv_draw_sdl_texture_cache_put_advanced()
112 LV_LOG_INFO("cache texture %p, %d*%d@%dbpp", texture, width, height, SDL_BITSPERPIXEL(format)); in lv_draw_sdl_texture_cache_put_advanced()
113 …return lv_lru_set(lru, key, key_length, value, width * height * SDL_BITSPERPIXEL(format) / 8) == L… in lv_draw_sdl_texture_cache_put_advanced()
/lvgl-latest/src/misc/
Dlv_printf.c169 unsigned int width, unsigned int flags) in _out_rev() argument
176 for(i = len; i < width; i++) { in _out_rev()
188 while(idx - start_idx < width) { in _out_rev()
198 … bool negative, unsigned int base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_format() argument
202 if(width && (flags & FLAGS_ZEROPAD) && (negative || (flags & (FLAGS_PLUS | FLAGS_SPACE)))) { in _ntoa_format()
203 width--; in _ntoa_format()
208 while((flags & FLAGS_ZEROPAD) && (len < width) && (len < PRINTF_NTOA_BUFFER_SIZE)) { in _ntoa_format()
215 if(!(flags & FLAGS_PRECISION) && len && ((len == prec) || (len == width))) { in _ntoa_format()
247 return _out_rev(out, buffer, idx, maxlen, buf, len, width, flags); in _ntoa_format()
252 … unsigned long base, unsigned int prec, unsigned int width, unsigned int flags) in _ntoa_long() argument
[all …]
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_rect_pack.h138 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes…
186 int width; member
259 context->align = (context->width + context->num_nodes - 1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
263 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes… in stbrp_init_target() argument
274 context->width = width; in stbrp_init_target()
283 context->extra[1].x = (stbrp_coord) width; in stbrp_init_target()
289 static int stbrp__skyline_find_min_y(stbrp_context * c, stbrp_node * first, int x0, int width, int … in stbrp__skyline_find_min_y() argument
292 int x1 = x0 + width; in stbrp__skyline_find_min_y()
328 if(under_width + visited_width > width) in stbrp__skyline_find_min_y()
329 under_width = width - visited_width; in stbrp__skyline_find_min_y()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_arc.c31 lv_coord_t width; member
65 if(dsc->width == 0) return; in lv_draw_sw_arc()
68 lv_coord_t width = dsc->width; in lv_draw_sw_arc() local
69 if(width > radius) width = radius; in lv_draw_sw_arc()
92 area_in.x1 += dsc->width; in lv_draw_sw_arc()
93 area_in.y1 += dsc->width; in lv_draw_sw_arc()
94 area_in.x2 -= dsc->width; in lv_draw_sw_arc()
95 area_in.y2 -= dsc->width; in lv_draw_sw_arc()
153 q_dsc.width = width; in lv_draw_sw_arc()
182 get_rounded_area(start_angle, radius, width, &round_area); in lv_draw_sw_arc()
[all …]
Dlv_draw_sw_line.c55 if(dsc->width == 0) return; in lv_draw_sw_line()
61 clip_line.x1 = LV_MIN(point1->x, point2->x) - dsc->width / 2; in lv_draw_sw_line()
62 clip_line.x2 = LV_MAX(point1->x, point2->x) + dsc->width / 2; in lv_draw_sw_line()
63 clip_line.y1 = LV_MIN(point1->y, point2->y) - dsc->width / 2; in lv_draw_sw_line()
64 clip_line.y2 = LV_MAX(point1->y, point2->y) + dsc->width / 2; in lv_draw_sw_line()
83 int32_t r = (dsc->width >> 1); in lv_draw_sw_line()
84 int32_t r_corr = (dsc->width & 1) ? 0 : 1; in lv_draw_sw_line()
114 int32_t w = dsc->width - 1; in draw_line_hor()
200 int32_t w = dsc->width - 1; in draw_line_ver()
309 int32_t w = dsc->width; in draw_line_skew()
/lvgl-latest/src/extra/widgets/meter/
Dlv_meter.h73 uint16_t width; member
78 uint16_t width; member
144 …t_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t width, uint16_t len,
158 …meter_set_scale_major_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_t width,
186 …er_indicator_t * lv_meter_add_needle_line(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width,
211 lv_meter_indicator_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, l…
Dlv_meter.c87 …t_scale_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t cnt, uint16_t width, uint16_t len, in lv_meter_set_scale_ticks() argument
91 scale->tick_width = width; in lv_meter_set_scale_ticks()
97 …meter_set_scale_major_ticks(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t nth, uint16_t width, in lv_meter_set_scale_major_ticks() argument
101 scale->tick_major_width = width; in lv_meter_set_scale_major_ticks()
122 …er_indicator_t * lv_meter_add_needle_line(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, in lv_meter_add_needle_line() argument
134 indic->type_data.needle_line.width = width; in lv_meter_add_needle_line()
162 lv_meter_indicator_t * lv_meter_add_arc(lv_obj_t * obj, lv_meter_scale_t * scale, uint16_t width, l… in lv_meter_add_arc() argument
174 indic->type_data.arc.width = width; in lv_meter_add_arc()
353 arc_dsc.width = indic->type_data.arc.width; in draw_arcs()
481 line_dsc.width = line_width; in draw_ticks_and_labels()
[all …]
/lvgl-latest/src/extra/libs/ffmpeg/
Dlv_ffmpeg.c174 int width = player->ffmpeg_ctx->video_dec_ctx->width; in lv_ffmpeg_player_set_src() local
179 data_size = width * height * LV_IMG_PX_SIZE_ALPHA_BYTE; in lv_ffmpeg_player_set_src()
182 data_size = width * height * LV_COLOR_SIZE / 8; in lv_ffmpeg_player_set_src()
186 player->imgdsc.header.w = width; in lv_ffmpeg_player_set_src()
390 int width = ffmpeg_ctx->video_dec_ctx->width; in ffmpeg_output_video_frame() local
394 if(frame->width != width in ffmpeg_output_video_frame()
406 width, in ffmpeg_output_video_frame()
409 frame->width, frame->height, in ffmpeg_output_video_frame()
421 ffmpeg_ctx->video_dec_ctx->pix_fmt, width, height); in ffmpeg_output_video_frame()
435 if((width & 0x7) || (height & 0x7)) { in ffmpeg_output_video_frame()
[all …]
/lvgl-latest/scripts/
Djpg_to_sjpg.py32 width, height = im.size variable
36 print("\tRES = " + str(width) + " x " + str(height) + '\n')
52 crop = im.crop((0, i*block_size, width, row_remaining + i*block_size))
54 crop = im.crop((0, i*block_size, width, block_size + i*block_size))
78 header = header + width.to_bytes(2, byteorder='little');
119 c_code = c_code + "\t.header.w = " + str(width) + ",\n"
/lvgl-latest/tests/unity/
Dunity_support.c38 int width, height; member
52 static int write_png_file(void * raw_img, uint32_t width, uint32_t height, char * file_name);
102 for(x = 0; x < p.width; x++) { in lv_test_assert_img_eq()
183 p->width = png_get_image_width(p->png_ptr, p->info_ptr); in read_png_file()
209 static int write_png_file(void * raw_img, uint32_t width, uint32_t height, char * file_name) in write_png_file() argument
251 png_set_IHDR(png_ptr, info_ptr, width, height, in write_png_file()
267 row_pointers[y] = malloc(3 * width); in write_png_file()
268 uint8_t * line = raw_img8 + y * width * 4; in write_png_file()
269 for(uint32_t x = 0; x < width; x++) { in write_png_file()
/lvgl-latest/docs/widgets/core/
Dbtnmatrix.md21 …E.g. `{"btn1", "btn2", "\n", "btn3", ""}`. Each line's buttons have their width calculated automat…
22 … the first row will have 2 buttons each with 50% width and a second row with 1 button having 100%
25 The buttons' width can be set relative to the other button in the same row with `lv_btnmatrix_set_b…
26 …line with two buttons: *btnA, width = 1* and *btnB, width = 2*, *btnA* will have 33 % width and *b…
28 The width must be in the \[1..15\] range and the default width is 1.
30 In addition to the width, each button can be customized with the following parameters:
51 An element of `ctrl_map` should look like `ctrl_map[0] = width | LV_BTNM_CTRL_NO_REPEAT | LV_BTNM_…
/lvgl-latest/src/extra/libs/gif/
Dgifdec.c71 uint16_t width, height, depth; in gif_open() local
91 width = read_num(gif_base); in gif_open()
111 gif = lv_mem_alloc(sizeof(gd_GIF) + 5 * width * height); in gif_open()
113 gif = lv_mem_alloc(sizeof(gd_GIF) + 4 * width * height); in gif_open()
115 gif = lv_mem_alloc(sizeof(gd_GIF) + 3 * width * height); in gif_open()
120 gif->width = width; 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()
134 gif->frame = &gif->canvas[2 * width * height]; in gif_open()
137 memset(gif->frame, gif->bgindex, gif->width * gif->height); in gif_open()
[all …]
/lvgl-latest/src/extra/libs/rlottie/
Dlv_rlottie.c55 lv_obj_t * lv_rlottie_create_from_file(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, cons… in lv_rlottie_create_from_file() argument
58 create_width = width; in lv_rlottie_create_from_file()
71 lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, const… in lv_rlottie_create_from_raw() argument
74 create_width = width; in lv_rlottie_create_from_raw()
184 static void convert_to_rgba5658(uint32_t * pix, const size_t width, const size_t height) in convert_to_rgba5658() argument
207 for(size_t x = 0; x < width; x++) { in convert_to_rgba5658()
220 src += width; in convert_to_rgba5658()
Dlv_rlottie.h57 lv_obj_t * lv_rlottie_create_from_file(lv_obj_t * parent, lv_coord_t width, lv_coord_t height, cons…
59 lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t * parent, lv_coord_t width, lv_coord_t height,
/lvgl-latest/src/extra/widgets/span/
Dlv_span.c64 static lv_coord_t convert_indent_pct(lv_obj_t * spans, lv_coord_t width);
329 lv_coord_t width = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_spangroup_refr_mode() local
330 if(LV_COORD_IS_PCT(width)) { in lv_spangroup_refr_mode()
331 width = 100; in lv_spangroup_refr_mode()
333 lv_coord_t height = lv_spangroup_get_expand_height(obj, width); in lv_spangroup_refr_mode()
368 uint32_t width = LV_COORD_IS_PCT(spans->indent) ? 0 : spans->indent; in lv_spangroup_get_expand_width() local
378 if(max_width > 0 && width >= max_width) { in lv_spangroup_get_expand_width()
384 width = width + letter_w + letter_space; in lv_spangroup_get_expand_width()
388 return width - letter_space; in lv_spangroup_get_expand_width()
391 lv_coord_t lv_spangroup_get_expand_height(lv_obj_t * obj, lv_coord_t width) in lv_spangroup_get_expand_height() argument
[all …]
/lvgl-latest/src/draw/
Dlv_draw_line.c40 dsc->width = 1; in lv_draw_line_dsc_init()
48 if(dsc->width == 0) return; in lv_draw_line()
/lvgl-latest/docs/overview/
Dcoords.md8 - support min-width, max-width, min-height, max-height
10 … y=0 coordinate means the top-left corner of the parent plus the left/top padding plus border width
11 - width/height means the full size, the "content area" is smaller with padding and border width
17 - `LV_SIZE_CONTENT`: Special value to set the width/height of an object to involve all the children…
22 - bounding box: the width/height of the elements.
23 - border width: the width of the border.
25 - content: the content area which is the size of the bounding box reduced by the border width and p…
27 …content area is smaller than the bounding box with the padding and border width](/misc/boxmodel.pn…
87 lv_obj_set_x(btn, lv_pct(10)); //x = 10 % of parent content area width
153 The width and the height of an object can be set easily as well:
[all …]
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_2.c57 dsc->line_dsc->width = 2; in draw_event_cb()
62 dsc->line_dsc->width = 1; in draw_event_cb()
70 dsc->line_dsc->width = 2; in draw_event_cb()
75 dsc->line_dsc->width = 2; in draw_event_cb()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_line.c90 lv_coord_t width = dsc->width; in lv_gpu_nxp_vglite_draw_line() local
115 …err = vg_lite_set_stroke(&path, cap_style, join_style, width, 8, stroke_dash_pattern, stroke_dash_… in lv_gpu_nxp_vglite_draw_line()
/lvgl-latest/src/draw/stm32_dma2d/
Dlv_gpu_stm32_dma2d.h65 lv_coord_t width, lv_coord_t height, uint8_t pixel_size);
66 void _lv_gpu_stm32_dma2d_clean_cache(uint32_t address, lv_coord_t offset, lv_coord_t width,
/lvgl-latest/docs/libs/
Dgif.md25 - `LV_COLOR_DEPTH 8`: 3 x image width x image height
26 - `LV_COLOR_DEPTH 16`: 4 x image width x image height
27 - `LV_COLOR_DEPTH 32`: 5 x image width x image height

1234