/lvgl-latest/src/libs/lodepng/ |
D | lodepng.h | 4 Copyright (c) 2005-2023 Lode Vandevenne 6 This software is provided 'as-is', without any express or implied 43 -DLODEPNG_NO_COMPILE_ZLIB for gcc or clang. 48 …/*pass -DLODEPNG_NO_COMPILE_ZLIB to the compiler to disable this, or comment out LODEPNG_COMPILE_Z… 54 …/*pass -DLODEPNG_NO_COMPILE_PNG to the compiler to disable this, or comment out LODEPNG_COMPILE_PN… 60 …/*pass -DLODEPNG_NO_COMPILE_DECODER to the compiler to disable this, or comment out LODEPNG_COMPIL… 66 …/*pass -DLODEPNG_NO_COMPILE_ENCODER to the compiler to disable this, or comment out LODEPNG_COMPIL… 72 …/*pass -DLODEPNG_NO_COMPILE_DISK to the compiler to disable this, or comment out LODEPNG_COMPILE_D… 78 /*pass -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS to the compiler to disable this, 85 /*pass -DLODEPNG_NO_COMPILE_ERROR_TEXT to the compiler to disable this, [all …]
|
D | lodepng.c | 4 Copyright (c) 2005-2023 Lode Vandevenne 6 This software is provided 'as-is', without any express or implied 35 #define image_cache_draw_buf_handlers &(LV_GLOBAL_DEFAULT()->image_cache_draw_buf_handlers) 47 …#pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requ… 56 -Tools for C and common code for PNG and Zlib 57 -C Code for Zlib (huffman, deflate, ...) 58 -C Code for PNG (file format chunks, adam7, PNG filters, color conversions, ...) 59 -The C++ wrapper around all of the above 71 -DLODEPNG_NO_COMPILE_ALLOCATORS to the compiler, or comment out 146 return (size_t)(a - orig); in lodepng_strlen() [all …]
|
/lvgl-latest/src/misc/ |
D | lv_rb.c | 59 tree->root = NULL; in lv_rb_init() 60 tree->compare = compare; in lv_rb_init() 61 tree->size = node_size; in lv_rb_init() 79 if(tree->root == NULL) { in lv_rb_insert() 80 tree->root = node; in lv_rb_insert() 81 node->parent = NULL; in lv_rb_insert() 82 node->color = LV_RB_COLOR_BLACK; in lv_rb_insert() 87 void * new_data = node->data; in lv_rb_insert() 88 node->data = key; in lv_rb_insert() 91 node->parent = parent; in lv_rb_insert() [all …]
|
D | lv_color.c | 106 lv_color32_t lv_color_to_32(lv_color_t color, lv_opa_t opa) in lv_color_to_32() argument 109 c32.red = color.red; in lv_color_to_32() 110 c32.green = color.green; in lv_color_to_32() 111 c32.blue = color.blue; in lv_color_to_32() 116 uint16_t lv_color_to_u16(lv_color_t color) in lv_color_to_u16() argument 118 return ((color.red & 0xF8) << 8) + ((color.green & 0xFC) << 3) + ((color.blue & 0xF8) >> 3); in lv_color_to_u16() 121 uint32_t lv_color_to_u32(lv_color_t color) in lv_color_to_u32() argument 123 return (uint32_t)((uint32_t)0xff << 24) + (color.red << 16) + (color.green << 8) + (color.blue); in lv_color_to_u32() 152 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb() 154 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb() [all …]
|
/lvgl-latest/src/others/vg_lite_tvg/ |
D | vg_lite_tvg.cpp | 31 #define TVG_COLOR(COLOR) B(COLOR), G(COLOR), R(COLOR), A(COLOR) argument 51 /* clang-format off */ 59 #define VLC_GET_ARG(CUR, INDEX) vlc_get_arg((cur + (INDEX) * fmt_len), path->format); 65 #define A(color) ((color) >> 24) argument 66 #define R(color) (((color) & 0x00ff0000) >> 16) argument 67 #define G(color) (((color) & 0x0000ff00) >> 8) argument 68 #define B(color) ((color) & 0xff) argument 73 #define LERP(v1, v2, w) ((v1) * (w) + (v2) * (1.0f - (w))) 82 (((number) + ((align_bytes)-1)) & ~((align_bytes)-1)) 84 #define VG_LITE_IS_ALIGNED(num, align) (((uintptr_t)(num) & ((align)-1)) == 0) [all …]
|
D | vg_lite.h | 3 * Copyright 2012 - 2023 Vivante Corporation, Santa Clara, California. 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 38 * See: https://learn.microsoft.com/en-us/cpp/cpp/inline-functions-cpp?view=msvc-170 238 VG_LITE_HIGH, /*! High quality 16x anti-aliasing path. */ 239 VG_LITE_UPPER, /*! Upper quality 8x anti-aliasing path. */ 240 VG_LITE_MEDIUM, /*! Medium quality 4x anti-aliasing path. */ 241 VG_LITE_LOW, /*! Low quality path without any anti-aliasing. */ 247 VG_LITE_S8, /*! Signed 8-bit coordinates. */ 248 VG_LITE_S16, /*! Signed 16-bit coordinates. */ 249 VG_LITE_S32, /*! Signed 32-bit coordinates. */ [all …]
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgLottieModel.cpp | 2 * Copyright (c) 2023 - 2024 the ThorVG project. All rights reserved. 50 static_cast<LottieGradient*>(pair->obj)->colorStops.release(); in reset() 51 … static_cast<LottieGradient*>(pair->obj)->colorStops = *static_cast<LottieColorStop*>(pair->prop); in reset() 52 static_cast<LottieColorStop*>(pair->prop)->frames = nullptr; in reset() 55 case LottieProperty::Type::Color: { in reset() 56 static_cast<LottieSolid*>(pair->obj)->color.release(); in reset() 57 … static_cast<LottieSolid*>(pair->obj)->color = *static_cast<LottieColor*>(pair->prop); in reset() 58 static_cast<LottieColor*>(pair->prop)->frames = nullptr; in reset() 62 static_cast<LottieText*>(pair->obj)->doc.release(); in reset() 63 static_cast<LottieText*>(pair->obj)->doc = *static_cast<LottieTextDoc*>(pair->prop); in reset() [all …]
|
D | tvgLottieParser.cpp | 2 * Copyright (c) 2023 - 2024 the ThorVG project. All rights reserved. 42 if (!comp->expressions) comp->expressions = true; in _expression() 45 inst->code = code; in _expression() 46 inst->comp = comp; in _expression() 47 inst->layer = layer; in _expression() 48 inst->object = object; in _expression() 49 inst->property = property; in _expression() 94 RGB24 color = {0, 0, 0}; in getColor() local 96 if (!str) return color; in getColor() 100 // some resource has empty color string, return a default color for those cases. in getColor() [all …]
|
D | tvgSvgSceneBuilder.cpp | 2 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved. 60 shape->bounds(&x, &y, &w, &h, false); in _boundingBox() 62 if (auto strokeW = shape->strokeWidth()) { in _boundingBox() 65 w -= strokeW; in _boundingBox() 66 h -= strokeW; in _boundingBox() 76 text->bounds(&x, &y, &w, &h, false); in _boundingBox() 83 gradTransf->e13 = gradTransf->e13 * mBBox->e11 + mBBox->e13; in _transformMultiply() 84 gradTransf->e12 *= mBBox->e11; in _transformMultiply() 85 gradTransf->e11 *= mBBox->e11; in _transformMultiply() 87 gradTransf->e23 = gradTransf->e23 * mBBox->e22 + mBBox->e23; in _transformMultiply() [all …]
|
D | thorvg.h | 94 …alue returned in the event of a problem with the arguments given to the API - e.g. empty paths or … 95 …InsufficientCondition, ///< The value returned in case the request cannot be processed - e.g. aski… 97 …MemoryCorruption, ///< The value returned in the event of bad memory handling - e.g. failing … 111 …Close = 0, ///< Ends the current sub-path and connects it with its initial point. This command doe… 112 …MoveTo, ///< Sets a new initial point of the sub-path and a new current point. This command exp… 113 … sets a new value of the current point. This command expects 1 point: the end-position of the line. 114 …ent point. This command expects 3 points: the 1st control-point, the 2nd control-point, the end-po… 119 * @brief Enumeration determining the ending type of a stroke in the open sub-paths. 123 …-points of a sub-path by a rectangle, with the width equal to the stroke width and the length equa… 124 … extended in both end-points of a sub-path by a half circle, with a radius equal to the half of a … [all …]
|
/lvgl-latest/docs/details/base-widget/styles/ |
D | style.rst | 10 border width, font, text color and so on. It's similar to a ``class`` in CSS. 12 - Styles can be assigned to Widgets to change their appearance. Upon 13 assignment, the target part (pseudo-element_ in CSS) and target state 14 (pseudo-class_ in CSS) can be specified. For example one can add 16 - The same style can be used by any number of Widgets. 17 - Styles can be cascaded which means multiple styles may be assigned to a Widget and 22 and ``style_btn_red`` can add only a ``background-color=red`` to 23 overwrite the background color. 24 - The most recently added style has higher precedence. This means if a property 26 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in a Wi… [all …]
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_graphics.h | 15 * NEMAGFX API. THE UNMODIFIED, NORMATIVE VERSIONS OF THINK-SILICON NEMAGFX 17 * https://think-silicon.com/products/software/nemagfx-api 45 uint32_t color; member 53 NEMA_NOTEX = -1, /**< No Texture */ 105 #define NEMA_RV10 0x3DU /**< RV-10bit */ 106 #define NEMA_GU10 0x3EU /**< GU-10bit */ 107 #define NEMA_BY10 0x3FU /**< BY-10bit */ 108 #define NEMA_RGBA2222 0x40U /**< RGBA2222 (Available if HW enabled - check HW manual) */ 109 #define NEMA_ABGR2222 0x41U /**< ABGR2222 (Available if HW enabled - check HW manual) */ 110 #define NEMA_BGRA2222 0x42U /**< BGRA2222 (Available if HW enabled - check HW manual) */ [all …]
|
D | nema_blender.h | 15 * NEMAGFX API. THE UNMODIFIED, NORMATIVE VERSIONS OF THINK-SILICON NEMAGFX 17 * https://think-silicon.com/products/software/nemagfx-api 40 //-------------------------------------------------------------------------------------------------… 44 #define NEMA_BF_INVSRCCOLOR (0x3U) /**< (1-Sc) */ 46 #define NEMA_BF_INVSRCALPHA (0x5U) /**< (1-Sa) */ 48 #define NEMA_BF_INVDESTALPHA (0x7U) /**< (1-Da) */ 50 #define NEMA_BF_INVDESTCOLOR (0x9U) /**< (1-Dc) */ 55 …NEMA_BF_SRCALPHA | ((uint32_t)NEMA_BF_INVSRCALPHA <<8) ) /**< Sa * Sa + Da * (1 - Sa) */ 58 …32_t)NEMA_BF_ONE | ((uint32_t)NEMA_BF_INVSRCALPHA <<8) ) /**< Sa + Da * (1 - Sa) */ 59 …32_t)NEMA_BF_INVDESTALPHA | ((uint32_t)NEMA_BF_ONE <<8) ) /**< Sa * (1 - Da) + Da */ [all …]
|
/lvgl-latest/src/widgets/canvas/ |
D | lv_canvas.c | 78 lv_draw_buf_init(&canvas->static_buf, w, h, cf, stride, buf, stride * h); in lv_canvas_set_buffer() 79 canvas->draw_buf = &canvas->static_buf; in lv_canvas_set_buffer() 86 lv_image_set_src(obj, canvas->draw_buf); in lv_canvas_set_buffer() 87 lv_image_cache_drop(canvas->draw_buf); in lv_canvas_set_buffer() 96 canvas->draw_buf = draw_buf; in lv_canvas_set_draw_buf() 107 void lv_canvas_set_px(lv_obj_t * obj, int32_t x, int32_t y, lv_color_t color, lv_opa_t opa) in lv_canvas_set_px() argument 112 lv_draw_buf_t * draw_buf = canvas->draw_buf; in lv_canvas_set_px() 114 lv_color_format_t cf = draw_buf->header.cf; in lv_canvas_set_px() 119 uint8_t c_int = color.blue; in lv_canvas_set_px() 122 shift = 7 - (x & 0x7); in lv_canvas_set_px() [all …]
|
/lvgl-latest/docs/details/main-components/ |
D | image.rst | 15 - as a variable in internal memory (RAM or ROM) 16 - as a file 21 --------- 26 - **header**: 28 - *cf*: Color format. See :ref:`below <overview_image_color_formats>` 29 - *w*: width in pixels (<= 2048) 30 - *h*: height in pixels (<= 2048) 31 - *always zero*: 3 bits which need to be always zero 32 - *reserved*: reserved for future use 33 - **data**: pointer to an array where the image itself is stored [all …]
|
D | color.rst | 4 Color (lv_color) 7 The color module handles all color-related functions like changing color 8 depth, creating colors from hex code, converting between color depths, 11 The type :cpp:type:`lv_color_t` is used to store a color in RGB888 format. 22 --- 26 .. code-block:: c 28 /* All channels are 0-255 */ 42 --- 46 .. code-block:: c 51 //All channels are 0-255 [all …]
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_label.c | 4 * ----------------------------------------------------------------------------- 5 * Copyright (c) 2008-24 Think Silicon Single Member PC 6 * ----------------------------------------------------------------------------- 51 #define font_draw_buf_handlers &(LV_GLOBAL_DEFAULT()->font_draw_buf_handlers) 119 if(dsc->opa <= LV_OPA_MIN) return; in lv_draw_nema_gfx_label() 121 lv_layer_t * layer = draw_unit->target_layer; in lv_draw_nema_gfx_label() 124 lv_area_copy(&clip_area, draw_unit->clip_area); in lv_draw_nema_gfx_label() 125 lv_area_move(&clip_area, -layer->buf_area.x1, -layer->buf_area.y1); in lv_draw_nema_gfx_label() 127 lv_color_format_t dst_cf = layer->draw_buf->header.cf; in lv_draw_nema_gfx_label() 130 …nema_bind_dst_tex((uintptr_t)NEMA_VIRT2PHYS(layer->draw_buf->data), lv_area_get_width(&(layer->buf… in lv_draw_nema_gfx_label() [all …]
|
/lvgl-latest/src/draw/ |
D | lv_draw_label.c | 30 #define font_draw_buf_handlers &(LV_GLOBAL_DEFAULT()->font_draw_buf_handlers) 66 dsc->opa = LV_OPA_COVER; in lv_draw_letter_dsc_init() 67 dsc->color = lv_color_black(); in lv_draw_letter_dsc_init() 68 dsc->font = LV_FONT_DEFAULT; in lv_draw_letter_dsc_init() 69 dsc->rotation = 0; in lv_draw_letter_dsc_init() 70 dsc->scale_x = LV_SCALE_NONE; in lv_draw_letter_dsc_init() 71 dsc->scale_y = LV_SCALE_NONE; in lv_draw_letter_dsc_init() 72 dsc->base.dsc_size = sizeof(lv_draw_letter_dsc_t); in lv_draw_letter_dsc_init() 78 dsc->opa = LV_OPA_COVER; in lv_draw_label_dsc_init() 79 dsc->color = lv_color_black(); in lv_draw_label_dsc_init() [all …]
|
D | lv_draw_vector.c | 40 if ((lv_array_size(&(P)->ops) + (N)) > lv_array_capacity(&(P)->ops)) { \ 41 lv_array_resize(&(P)->ops, ((P)->ops.capacity << 1)); \ 43 if ((lv_array_size(&(P)->points) + (N)) > lv_array_capacity(&(P)->points)) { \ 44 lv_array_resize(&(P)->points, ((P)->points.capacity << 1)); \ 63 lv_memcpy(&(dst->fill_dsc), &(src->fill_dsc), sizeof(lv_vector_fill_dsc_t)); in _copy_draw_dsc() 65 dst->stroke_dsc.style = src->stroke_dsc.style; in _copy_draw_dsc() 66 dst->stroke_dsc.color = src->stroke_dsc.color; in _copy_draw_dsc() 67 dst->stroke_dsc.opa = src->stroke_dsc.opa; in _copy_draw_dsc() 68 dst->stroke_dsc.width = src->stroke_dsc.width; in _copy_draw_dsc() 69 dst->stroke_dsc.cap = src->stroke_dsc.cap; in _copy_draw_dsc() [all …]
|
/lvgl-latest/src/widgets/led/ |
D | lv_led.c | 68 void lv_led_set_color(lv_obj_t * obj, lv_color_t color) in lv_led_set_color() argument 73 led->color = color; in lv_led_set_color() 82 if(led->bright == bright) return; in lv_led_set_brightness() 84 led->bright = LV_CLAMP(LV_LED_BRIGHT_MIN, bright, LV_LED_BRIGHT_MAX); in lv_led_set_brightness() 118 return led->bright; in lv_led_get_brightness() 129 led->color = lv_theme_get_color_primary(obj); in lv_led_constructor() 130 led->bright = LV_LED_BRIGHT_MAX; in lv_led_constructor() 157 /*Use the original colors brightness to modify color->led*/ in lv_led_event() 158 …rect_dsc.bg_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bg_col… in lv_led_event() 159 rect_dsc.bg_grad.stops[0].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() [all …]
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_img.c | 84 #define _draw_info LV_GLOBAL_DEFAULT()->draw_info 96 lv_layer_t * layer_to_draw = (lv_layer_t *)draw_dsc->src; in lv_draw_sw_layer() 100 if(layer_to_draw->draw_buf == NULL) return; in lv_draw_sw_layer() 102 if(draw_dsc->bitmap_mask_src) { in lv_draw_sw_layer() 109 new_draw_dsc.src = layer_to_draw->draw_buf; in lv_draw_sw_layer() 115 …if(draw_dsc->rotation || draw_dsc->scale_x != LV_SCALE_NONE || draw_dsc->scale_y != LV_SCALE_NONE)… in lv_draw_sw_layer() 119 …image_buf_get_transformed_area(&area_rot, w, h, draw_dsc->rotation, draw_dsc->scale_x, draw_dsc->s… in lv_draw_sw_layer() 120 &draw_dsc->pivot); in lv_draw_sw_layer() 122 area_rot.x1 += coords->x1; in lv_draw_sw_layer() 123 area_rot.y1 += coords->y1; in lv_draw_sw_layer() [all …]
|
/lvgl-latest/tests/src/test_cases/draw/ |
D | test_draw_svg.c | 98 "<stop offset=\"0.1\" stop-color=\"red\"/>" in test_draw_group() 99 "<stop offset=\"0.8\" stop-color=\"green\"/>" in test_draw_group() 120 img_dsc->header = test_image_cogwheel_argb8888.header; in load_image() 121 img_dsc->src = &test_image_cogwheel_argb8888; in load_image() 129 return "./src/test_files/fonts/noto/NotoSansSC-Regular.ttf"; in get_font_path() 158 " transform=\"translate(50, 50) rotate(45) translate(-50, -50)\"/>" in test_draw_shapes() 170 "<stop offset=\"0.05\" stop-color=\"#F60\"/>" in test_draw_shapes() 171 "<stop offset=\"0.95\" stop-color=\"#FF6\"/>" in test_draw_shapes() 173 … "<rect fill=\"url(#MyGradient)\" stroke=\"black\" stroke-width=\"5\"" in test_draw_shapes() 185 … "<defs><solidColor xml:id=\"solidMaroon\" solid-color=\"maroon\" solid-opacity=\"0.7\"/>" in test_draw_shapes() [all …]
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_draw_vg_lite_vector.c | 59 if(dsc->task_list == NULL) in lv_draw_vg_lite_vector() 62 lv_layer_t * layer = dsc->base.layer; in lv_draw_vg_lite_vector() 63 if(layer->draw_buf == NULL) in lv_draw_vg_lite_vector() 67 lv_vector_for_each_destroy_tasks(dsc->task_list, task_draw_cb, draw_unit); in lv_draw_vg_lite_vector() 75 static vg_lite_color_t lv_color32_to_vg(lv_color32_t color, lv_opa_t opa) in lv_color32_to_vg() argument 77 uint8_t a = LV_OPA_MIX2(color.alpha, opa); in lv_color32_to_vg() 79 color.red = LV_UDIV255(color.red * a); in lv_color32_to_vg() 80 color.green = LV_UDIV255(color.green * a); in lv_color32_to_vg() 81 color.blue = LV_UDIV255(color.blue * a); in lv_color32_to_vg() 83 return (uint32_t)a << 24 | (uint32_t)color.blue << 16 | (uint32_t)color.green << 8 | color.red; in lv_color32_to_vg() [all …]
|
D | lv_vg_lite_utils.c | 88 LV_LOG_USER("Feature-%d: %s\t - %s", in lv_vg_lite_dump_info() 315 LV_ASSERT(path->path != NULL); in lv_vg_lite_path_dump_info() 316 uint8_t fmt_len = lv_vg_lite_path_format_len(path->format); in lv_vg_lite_path_dump_info() 317 size_t len = path->path_length / fmt_len; in lv_vg_lite_path_dump_info() 321 LV_LOG_USER("address: %p", (void *)path->path); in lv_vg_lite_path_dump_info() 323 LV_LOG_USER("bounding box: (%0.2f, %0.2f) - (%0.2f, %0.2f)", in lv_vg_lite_path_dump_info() 324 path->bounding_box[0], path->bounding_box[1], in lv_vg_lite_path_dump_info() 325 path->bounding_box[2], path->bounding_box[3]); in lv_vg_lite_path_dump_info() 326 LV_LOG_USER("format: %d", (int)path->format); in lv_vg_lite_path_dump_info() 327 LV_LOG_USER("quality: %d", (int)path->quality); in lv_vg_lite_path_dump_info() [all …]
|
/lvgl-latest/docs/details/widgets/ |
D | canvas.rst | 21 - :cpp:enumerator:`LV_PART_MAIN` Uses the :ref:`typical background <typical bg props>` 31 ------ 43 Canvas supports all the color formats like 45 list in the :ref:`Color formats <overview_image_color_formats>` section. 48 -------------- 50 For indexed color formats (``LV_COLOR_FORMAT_I1/2/4/8``), the palette needs to be 52 :cpp:expr:`lv_canvas_set_palette(canvas, index, color)`. For example, the following 55 .. code-block:: c 60 ------- 62 To set an individual pixel's color on the Canvas, use [all …]
|