/lvgl-latest/src/draw/vg_lite/ |
D | lv_draw_vg_lite_border.c | 38 float r); 58 if(!lv_area_intersect(&clip_area, coords, draw_unit->clip_area)) { in lv_draw_vg_lite_border() 67 float r_out = dsc->radius; in lv_draw_vg_lite_border() 68 if(dsc->radius) { in lv_draw_vg_lite_border() 74 lv_vg_lite_path_set_quality(path, dsc->radius == 0 ? VG_LITE_LOW : VG_LITE_HIGH); in lv_draw_vg_lite_border() 79 coords->x1, coords->y1, in lv_draw_vg_lite_border() 84 … vg_lite_fill_t fill_rule = path_append_inner_rect(path, dsc, coords->x1, coords->y1, w, h, r_out); in lv_draw_vg_lite_border() 88 vg_lite_matrix_t matrix = u->global_matrix; in lv_draw_vg_lite_border() 90 vg_lite_color_t color = lv_vg_lite_color(dsc->color, dsc->opa, true); in lv_draw_vg_lite_border() 94 LV_VG_LITE_ASSERT_DEST_BUFFER(&u->target_buffer); in lv_draw_vg_lite_border() [all …]
|
D | lv_vg_lite_path.c | 24 /* Magic number from https://spencermortensen.com/articles/bezier-circle/ */ 29 #define SIGN(x) (math_zero(x) ? 0 : ((x) > 0 ? 1 : -1)) 35 #define PATH_CURRENT_PTR(PATH) ((uint8_t*)(PATH)->base.path + (PATH)->base.path_length) 36 #define PATH_LENGTH_INC(PATH, LENGTH) ((PATH)->base.path_length += (LENGTH)) 76 unit->global_path = lv_vg_lite_path_create(VG_LITE_FP32); in lv_vg_lite_path_init() 77 unit->path_in_use = false; in lv_vg_lite_path_init() 83 LV_ASSERT(!unit->path_in_use); in lv_vg_lite_path_deinit() 84 lv_vg_lite_path_destroy(unit->global_path); in lv_vg_lite_path_deinit() 85 unit->global_path = NULL; in lv_vg_lite_path_deinit() 93 path->format_len = lv_vg_lite_path_format_len(data_format); in lv_vg_lite_path_create() [all …]
|
/lvgl-latest/src/indev/ |
D | lv_indev_gesture.c | 29 #define LV_GESTURE_PINCH_DOWN_THRESHOLD 0.75f /* Default value - start sending events when reached … 30 #define LV_GESTURE_PINCH_UP_THRESHOLD 1.5f /* Default value - start sending events when reached */ 68 if(recognizer->config == NULL) { in lv_indev_set_pinch_up_threshold() 70 recognizer->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_set_pinch_up_threshold() 71 LV_ASSERT(recognizer->config != NULL); in lv_indev_set_pinch_up_threshold() 72 recognizer->config->pinch_down_threshold = LV_GESTURE_PINCH_DOWN_THRESHOLD; in lv_indev_set_pinch_up_threshold() 75 recognizer->config->pinch_up_threshold = threshold; in lv_indev_set_pinch_up_threshold() 83 if(recognizer->config == NULL) { in lv_indev_set_pinch_down_threshold() 85 recognizer->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_set_pinch_down_threshold() 86 LV_ASSERT(recognizer->config != NULL); in lv_indev_set_pinch_down_threshold() [all …]
|
/lvgl-latest/scripts/ |
D | LVGLImage.py | 22 def uint8_t(val) -> bytes: 26 def uint16_t(val) -> bytes: 30 def uint24_t(val) -> bytes: 34 def uint32_t(val) -> bytes: 41 def color_pre_multiply(r, g, b, a, background): argument 46 return ((r * a + (255 - a) * br) >> 8, (g * a + (255 - a) * bg) >> 8, 47 (b * a + (255 - a) * bb) >> 8, a) 74 def __init__(self, ncolors=256, dither=True, exec_path="") -> None: 76 self.cmd = (f"{executable} {'--nofs' if not dither else ''} " 77 f"{ncolors} --force - < ") [all …]
|
D | update_version.py | 12 " python3 update_version.py 9.1.2-dev\n" 22 RE_PATTERN = r"(\d+)\.(\d+)\.(\d+)(-[\w\d]+)?" 26 if not re.match(r'^' + self.RE_PATTERN + r'$', user_input): 34 self.info = groups[3].lstrip('-') if groups[3] else "" 52 def applyVersionToLine(self, line: str, version: Version) -> Union[str, None]: 56 with open(self.path, 'r', encoding='utf-8') as file: 70 with open(self.path, 'w', encoding='utf-8') as file: 81 pattern = r'(' + re.escape(self.prefix) + ')' + Version.RE_PATTERN 82 repl = r'\g<1>' + str(version) 109 return r'(^#define ' + key + r' +).+' [all …]
|
D | lv_conf_internal_gen.py | 31 /* clang-format off */ 91 /* Renamed config backwards-compatibility */ 100 /*---------------------------------- 102 -----------------------------------*/ 116 if '/*--END OF LV_CONF_H--*/' in line: break 119 …r = re.search(r'^([\s]*)#[\s]*(undef|define)[\s]+([^\s]+).*$', line) # \s means any white space … variable 121 if r: 122 indent = r[1] 124 name = r[3] 125 …name = re.sub(r'\(.*?\)', '', name, 1) #remove parentheses from macros. E.g. MY_FUNC(5) -> MY_F… [all …]
|
/lvgl-latest/src/widgets/arc/ |
D | lv_arc.c | 48 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, int32_t r, lv_area_t * knob_ar… 99 if(start > 360) start -= 360; in lv_arc_set_start_angle() 101 lv_value_precise_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_start_angle() 102 lv_value_precise_t new_delta = arc->indic_angle_end - start; in lv_arc_set_start_angle() 107 if(LV_ABS(new_delta - old_delta) > 180) lv_obj_invalidate(obj); in lv_arc_set_start_angle() 108 …else if(new_delta < old_delta) inv_arc_area(obj, arc->indic_angle_start, start, LV_PART_INDICATOR); in lv_arc_set_start_angle() 109 …else if(old_delta < new_delta) inv_arc_area(obj, start, arc->indic_angle_start, LV_PART_INDICATOR); in lv_arc_set_start_angle() 113 arc->indic_angle_start = start; in lv_arc_set_start_angle() 122 if(end > 360) end -= 360; in lv_arc_set_end_angle() 124 lv_value_precise_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_end_angle() [all …]
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgSwRaster.cpp | 2 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved. 116 …return ((((v&0xff)*54) + (((v>>8)&0xff)*183) + (((v>>16)&0xff)*19))) >> 8; //0.2125*R + 0.7154*G +… in _abgrLuma() 123 …(((v&0xff)*19) + (((v>>8)&0xff)*183) + (((v>>16)&0xff)*54))) >> 8; //0.0721*B + 0.7154*G + 0.2125*R in _argbLuma() 139 static inline uint32_t _abgrJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _abgrJoin() argument 141 return (a << 24 | b << 16 | g << 8 | r); in _abgrJoin() 145 static inline uint32_t _argbJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _argbJoin() argument 147 return (a << 24 | r << 16 | g << 8 | b); in _argbJoin() 152 return (surface->blender) ? true : false; in _blending() 160 …if (!surface->compositor || (int)surface->compositor->method <= (int)CompositeMethod::ClipPath) re… in _compositing() 167 if ((int)surface->compositor->method < (int)CompositeMethod::AddMask) return true; in _matting() [all …]
|
D | tvgLottieBuilder.cpp | 2 * Copyright (c) 2023 - 2024 the ThorVG project. All rights reserved. 53 m->e11 = cy * cz; in _rotationXYZ() 54 m->e12 = -cy * sz; in _rotationXYZ() 55 m->e21 = sx * sy * cz + cx * sz; in _rotationXYZ() 56 m->e22 = -sx * sy * sz + cx * cz; in _rotationXYZ() 64 m->e11 = cosf(radian); in _rotationZ() 65 m->e12 = -sinf(radian); in _rotationZ() 66 m->e21 = sinf(radian); in _rotationZ() 67 m->e22 = cosf(radian); in _rotationZ() 73 auto angle = -deg2rad(angleDeg); in _skew() [all …]
|
D | tvgFill.cpp | 2 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved. 37 ret->pImpl->cx = cx; in duplicate() 38 ret->pImpl->cy = cy; in duplicate() 39 ret->pImpl->r = r; in duplicate() 40 ret->pImpl->fx = fx; in duplicate() 41 ret->pImpl->fy = fy; in duplicate() 42 ret->pImpl->fr = fr; in duplicate() 48 Result RadialGradient::Impl::radial(float cx, float cy, float r, float fx, float fy, float fr) in radial() argument 50 if (r < 0 || fr < 0) return Result::InvalidArguments; in radial() 52 this->cx = cx; in radial() [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 | tvgLottieModifier.cpp | 33 …ommand>& cmds, Array<Point>& pts, const Point& prev, const Point& curr, const Point& next, float r) in _roundCorner() argument 35 auto lenPrev = length(prev - curr); in _roundCorner() 36 auto rPrev = lenPrev > 0.0f ? 0.5f * std::min(lenPrev * 0.5f, r) / lenPrev : 0.0f; in _roundCorner() 37 auto lenNext = length(next - curr); in _roundCorner() 38 auto rNext = lenNext > 0.0f ? 0.5f * std::min(lenNext * 0.5f, r) / lenNext : 0.0f; in _roundCorner() 40 auto dPrev = rPrev * (curr - prev); in _roundCorner() 41 auto dNext = rNext * (curr - next); in _roundCorner() 43 pts.push(curr - 2.0f * dPrev); in _roundCorner() 44 pts.push(curr - dPrev); in _roundCorner() 45 pts.push(curr - dNext); in _roundCorner() [all …]
|
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() 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() 64 static_cast<LottieTextDoc*>(pair->prop)->frames = nullptr; in reset() [all …]
|
D | tvgShape.cpp | 2 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved. 69 pImpl->rs.path.cmds.clear(); in reset() 70 pImpl->rs.path.pts.clear(); in reset() 72 pImpl->flag |= RenderUpdateFlag::Path; in reset() 80 if (cmds) *cmds = pImpl->rs.path.cmds.data; in pathCommands() 81 return pImpl->rs.path.cmds.count; in pathCommands() 87 if (pts) *pts = pImpl->rs.path.pts.data; in pathCoords() 88 return pImpl->rs.path.pts.count; in pathCoords() 96 pImpl->grow(cmdCnt, ptsCnt); in appendPath() 97 pImpl->append(cmds, cmdCnt, pts, ptsCnt); in appendPath() [all …]
|
D | tvgSvgLoader.cpp | 2 * Copyright (c) 2020 - 2024 the ThorVG project. All rights reserved. 71 * and: https://www.w3.org/TR/css-values-4/#absolute-lengths 74 #define PX_PER_PC 16 //1 pc = 1/6 in -> PX_PER_IN/6 75 #define PX_PER_PT 1.333333f //1 pt = 1/72 in -> PX_PER_IN/72 76 #define PX_PER_MM 3.779528f //1 in = 25.4 mm -> PX_PER_IN/25.4 77 #define PX_PER_CM 37.79528f //1 in = 2.54 cm -> PX_PER_IN/2.54 181 …if (type == SvgParserLengthType::Vertical) parsedValue = (parsedValue / 100.0f) * svgParse->global… in _toFloat() 182 …type == SvgParserLengthType::Horizontal) parsedValue = (parsedValue / 100.0f) * svgParse->global.w; in _toFloat() 183 …arserLengthType::Diagonal) parsedValue = (sqrtf(powf(svgParse->global.w, 2) + powf(svgParse->globa… in _toFloat() 186 float max = svgParse->global.w; in _toFloat() [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/ |
D | schema.h | 1 // Tencent is pleased to support the open source community by making RapidJSON available-> 3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip-> All rights reserved-> 6 // in compliance with the License-> You may obtain a copy of the License at 8 // http://opensource->org/licenses/MIT 12 // CONDITIONS OF ANY KIND, either express or implied-> See the License for the 13 // specific language governing permissions and limitations under the License-> 60 RAPIDJSON_DIAG_OFF(weak-vtables) 61 RAPIDJSON_DIAG_OFF(exit-time-destructors) 62 RAPIDJSON_DIAG_OFF(c++98-compat-pedantic) 63 RAPIDJSON_DIAG_OFF(variadic-macros) [all …]
|
D | reader.h | 43 RAPIDJSON_DIAG_OFF(old-style-cast) 45 RAPIDJSON_DIAG_OFF(switch-enum) 135 \brief User-defined kParseDefaultFlags definition. 148 kParseInsituFlag = 1, //!< In-situ(destructive) parsing. 153 kParseCommentsFlag = 32, //!< Allow one-line (//) and multi-line (/**/) comments. 156 …kParseNanAndInfFlag = 256, //!< Allow parsing NaN, Inf, Infinity, -Inf and -Infinity as doubl… 179 /// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length) 211 /// enabled via kParseNumbersAsStringsFlag, string is not null-terminated (use length) 271 while ((c = s.Peek()) == ' ' || c == '\n' || c == '\r' || c == '\t') in SkipWhitespace() 276 while (p != end && (*p == ' ' || *p == '\n' || *p == '\r' || *p == '\t')) in SkipWhitespace() [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_roller.c | 70 lv_roller_set_selected(roller, option_count - 1, LV_ANIM_OFF); in test_roller_get_selected_option() 88 lv_roller_set_selected(roller, option_count - 1, LV_ANIM_OFF); in test_roller_get_selected_option_truncated_buffer() 104 option_count = (option_count * 2) - 1; in test_roller_infinite_mode_get_selected_option() 202 // option_count = (option_count * 2) - 1; 259 // lv_test_mouse_click_at(roller_mouse->coords.x1 + 5, roller_mouse->coords.y1 + 5); 264 // lv_test_mouse_click_at(roller_mouse->coords.x1 + 5, roller_mouse->coords.y1 + 100); 287 lv_obj_t * r = lv_roller_create(active_screen); in test_roller_appearance() local 288 lv_obj_set_pos(r, 130, 20); in test_roller_appearance() 289 lv_roller_set_options(r, opts, LV_ROLLER_MODE_NORMAL); in test_roller_appearance() 290 lv_obj_set_style_text_font(r, &lv_font_montserrat_16, LV_PART_MAIN); in test_roller_appearance() [all …]
|
/lvgl-latest/src/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/misc/ |
D | lv_color.c | 143 uint8_t r, g, b; in lv_color_hsv_to_rgb() local 152 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb() 154 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb() 155 q = (v * (255 - ((s * remainder) >> 8))) >> 8; in lv_color_hsv_to_rgb() 156 t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8; in lv_color_hsv_to_rgb() 160 r = v; in lv_color_hsv_to_rgb() 165 r = q; in lv_color_hsv_to_rgb() 170 r = p; in lv_color_hsv_to_rgb() 175 r = p; in lv_color_hsv_to_rgb() 180 r = t; in lv_color_hsv_to_rgb() [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | regex.h | 25 RAPIDJSON_DIAG_OFF(switch-enum) in RAPIDJSON_DIAG_OFF() 80 - \c ab Concatenation in RAPIDJSON_DIAG_OFF() 81 - \c a|b Alternation in RAPIDJSON_DIAG_OFF() 82 - \c a? Zero or one in RAPIDJSON_DIAG_OFF() 83 - \c a* Zero or more in RAPIDJSON_DIAG_OFF() 84 - \c a+ One or more in RAPIDJSON_DIAG_OFF() 85 - \c a{3} Exactly 3 times in RAPIDJSON_DIAG_OFF() 86 - \c a{3,} At least 3 times in RAPIDJSON_DIAG_OFF() 87 - \c a{3,5} 3 to 5 times in RAPIDJSON_DIAG_OFF() 88 - \c (ab) Grouping in RAPIDJSON_DIAG_OFF() [all …]
|
/lvgl-latest/src/libs/lodepng/ |
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/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 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) */ 111 #define NEMA_ARGB2222 0x43U /**< ARGB2222 (Available if HW enabled - check HW manual) */ [all …]
|
/lvgl-latest/src/draw/sw/blend/helium/ |
D | lv_blend_helium.S | 45 R .req q2 label 218 ldr RCP, =(reciprocal - 8) 383 vpush {d0-d5} 393 vpop {d8-d13} @ return fg; 401 vpople {d0-d5} 406 vpop {d0-d5} 419 vmvn D_A, D_A @ D_A = 255 - LV_OPA_MIX2(255 - fg.alpha, 255 - bg.alpha) 424 vldrb.u8 R, [RCP, N] @ r = reciprocal[(v >> 4) - 8] 425 vrmulh.u8 N, V, R @ r = newton(v,r) 426 vmvn N, N @ = vqrdmulh.u8(vmvn(vrmulh(v, r)), r) [all …]
|
/lvgl-latest/src/libs/freetype/ |
D | ftoption.h | 5 * User-selectable configuration macros (specification only). 7 * Copyright (C) 1996-2022 by 27 * USER-SELECTABLE CONFIGURATION MACROS 31 * this file to build project-specific versions of the library: 33 * - You can modify this file by hand, but this is not recommended in 37 * - You can put a copy of this file in your build directory, more 46 * - Copy the file <ft2build.h> to `$BUILD/ft2build.h` and modify it 47 * slightly to pre-define the macro `FT_CONFIG_OPTIONS_H` used to locate 58 * Note also that you can similarly pre-define the macro 70 /**** G E N E R A L F R E E T Y P E 2 C O N F I G U R A T I O N ****/ [all …]
|