Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 202) sorted by relevance

123456789

/lvgl-latest/src/others/xml/
Dlv_xml_utils.c79 const char * s = *str; in lv_xml_atoi_split() local
84 while(*s == ' ' || *s == '\t') s++; in lv_xml_atoi_split()
87 if(*s == '-') { in lv_xml_atoi_split()
89 s++; in lv_xml_atoi_split()
91 else if(*s == '+') { in lv_xml_atoi_split()
92 s++; in lv_xml_atoi_split()
96 while(*s != delimiter) { in lv_xml_atoi_split()
97 if(*s >= '0' && *s <= '9') { in lv_xml_atoi_split()
98 int32_t digit = *s - '0'; in lv_xml_atoi_split()
101 s++; in lv_xml_atoi_split()
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/internal/
Dstrfunc.h31 inline SizeType StrLen(const Ch* s) { in StrLen() argument
32 RAPIDJSON_ASSERT(s != 0); in StrLen()
33 const Ch* p = s; in StrLen()
35 return SizeType(p - s); in StrLen()
39 inline SizeType StrLen(const char* s) { in StrLen() argument
40 return SizeType(std::strlen(s)); in StrLen()
44 inline SizeType StrLen(const wchar_t* s) { in StrLen() argument
45 return SizeType(std::wcslen(s)); in StrLen()
64 bool CountStringCodePoint(const typename Encoding::Ch* s, SizeType length, SizeType* outCount) { in CountStringCodePoint() argument
65 RAPIDJSON_ASSERT(s != 0); in CountStringCodePoint()
[all …]
Dregex.h163 Frag(SizeType s, SizeType o, SizeType m) : start(s), out(o), minIndex(m) {} in RAPIDJSON_DIAG_OFF()
279 … SizeType s = NewState(kRegexInvalidState, kRegexInvalidState, kRangeCharacterClass); in RAPIDJSON_DIAG_OFF() local
280 GetState(s).rangeStart = range; in RAPIDJSON_DIAG_OFF()
281 *operandStack.template Push<Frag>() = Frag(s, s, s); in RAPIDJSON_DIAG_OFF()
311 State& s = GetState(i); in RAPIDJSON_DIAG_OFF() local
312 printf("[%2d] out: %2d out1: %2d c: '%c'\n", i, s.out, s.out1, (char)s.codepoint); in RAPIDJSON_DIAG_OFF()
320 State* s = states_.template Push<State>(); in RAPIDJSON_DIAG_OFF() local
321 s->out = out; in RAPIDJSON_DIAG_OFF()
322 s->out1 = out1; in RAPIDJSON_DIAG_OFF()
323 s->codepoint = codepoint; in RAPIDJSON_DIAG_OFF()
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgSwCommon.h243 typedef uint8_t(*SwMask)(uint8_t s, uint8_t d, uint8_t a); //src, dst, alpha
244 typedef uint32_t(*SwBlender)(uint32_t s, uint32_t d, uint8_t a); //src, dst, alpha
311 static inline uint32_t INTERPOLATE(uint32_t s, uint32_t d, uint8_t a) in INTERPOLATE() argument
313 …return (((((((s >> 8) & 0xff00ff) - ((d >> 8) & 0xff00ff)) * a) + (d & 0xff00ff00)) & 0xff00ff00) … in INTERPOLATE()
316 static inline uint8_t INTERPOLATE8(uint8_t s, uint8_t d, uint8_t a) in INTERPOLATE8() argument
318 return (((s) * (a) + 0xff) >> 8) + (((d) * ~(a) + 0xff) >> 8); in INTERPOLATE8()
351 static inline uint32_t opBlendInterp(uint32_t s, uint32_t d, uint8_t a) in opBlendInterp() argument
353 return INTERPOLATE(s, d, a); in opBlendInterp()
356 static inline uint32_t opBlendNormal(uint32_t s, uint32_t d, uint8_t a) in opBlendNormal() argument
358 auto t = ALPHA_BLEND(s, a); in opBlendNormal()
[all …]
DtvgSwMath.cpp103 int32_t s = 1; in mathMultiply() local
108 s = -s; in mathMultiply()
112 s = -s; in mathMultiply()
115 return (s > 0) ? c : -c; in mathMultiply()
121 int32_t s = 1; in mathDivide() local
126 s = -s; in mathDivide()
130 s = -s; in mathDivide()
133 return (s < 0 ? -q : q); in mathDivide()
139 int32_t s = 1; in mathMulDiv() local
144 s = -s; in mathMulDiv()
[all …]
DtvgLottieModel.cpp282 auto s = start(frameNo, exps); in fill() local
288 static_cast<LinearGradient*>(fill)->linear(s.x, s.y, e.x, e.y); in fill()
294 auto w = fabsf(e.x - s.x); in fill()
295 auto h = fabsf(e.y - s.y); in fill()
300 P(static_cast<RadialGradient*>(fill))->radial(s.x, s.y, r, s.x, s.y, 0.0f); in fill()
303 auto startAngle = rad2deg(tvg::atan2(e.y - s.y, e.x - s.x)); in fill()
305 auto fx = s.x + cos(angle) * progress * r; in fill()
306 auto fy = s.y + sin(angle) * progress * r; in fill()
308 P(static_cast<RadialGradient*>(fill))->radial(s.x, s.y, r, fx, fy, 0.0f); in fill()
496 for (auto s = slots.begin(); s < slots.end(); ++s) { in ~LottieComposition() local
[all …]
DtvgLottieLoader.cpp309 for (auto s = comp->slots.begin(); s < comp->slots.end(); ++s) { in override() local
310 if (strcmp((*s)->sid, sid)) continue; in override()
311 if (!parser.apply(*s)) success = false; in override()
322 for (auto s = comp->slots.begin(); s < comp->slots.end(); ++s) { in override() local
323 (*s)->reset(); in override()
/lvgl-latest/src/libs/thorvg/rapidjson/
Dreader.h233 StreamLocalCopy(Stream& original) : s(original), original_(original) {} in StreamLocalCopy()
234 ~StreamLocalCopy() { original_ = s; } in ~StreamLocalCopy()
236 Stream s; variable
248 StreamLocalCopy(Stream& original) : s(original) {} in StreamLocalCopy()
250 Stream& s; variable
268 InputStream& s(copy.s); in SkipWhitespace()
271 while ((c = s.Peek()) == ' ' || c == '\n' || c == '\r' || c == '\t') in SkipWhitespace()
272 s.Take(); in SkipWhitespace()
303 const __m128i s = _mm_load_si128(reinterpret_cast<const __m128i *>(p)); in SkipWhitespace_SIMD() local
304 …const int r = _mm_cmpistri(w, s, _SIDD_UBYTE_OPS | _SIDD_CMP_EQUAL_ANY | _SIDD_LEAST_SIGNIFICANT |… in SkipWhitespace_SIMD()
[all …]
/lvgl-latest/tests/makefile_uefi/
Dtest.c11 void * memcpy(void * s, const void * ct, size_t n) in memcpy() argument
14 uint8_t * s_8 = (uint8_t *) s; in memcpy()
20 return s; in memcpy()
24 void * memset(void * s, int c, size_t n) in memset() argument
26 uint8_t * s_8 = (uint8_t *)s; in memset()
32 return s; in memset()
/lvgl-latest/scripts/
Dfiletohex.py7 s = file.read() variable
12 s = re.sub(r'[^\x00-\xff]', '', s) variable
14 s += '\x00'
16 b.extend(map(ord, s))
/lvgl-latest/src/stdlib/builtin/
Dlv_string_builtin.c48 #define _COPY(d, s) *d = *s; d++; s++; argument
156 char * s = (char *)src + len - 1; in lv_memmove() local
159 *tmp-- = *s--; in lv_memmove()
164 char * s = (char *)src; in lv_memmove() local
167 *tmp++ = *s++; in lv_memmove()
281 char * lv_strchr(const char * s, int c) in lv_strchr() argument
283 for(; ; s++) { in lv_strchr()
284 if(*s == c) { in lv_strchr()
285 return (char *)s; in lv_strchr()
288 if(*s == '\0') { in lv_strchr()
/lvgl-latest/src/libs/expat/
Dxmlparse.c177 # define MUST_CONVERT(enc, s) (! (enc)->isUtf16 || (((uintptr_t)(s)) & 1)) argument
185 # define MUST_CONVERT(enc, s) (! (enc)->isUtf8) argument
242 static size_t keylen(KEY s);
349 XML_Char s[1]; member
479 const char *s, const char *next);
482 const char *s, const char *end, int tok,
543 static void FASTCALL normalizePublicId(XML_Char *s);
574 const XML_Char *s);
575 static const XML_Char *poolCopyStringN(STRING_POOL *pool, const XML_Char *s,
578 const XML_Char *s);
[all …]
/lvgl-latest/src/libs/barcode/
Dcode128.h39 size_t code128_estimate_len(const char * s);
40 size_t code128_encode_gs1(const char * s, char * out, size_t maxlength);
41 size_t code128_encode_raw(const char * s, char * out, size_t maxlength);
Dcode128.c180 size_t code128_estimate_len(const char * s) in code128_estimate_len() argument
184 + CODE128_CHAR_LEN * (CODE128_STRLEN(s) * 11 / 10) // contents + 10% padding in code128_estimate_len()
452 size_t code128_encode_raw(const char * s, char * out, size_t maxlength) in code128_encode_raw() argument
475 state.steps[0].next_input = s; in code128_encode_raw()
481 state.steps[1].next_input = s; in code128_encode_raw()
487 state.steps[2].next_input = s; in code128_encode_raw()
554 size_t code128_encode_gs1(const char * s, char * out, size_t maxlength) in code128_encode_gs1() argument
556 size_t raw_size = CODE128_STRLEN(s) + 1; in code128_encode_gs1()
564 for(; *s != '\0'; s++) { in code128_encode_gs1()
565 if(strncmp(s, "[FNC1]", 6) == 0) { in code128_encode_gs1()
[all …]
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_8.c12 uint16_t s = lv_chart_get_x_start_point(chart, ser); in add_data() local
15 a[(s + 1) % p] = LV_CHART_POINT_NONE; in add_data()
16 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data()
17 a[(s + 2) % p] = LV_CHART_POINT_NONE; in add_data()
/lvgl-latest/src/stdlib/rtthread/
Dlv_string_rtthread.c124 char * lv_strchr(const char * s, int c) in lv_strchr() argument
126 for(; ; s++) { in lv_strchr()
127 if(*s == c) { in lv_strchr()
128 return (char *)s; in lv_strchr()
131 if(*s == '\0') { in lv_strchr()
/lvgl-latest/docs/details/other-components/
Dobserver.rst24 //It's a global variable
47 //Will be called when the related subject's value changes
68 //Set the subject's value to 30. It will notify `some_observer_cb`
96 The following functions can be used to set a subject's value:
103 Get subject's value
106 The following functions can be used to get a subject's value:
115 Get subject's previous value
118 The following functions can be used to get a subject's previous value:
151 It's also possible to save a target widget when subscribing to a subject.
222 lv_subject_init_int(&subject_mode, 0); //Let's say 0 is Voltage, 1 is Current
[all …]
/lvgl-latest/src/misc/
Dlv_color.c137 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument
140 s = (uint16_t)((uint16_t)s * 255) / 100; in lv_color_hsv_to_rgb()
147 if(s == 0) { 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()
212 hsv.s = 0; in lv_color_rgb_to_hsv()
217 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()
218 if(hsv.s < 3) { in lv_color_rgb_to_hsv()
/lvgl-latest/docs/details/integration/chip/
Darm.rst7s energy-efficient designs are used in billions of devices worldwide, from microcontrollers to sma…
12 …piler that supports the target Arm architecture can be used to compile LVGL's source code, includi…
23 1. Download and install the AC6 compiler from `Arm's website <https://developer.arm.com/Tools%20and…
29 …works in various vendors' IDEs, including Arm's Keil MDK, IAR, Renesas's e2 studio, NXP's MCUXpres…
49 …th a single instruction. Therefore, it's important to use the fastest memory (e.g., ``BSS`` or ``T…
/lvgl-latest/docs/details/debugging/
Dgdb_plugin.rst15 core dump. To load the LVGL GDB plugin within GDB's command line, type the
42 - ``info style``: Show the object's style.
55 Show obj's style
58 This command can dump the object's local style, since style value is a union, it's displayed in all…
60 ``info style address_of_obj``: Show the object's style.
/lvgl-latest/examples/libs/freetype/
DOFL.txt30 Holder(s) under this license and clearly marked as such. This may
34 copyright statement(s).
37 distributed by the Copyright Holder(s).
64 Name(s) unless explicit written permission is granted by the corresponding
68 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70 Modified Version, except to acknowledge the contribution(s) of the
71 Copyright Holder(s) and the Author(s) or with their explicit written
/lvgl-latest/tests/src/test_files/fonts/noto/
DOFL.txt30 Holder(s) under this license and clearly marked as such. This may
34 copyright statement(s).
37 distributed by the Copyright Holder(s).
64 Name(s) unless explicit written permission is granted by the corresponding
68 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70 Modified Version, except to acknowledge the contribution(s) of the
71 Copyright Holder(s) and the Author(s) or with their explicit written
/lvgl-latest/scripts/built_in_font/font_license/Montserrat/
DOFL.txt30 Holder(s) under this license and clearly marked as such. This may
34 copyright statement(s).
37 distributed by the Copyright Holder(s).
64 Name(s) unless explicit written permission is granted by the corresponding
68 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70 Modified Version, except to acknowledge the contribution(s) of the
71 Copyright Holder(s) and the Author(s) or with their explicit written
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h343 int w, h, i, j, c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20);
348 … bitmap = stbtt_GetCodepointBitmap(&font, 0, stbtt_ScaleForPixelHeight(&font, s), c, &w, &h, 0, 0);
451 #define STBTT_STREAM_READ(s,x,y) fread(x,1,y,s); argument
452 #define STBTT_STREAM_SEEK(s,x) fseek(s,x,SEEK_SET); argument
1241 static stbtt__buf stbtt__new_buf(STBTT_STREAM_TYPE s, size_t size) in stbtt__new_buf() argument
1249 r.data = s; in stbtt__new_buf()
1262 static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) in stbtt__buf_range() argument
1265 if(o < 0 || s < 0 || o > b->size || s > b->size - o) return r; in stbtt__buf_range()
1272 r.size = s; in stbtt__buf_range()
1371 static stbtt_uint8 ttBYTE(STBTT_STREAM_TYPE s, stbtt_uint32 offset) in ttBYTE() argument
[all …]
/lvgl-latest/docs/details/base-widget/styles/
Dstyle.rst10 border width, font, text color and so on. It's similar to a ``class`` in CSS.
15 ``style_blue`` to the knob of a slider when it's in pressed state.
20 style defines it or use a default value if it's not specified by any of the
26 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in a Wi…
60 If a property is not defined in a state the best matching state's
65 What does the "best matching state's property" mean?
68 A higher value means higher precedence. To determine which state's
69 property to use let's take an example. Imagine the background color is
76 1. Initially the Widget is in the default state, so it's a simple case:
77 the property is perfectly defined in the Widget's current state as
[all …]

123456789