/lvgl-latest/src/draw/ |
D | lv_img_buf.c | 44 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_color() 46 …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() 47 dsc->header.cf == LV_IMG_CF_TRUE_COLOR_ALPHA || dsc->header.cf == LV_IMG_CF_RGB565A8) { in lv_img_buf_get_px_color() 48 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color() 49 uint32_t px = dsc->header.w * y * px_size + x * px_size; in lv_img_buf_get_px_color() 55 else if(dsc->header.cf == LV_IMG_CF_INDEXED_1BIT) { in lv_img_buf_get_px_color() 61 *dsc->header.w + 7 means rounding up to 8 because the lines are byte aligned in lv_img_buf_get_px_color() 63 uint32_t px = ((dsc->header.w + 7) >> 3) * y + x; in lv_img_buf_get_px_color() 64 p_color.full = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_color() 66 else if(dsc->header.cf == LV_IMG_CF_INDEXED_2BIT) { in lv_img_buf_get_px_color() [all …]
|
D | lv_img_decoder.c | 92 if(img_dsc->data == NULL) return LV_RES_INV; in lv_img_decoder_get_info() 98 if(d->info_cb) { in lv_img_decoder_get_info() 99 res = d->info_cb(d, src, header); in lv_img_decoder_get_info() 115 if(img_dsc->data == NULL) return LV_RES_INV; in lv_img_decoder_open() 118 dsc->color = color; in lv_img_decoder_open() 119 dsc->src_type = src_type; in lv_img_decoder_open() 120 dsc->frame_id = frame_id; in lv_img_decoder_open() 122 if(dsc->src_type == LV_IMG_SRC_FILE) { in lv_img_decoder_open() 124 dsc->src = lv_mem_alloc(fnlen + 1); in lv_img_decoder_open() 125 LV_ASSERT_MALLOC(dsc->src); in lv_img_decoder_open() [all …]
|
D | lv_img_buf.h | 32 #define LV_IMG_BUF_SIZE_TRUE_COLOR(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument 33 #define LV_IMG_BUF_SIZE_TRUE_COLOR_CHROMA_KEYED(w, h) ((LV_COLOR_SIZE / 8) * w * h) argument 34 #define LV_IMG_BUF_SIZE_TRUE_COLOR_ALPHA(w, h) (LV_IMG_PX_SIZE_ALPHA_BYTE * w * h) argument 37 #define LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) ((((w / 8) + 1) * h)) argument 38 #define LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) ((((w / 4) + 1) * h)) argument 39 #define LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) ((((w / 2) + 1) * h)) argument 40 #define LV_IMG_BUF_SIZE_ALPHA_8BIT(w, h) ((w * h)) argument 43 #define LV_IMG_BUF_SIZE_INDEXED_1BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_1BIT(w, h) + 4 * 2) argument 44 #define LV_IMG_BUF_SIZE_INDEXED_2BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_2BIT(w, h) + 4 * 4) argument 45 #define LV_IMG_BUF_SIZE_INDEXED_4BIT(w, h) (LV_IMG_BUF_SIZE_ALPHA_4BIT(w, h) + 4 * 16) argument [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_blend.c | 98 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_sw_blend() 101 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend() 103 if(draw_ctx->wait_for_finish) draw_ctx->wait_for_finish(draw_ctx); in lv_draw_sw_blend() 105 ((lv_draw_sw_ctx_t *)draw_ctx)->blend(draw_ctx, dsc); in lv_draw_sw_blend() 112 if(dsc->mask_buf == NULL) mask = NULL; in lv_draw_sw_blend_basic() 113 if(dsc->mask_buf && dsc->mask_res == LV_DRAW_MASK_RES_TRANSP) return; in lv_draw_sw_blend_basic() 114 else if(dsc->mask_res == LV_DRAW_MASK_RES_FULL_COVER) mask = NULL; in lv_draw_sw_blend_basic() 115 else mask = dsc->mask_buf; in lv_draw_sw_blend_basic() 117 lv_coord_t dest_stride = lv_area_get_width(draw_ctx->buf_area); in lv_draw_sw_blend_basic() 120 if(!_lv_area_intersect(&blend_area, dsc->blend_area, draw_ctx->clip_area)) return; in lv_draw_sw_blend_basic() [all …]
|
D | lv_draw_sw_rect.c | 55 static int32_t sh_cache_size = -1; 56 static int32_t sh_cache_r = -1; 86 lv_memset_00(draw_ctx->buf, lv_area_get_size(draw_ctx->buf_area) * sizeof(lv_color_t)); in lv_draw_sw_bg() 99 if(dsc->bg_opa <= LV_OPA_MIN) return; in draw_bg() 105 if(dsc->border_width > 1 && dsc->border_opa >= LV_OPA_MAX && dsc->radius != 0) { in draw_bg() 106 bg_coords.x1 += (dsc->border_side & LV_BORDER_SIDE_LEFT) ? 1 : 0; in draw_bg() 107 bg_coords.y1 += (dsc->border_side & LV_BORDER_SIDE_TOP) ? 1 : 0; in draw_bg() 108 bg_coords.x2 -= (dsc->border_side & LV_BORDER_SIDE_RIGHT) ? 1 : 0; in draw_bg() 109 bg_coords.y2 -= (dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? 1 : 0; in draw_bg() 113 if(!_lv_area_intersect(&clipped_coords, &bg_coords, draw_ctx->clip_area)) return; in draw_bg() [all …]
|
D | lv_draw_sw_gradient.c | 43 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h); 48 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h); 64 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t size, lv_coord_t w) in compute_key() argument 68 …return (v.value ^ size ^ (w >> 1)); /*Yes, this is correct, it's like a hash that changes if the w… in compute_key() 73 size_t s = ALIGN(sizeof(*c)) + ALIGN(c->alloc_size * sizeof(lv_color_t)); in get_cache_item_size() 75 s += ALIGN(c->size * sizeof(lv_color32_t)); in get_cache_item_size() 77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size() 99 while(first != NULL && first->life) { in iterate_cache() 112 if(c->life < *min_life) *min_life = c->life; in find_oldest_item_life() 119 size_t next_items_size = (size_t)(grad_cache_end - (uint8_t *)c) - size; in free_item() [all …]
|
D | lv_draw_sw_line.c | 55 if(dsc->width == 0) return; in lv_draw_sw_line() 56 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_sw_line() 58 if(point1->x == point2->x && point1->y == point2->y) 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() 67 is_common = _lv_area_intersect(&clip_line, &clip_line, draw_ctx->clip_area); in lv_draw_sw_line() 69 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_line() 70 draw_ctx->clip_area = &clip_line; in lv_draw_sw_line() [all …]
|
D | lv_draw_sw_dither.c | 19 …id LV_ATTRIBUTE_FAST_MEM lv_dither_none(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w) in lv_dither_none() argument 23 if(grad == NULL || grad->filled) return; in lv_dither_none() 24 for(lv_coord_t i = 0; i < w; i++) { in lv_dither_none() 25 grad->map[i] = lv_color_hex(grad->hmap[i].full); in lv_dither_none() 27 grad->filled = 1; in lv_dither_none() 41 …TTRIBUTE_FAST_MEM lv_dither_ordered_hor(lv_grad_t * grad, lv_coord_t x, lv_coord_t y, lv_coord_t w) in lv_dither_ordered_hor() argument 49 …3. It means that a pixel i,j only depends on the value of a pixel i-7, j-7 to i,j and no other one. in lv_dither_ordered_hor() 53 for(lv_coord_t j = 0; j < w; j++) { in lv_dither_ordered_hor() 54 int8_t factor = dither_ordered_threshold_matrix[(y & 7) * 8 + ((j) & 7)] - 32; in lv_dither_ordered_hor() 55 lv_color32_t tmp = grad->hmap[LV_CLAMP(0, j - 4, grad->size)]; in lv_dither_ordered_hor() [all …]
|
/lvgl-latest/src/widgets/ |
D | lv_canvas.c | 66 void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf) in lv_canvas_set_buffer() argument 73 canvas->dsc.header.cf = cf; in lv_canvas_set_buffer() 74 canvas->dsc.header.w = w; in lv_canvas_set_buffer() 75 canvas->dsc.header.h = h; in lv_canvas_set_buffer() 76 canvas->dsc.data = buf; in lv_canvas_set_buffer() 78 lv_img_set_src(obj, &canvas->dsc); in lv_canvas_set_buffer() 79 lv_img_cache_invalidate_src(&canvas->dsc); in lv_canvas_set_buffer() 88 lv_img_buf_set_px_color(&canvas->dsc, x, y, c); in lv_canvas_set_px_color() 98 lv_img_buf_set_px_alpha(&canvas->dsc, x, y, opa); in lv_canvas_set_px_opa() 108 lv_img_buf_set_palette(&canvas->dsc, id, c); in lv_canvas_set_palette() [all …]
|
D | lv_img.c | 98 if(img->src_type == LV_IMG_SRC_SYMBOL || img->src_type == LV_IMG_SRC_FILE) { in lv_img_set_src() 99 lv_mem_free((void *)img->src); in lv_img_set_src() 101 img->src = NULL; in lv_img_set_src() 102 img->src_type = LV_IMG_SRC_UNKNOWN; in lv_img_set_src() 112 if(img->src_type == LV_IMG_SRC_FILE || img->src_type == LV_IMG_SRC_SYMBOL) { in lv_img_set_src() 113 lv_mem_free((void *)img->src); in lv_img_set_src() 115 img->src = src; in lv_img_set_src() 119 if(img->src != src) { in lv_img_set_src() 124 if(img->src_type == LV_IMG_SRC_FILE || img->src_type == LV_IMG_SRC_SYMBOL) { in lv_img_set_src() 125 old_src = img->src; in lv_img_set_src() [all …]
|
D | lv_canvas.h | 57 * The required size is (lv_img_color_format_get_px_size(cf) * w) / 8 * h) 62 * @param w width of the canvas 66 void lv_canvas_set_buffer(lv_obj_t * canvas, void * buf, lv_coord_t w, lv_coord_t h, lv_img_cf_t cf… 98 * - for `LV_IMG_CF_INDEXED1`: 0..1 99 * - for `LV_IMG_CF_INDEXED2`: 0..3 100 * - for `LV_IMG_CF_INDEXED4`: 0..15 101 * - for `LV_IMG_CF_INDEXED8`: 0..255 137 * @param w width of the buffer to copy 140 …_canvas_copy_buf(lv_obj_t * canvas, const void * to_copy, lv_coord_t x, lv_coord_t y, lv_coord_t w, 156 * @param antialias apply anti-aliasing during the transformation. Looks better but slower. [all …]
|
/lvgl-latest/src/draw/sdl/ |
D | lv_draw_sdl_img.c | 38 lv_coord_t w, h, radius; member 75 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius, 78 static lv_draw_img_rounded_key_t rounded_key_create(const SDL_Texture * texture, lv_coord_t w, lv_c… 100 const lv_area_t * clip = draw_ctx->clip_area; in lv_draw_sdl_img_core() 104 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(src, draw_dsc->frame_i… in lv_draw_sdl_img_core() 111 lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header, in lv_draw_sdl_img_core() 124 draw_dsc->zoom, &draw_dsc->pivot); in lv_draw_sdl_img_core() 125 lv_area_move(&zoomed_cords, coords->x1, coords->y1); in lv_draw_sdl_img_core() 135 … has_composite = lv_draw_sdl_composite_begin(ctx, &zoomed_cords, clip, NULL, draw_dsc->blend_mode, in lv_draw_sdl_img_core() 154 lv_draw_sdl_composite_end(ctx, &apply_area, draw_dsc->blend_mode); in lv_draw_sdl_img_core() [all …]
|
D | lv_draw_sdl_arc.c | 53 area_out.x1 = center->x - radius; in lv_draw_sdl_draw_arc() 54 area_out.y1 = center->y - radius; in lv_draw_sdl_draw_arc() 55 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sdl_draw_arc() 56 area_out.y2 = center->y + radius - 1; in lv_draw_sdl_draw_arc() 59 if(!_lv_area_intersect(&draw_area, &area_out, draw_ctx->clip_area)) { in lv_draw_sdl_draw_arc() 65 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() 70 while(start_angle >= 360) start_angle -= 360; in lv_draw_sdl_draw_arc() [all …]
|
D | lv_draw_sdl_composite.c | 73 full_coords.x1 -= extension->x1; in lv_draw_sdl_composite_begin() 74 full_coords.x2 += extension->x2; in lv_draw_sdl_composite_begin() 75 full_coords.y1 -= extension->y1; in lv_draw_sdl_composite_begin() 76 full_coords.y2 += extension->y2; in lv_draw_sdl_composite_begin() 85 lv_draw_sdl_context_internals_t * internals = ctx->internals; in lv_draw_sdl_composite_begin() 86 …LV_ASSERT(internals->mask == NULL && internals->composition == NULL && internals->target_backup ==… in lv_draw_sdl_composite_begin() 88 lv_coord_t w = lv_area_get_width(apply_area), h = lv_area_get_height(apply_area); in lv_draw_sdl_composite_begin() local 89 …internals->composition = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_I… in lv_draw_sdl_composite_begin() 90 … &internals->composition_cached); in lv_draw_sdl_composite_begin() 92 lv_coord_t ofs_x = (lv_coord_t) - apply_area->x1, ofs_y = (lv_coord_t) - apply_area->y1; in lv_draw_sdl_composite_begin() [all …]
|
D | lv_draw_sdl_rect.c | 54 lv_coord_t w; member 109 …t_grad_frag_key_t rect_grad_frag_key_create(const lv_grad_dsc_t * grad, lv_coord_t w, lv_coord_t h, 126 …KIP_BORDER(dsc) ((dsc)->border_opa <= LV_OPA_MIN || (dsc)->border_width == 0 || (dsc)->border_side… 127 …)->shadow_width == 0 || (dsc)->shadow_opa <= LV_OPA_MIN || ((dsc)->shadow_width == 1 && (dsc)->sha… 128 #define SKIP_IMAGE(dsc) ((dsc)->bg_img_src == NULL || (dsc)->bg_img_opa <= LV_OPA_MIN) 129 #define SKIP_OUTLINE(dsc) ((dsc)->outline_opa <= LV_OPA_MIN || (dsc)->outline_width == 0) 137 const lv_area_t * clip = draw_ctx->clip_area; in lv_draw_sdl_draw_rect() 142 lv_coord_t ext = (lv_coord_t)(dsc->shadow_spread - dsc->shadow_width / 2 + 1); in lv_draw_sdl_draw_rect() 143 extension.x1 = LV_MAX(extension.x1, -dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect() 144 extension.x2 = LV_MAX(extension.x2, dsc->shadow_ofs_x + ext); in lv_draw_sdl_draw_rect() [all …]
|
D | lv_draw_sdl_stack_blur.c | 25 stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int cores, int … 32 // See http://vitiy.info/stackblur-algorithm-multi-threaded-blur-for-cpp/ 81 void lv_stack_blur_grayscale(lv_opa_t * buf, uint16_t w, uint16_t h, uint16_t r) in lv_stack_blur_grayscale() argument 83 stack_blur_job(buf, w, h, r, 1, 0, 1); in lv_stack_blur_grayscale() 84 stack_blur_job(buf, w, h, r, 1, 0, 2); in lv_stack_blur_grayscale() 91 static void stack_blur_job(lv_opa_t * src, unsigned int w, unsigned int h, unsigned int radius, int… in stack_blur_job() argument 111 unsigned int wm = w - 1; in stack_blur_job() 112 unsigned int hm = h - 1; in stack_blur_job() 113 unsigned int stride = w; in stack_blur_job() 141 sum_r += src_ptr[0] * (radius + 1 - i); in stack_blur_job() [all …]
|
/lvgl-latest/src/extra/libs/png/ |
D | lodepng.c | 4 Copyright (c) 2005-2020 Lode Vandevenne 6 This software is provided 'as-is', without any express or implied 43 #pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requi… 52 -Tools for C and common code for PNG and Zlib 53 -C Code for Zlib (huffman, deflate, ...) 54 -C Code for PNG (file format chunks, adam7, PNG filters, color conversions, ...) 55 -The C++ wrapper around all of the above 67 -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out 136 return (size_t)(a - orig); in lodepng_strlen() 141 #define LODEPNG_ABS(x) ((x) < 0 ? -(x) : (x)) [all …]
|
D | lodepng.h | 4 Copyright (c) 2005-2020 Lode Vandevenne 6 This software is provided 'as-is', without any express or implied 40 -DLODEPNG_NO_COMPILE_ZLIB for gcc. 119 After decoding, its size is w * h * (bytes per pixel) bytes larger than 122 Note: for 16-bit per channel colors, uses big endian format like PNG does. 123 w: Output parameter. Pointer to width of pixel data. 131 unsigned lodepng_decode_memory(unsigned char** out, unsigned* w, unsigned* h, 135 /*Same as lodepng_decode_memory, but always decodes to 32-bit RGBA raw image*/ 136 unsigned lodepng_decode32(unsigned char** out, unsigned* w, unsigned* h, 139 /*Same as lodepng_decode_memory, but always decodes to 24-bit RGB raw image*/ [all …]
|
/lvgl-latest/src/core/ |
D | lv_obj_pos.c | 85 if(obj->w_layout && obj->h_layout) return false; in lv_obj_refr_size() 94 lv_coord_t w; in lv_obj_refr_size() local 95 if(obj->w_layout) { in lv_obj_refr_size() 96 w = lv_obj_get_width(obj); in lv_obj_refr_size() 99 w = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_obj_refr_size() 100 w_is_content = w == LV_SIZE_CONTENT ? true : false; in lv_obj_refr_size() 101 w_is_pct = LV_COORD_IS_PCT(w) ? true : false; in lv_obj_refr_size() 105 w = calc_content_width(obj); in lv_obj_refr_size() 110 if(parent->w_layout == 0 && lv_obj_get_style_width(parent, 0) == LV_SIZE_CONTENT) { in lv_obj_refr_size() 112 w = lv_obj_get_style_pad_left(obj, 0) + border_w; in lv_obj_refr_size() [all …]
|
D | lv_refr.c | 118 if(disp->refr_timer) _lv_disp_refr_timer(disp->refr_timer); in lv_refr_now() 124 if(d->refr_timer) _lv_disp_refr_timer(d->refr_timer); in lv_refr_now() 132 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_obj_redraw() 145 draw_ctx->clip_area = &clip_coords_for_obj; in lv_obj_redraw() 171 if(!_lv_area_intersect(&clip_coords_for_children, clip_area_ori, &obj->coords)) { in lv_obj_redraw() 177 draw_ctx->clip_area = &clip_coords_for_children; in lv_obj_redraw() 181 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_redraw() 188 draw_ctx->clip_area = &clip_coords_for_obj; in lv_obj_redraw() 196 draw_ctx->clip_area = clip_area_ori; in lv_obj_redraw() 211 if(disp->rendering_in_progress) { in _lv_inv_area() [all …]
|
/lvgl-latest/src/extra/widgets/chart/ |
D | lv_chart.c | 80 if(chart->type == type) return; in lv_chart_set_type() 82 if(chart->type == LV_CHART_TYPE_SCATTER) { in lv_chart_set_type() 84 _LV_LL_READ_BACK(&chart->series_ll, ser) { in lv_chart_set_type() 85 lv_mem_free(ser->x_points); in lv_chart_set_type() 86 ser->x_points = NULL; in lv_chart_set_type() 92 _LV_LL_READ_BACK(&chart->series_ll, ser) { in lv_chart_set_type() 93 ser->x_points = lv_mem_alloc(sizeof(lv_point_t) * chart->point_cnt); in lv_chart_set_type() 94 LV_ASSERT_MALLOC(ser->x_points); in lv_chart_set_type() 95 if(ser->x_points == NULL) return; in lv_chart_set_type() 99 chart->type = type; in lv_chart_set_type() [all …]
|
/lvgl-latest/src/extra/libs/tiny_ttf/ |
D | stb_truetype_htcw.h | 1 // stb_truetype.h - v1.26htcw (fork to enable streaming and low memory environments) 2 // stb_truetype.h - v1.26 - public domain 3 // authored from 2009-2021 by Sean Barrett / RAD Game Tools 7 // NO SECURITY GUARANTEE -- DO NOT USE THIS ON UNTRUSTED FONT FILES 18 // render glyphs to one-channel bitmaps with antialiasing (box filter) 19 // render glyphs to one-channel SDF bitmaps (signed-distance field/function) 22 // non-MS cmaps 25 // cleartype-style AA? 27 // optimize: build edge-list directly from curves 35 // Daniel Ribeiro Maciel: basic GPOS-based kerning [all …]
|
/lvgl-latest/src/font/ |
D | lv_font_fmt_txt.c | 41 …static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp,… 42 static inline void decompress_line(uint8_t * out, lv_coord_t w); 83 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *)font->dsc; in lv_font_get_bitmap_fmt_txt() 87 const lv_font_fmt_txt_glyph_dsc_t * gdsc = &fdsc->glyph_dsc[gid]; in lv_font_get_bitmap_fmt_txt() 89 if(fdsc->bitmap_format == LV_FONT_FMT_TXT_PLAIN) { in lv_font_get_bitmap_fmt_txt() 90 return &fdsc->glyph_bitmap[gdsc->bitmap_index]; in lv_font_get_bitmap_fmt_txt() 98 uint32_t gsize = gdsc->box_w * gdsc->box_h; in lv_font_get_bitmap_fmt_txt() 103 switch(fdsc->bpp) { in lv_font_get_bitmap_fmt_txt() 126 bool prefilter = fdsc->bitmap_format == LV_FONT_FMT_TXT_COMPRESSED ? true : false; in lv_font_get_bitmap_fmt_txt() 127 …decompress(&fdsc->glyph_bitmap[gdsc->bitmap_index], LV_GC_ROOT(_lv_font_decompr_buf), gdsc->box_w,… in lv_font_get_bitmap_fmt_txt() [all …]
|
/lvgl-latest/src/extra/libs/sjpg/ |
D | tjpgd.c | 1 /*----------------------------------------------------------------------------/ 2 / TJpgDec - Tiny JPEG Decompressor R0.03 (C)ChaN, 2021 3 /-----------------------------------------------------------------------------/ 12 / personal, non-profit or commercial products UNDER YOUR RESPONSIBILITY. 15 /-----------------------------------------------------------------------------/ 25 /----------------------------------------------------------------------------*/ 33 #define HUFF_MASK (HUFF_LEN - 1) 37 /*-----------------------------------------------*/ 38 /* Zigzag-order to raster-order conversion table */ 39 /*-----------------------------------------------*/ [all …]
|
/lvgl-latest/src/extra/layouts/grid/ |
D | lv_grid.c | 19 #define IS_FR(x) (x >= LV_COORD_MAX - 100) 20 #define IS_CONTENT(x) (x == LV_COORD_MAX - 101) 21 #define GET_FR(x) (x - (LV_COORD_MAX - 100)) 35 lv_coord_t * w; member 357 hint.grid_abs.x = pad_left + cont->coords.x1 - lv_obj_get_scroll_x(cont); in grid_update() 358 hint.grid_abs.y = pad_top + cont->coords.y1 - lv_obj_get_scroll_y(cont); in grid_update() 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() 401 bool auto_w = (w_set == LV_SIZE_CONTENT && !cont->w_layout) ? true : false; in calc() 403 …calc_out->grid_w = grid_align(cont_w, auto_w, get_grid_col_align(cont), col_gap, calc_out->col_num… in calc() [all …]
|