Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 121) sorted by relevance

12345

/lvgl-latest/src/misc/
Dlv_style_gen.c15 lv_style_value_t v = { in lv_style_set_width() local
18 lv_style_set_prop(style, LV_STYLE_WIDTH, v); in lv_style_set_width()
23 lv_style_value_t v = { in lv_style_set_min_width() local
26 lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); in lv_style_set_min_width()
31 lv_style_value_t v = { in lv_style_set_max_width() local
34 lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); in lv_style_set_max_width()
39 lv_style_value_t v = { in lv_style_set_height() local
42 lv_style_set_prop(style, LV_STYLE_HEIGHT, v); in lv_style_set_height()
47 lv_style_value_t v = { in lv_style_set_min_height() local
50 lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); in lv_style_set_min_height()
[all …]
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
141 v = (uint16_t)((uint16_t)v * 255) / 100; in lv_color_hsv_to_rgb()
148 return lv_color_make(v, v, v); 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()
166 g = v; in lv_color_hsv_to_rgb()
171 g = v; in lv_color_hsv_to_rgb()
177 b = v; in lv_color_hsv_to_rgb()
[all …]
/lvgl-latest/src/core/
Dlv_obj_style_gen.c15 lv_style_value_t v = { in lv_obj_set_style_width() local
18 lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); in lv_obj_set_style_width()
23 lv_style_value_t v = { in lv_obj_set_style_min_width() local
26 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); in lv_obj_set_style_min_width()
31 lv_style_value_t v = { in lv_obj_set_style_max_width() local
34 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); in lv_obj_set_style_max_width()
39 lv_style_value_t v = { in lv_obj_set_style_height() local
42 lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); in lv_obj_set_style_height()
47 lv_style_value_t v = { in lv_obj_set_style_min_height() local
50 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); in lv_obj_set_style_min_height()
[all …]
Dlv_obj_style_gen.h24 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH); in lv_obj_get_style_width() local
25 return (int32_t)v.num; in lv_obj_get_style_width()
30 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_WIDTH); in lv_obj_get_style_min_width() local
31 return (int32_t)v.num; in lv_obj_get_style_min_width()
36 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_WIDTH); in lv_obj_get_style_max_width() local
37 return (int32_t)v.num; in lv_obj_get_style_max_width()
42 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_HEIGHT); in lv_obj_get_style_height() local
43 return (int32_t)v.num; in lv_obj_get_style_height()
48 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_HEIGHT); in lv_obj_get_style_min_height() local
49 return (int32_t)v.num; in lv_obj_get_style_min_height()
[all …]
Dlv_obj_style.c57 lv_style_value_t * v);
61 static void trans_anim_cb(void * _tr, int32_t v);
66 static void fade_anim_cb(void * obj, int32_t v);
480 …e_value_t lv_obj_style_apply_color_filter(const lv_obj_t * obj, lv_part_t part, lv_style_value_t v) in lv_obj_style_apply_color_filter() argument
482 if(obj == NULL) return v; in lv_obj_style_apply_color_filter()
486 if(f_opa != 0) v.color = f->filter_cb(f, v.color, f_opa); in lv_obj_style_apply_color_filter()
488 return v; in lv_obj_style_apply_color_filter()
506 lv_style_value_t v; in lv_obj_style_state_compare() local
509 if(lv_style_get_prop(style, LV_STYLE_PAD_TOP, &v))layout_diff = true; in lv_obj_style_state_compare()
510 else if(lv_style_get_prop(style, LV_STYLE_PAD_BOTTOM, &v)) layout_diff = true; in lv_obj_style_state_compare()
[all …]
/lvgl-latest/demos/music/assets/
Dspectrum.py25 v = 0 variable
26 for i in range(f_prev, f): v += S[i][t]
27 if v != 0: v = int(v/30)
28 if v < 0: v = 0
30 fout.write(str(int(v)) + ", ")
/lvgl-latest/src/draw/sw/blend/neon/
Dlv_blend_neon.S118 v\op\()4.8 {\reg\()_B, \reg\()_G, \reg\()_R, \reg\()_A}, [\mem\()_ADDR]\wb
120 v\op\()1.32 {\reg\()_8888_L, \reg\()_8888_H}, [\mem\()_ADDR]\wb
129 v\op\()1.32 {\reg\()_8888_L}, [\mem\()_ADDR]!
130 v\op\()1.32 {\reg\()_R}, [\mem\()_ADDR]!
131 v\op\()1.32 {\reg\()_A[0]}, [\mem\()_ADDR]!
133 v\op\()1.32 {\reg\()_8888_L}, [\mem\()_ADDR]!
134 v\op\()1.32 {\reg\()_R}, [\mem\()_ADDR]!
136 v\op\()1.32 {\reg\()_8888_L}, [\mem\()_ADDR]!
137 v\op\()1.32 {\reg\()_R[0]}, [\mem\()_ADDR]!
139 v\op\()1.32 {\reg\()_8888_L}, [\mem\()_ADDR]\wb
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/internal/
Dstrtod.h150 DiyFp v(significand, 0); in StrtodDiyFp()
151 v = v.Normalize(); in StrtodDiyFp()
152 error <<= -v.e; in StrtodDiyFp()
170 v = v * kPow10[adjustment - 1]; in StrtodDiyFp()
175 v = v * cachedPower; in StrtodDiyFp()
179 const int oldExp = v.e; in StrtodDiyFp()
180 v = v.Normalize(); in StrtodDiyFp()
181 error <<= oldExp - v.e; in StrtodDiyFp()
183 const int effectiveSignificandSize = Double::EffectiveSignificandSize(64 + v.e); in StrtodDiyFp()
187 v.f >>= scaleExp; in StrtodDiyFp()
[all …]
Ditoa.h140 uint32_t v = static_cast<uint32_t>(value); in u64toa() local
141 if (v < 10000) { in u64toa()
142 const uint32_t d1 = (v / 100) << 1; in u64toa()
143 const uint32_t d2 = (v % 100) << 1; in u64toa()
145 if (v >= 1000) in u64toa()
147 if (v >= 100) in u64toa()
149 if (v >= 10) in u64toa()
155 const uint32_t b = v / 10000; in u64toa()
156 const uint32_t c = v % 10000; in u64toa()
/lvgl-latest/examples/anim/
Dlv_example_anim_2.c4 static void anim_x_cb(void * var, int32_t v) in anim_x_cb() argument
6 lv_obj_set_x(var, v); in anim_x_cb()
9 static void anim_size_cb(void * var, int32_t v) in anim_size_cb() argument
11 lv_obj_set_size(var, v, v); in anim_size_cb()
/lvgl-latest/src/widgets/spinbox/
Dlv_spinbox.c68 void lv_spinbox_set_value(lv_obj_t * obj, int32_t v) in lv_spinbox_set_value() argument
73 if(v > spinbox->range_max) v = spinbox->range_max; in lv_spinbox_set_value()
74 if(v < spinbox->range_min) v = spinbox->range_min; in lv_spinbox_set_value()
76 spinbox->value = v; in lv_spinbox_set_value()
215 int32_t v = spinbox->value; in lv_spinbox_increment() local
219 v = -(spinbox->step + spinbox->value); in lv_spinbox_increment()
222 if(v + spinbox->step <= spinbox->range_max) { in lv_spinbox_increment()
223 v += spinbox->step; in lv_spinbox_increment()
228 v = spinbox->range_min; in lv_spinbox_increment()
230 v = spinbox->range_max; in lv_spinbox_increment()
[all …]
/lvgl-latest/src/widgets/spinner/
Dlv_spinner.c28 static void arc_anim_start_angle(void * obj, int32_t v);
29 static void arc_anim_end_angle(void * obj, int32_t v);
96 static void arc_anim_start_angle(void * obj, int32_t v) in arc_anim_start_angle() argument
98 lv_arc_set_start_angle(obj, (uint32_t) v); in arc_anim_start_angle()
101 static void arc_anim_end_angle(void * obj, int32_t v) in arc_anim_end_angle() argument
103 lv_arc_set_end_angle(obj, (uint32_t) v); in arc_anim_end_angle()
/lvgl-latest/src/libs/thorvg/rapidjson/
Ddocument.h523 static bool Is(const ValueType& v) { return v.IsBool(); }
524 static bool Get(const ValueType& v) { return v.GetBool(); }
525 static ValueType& Set(ValueType& v, bool data) { return v.SetBool(data); }
526 …static ValueType& Set(ValueType& v, bool data, typename ValueType::AllocatorType&) { return v.SetB…
531 static bool Is(const ValueType& v) { return v.IsInt(); }
532 static int Get(const ValueType& v) { return v.GetInt(); }
533 static ValueType& Set(ValueType& v, int data) { return v.SetInt(data); }
534 …static ValueType& Set(ValueType& v, int data, typename ValueType::AllocatorType&) { return v.SetIn…
539 static bool Is(const ValueType& v) { return v.IsUint(); }
540 static unsigned Get(const ValueType& v) { return v.GetUint(); }
[all …]
Dpointer.h454 ValueType* v = &root; variable
457 if (v->IsArray() && t->name[0] == '-' && t->length == 1) {
458 v->PushBack(ValueType().Move(), allocator);
459 v = &((*v)[v->Size() - 1]);
464 if (!v->IsObject())
465 v->SetObject(); // Change to Object
468 if (!v->IsArray() && !v->IsObject())
469 v->SetArray(); // Change to Array
472 if (v->IsArray()) {
473 if (t->index >= v->Size()) {
[all …]
Dschema.h602 if (const ValueType* v = GetMember(value, GetIdString())) { in allocator_() local
603 if (v->IsString()) { in allocator_()
604 UriType local(*v, allocator); in allocator_()
606 … RAPIDJSON_SCHEMA_PRINT(SchemaIds, id.GetString(), v->GetString(), id_.GetString()); in allocator_()
610 if (const ValueType* v = GetMember(value, GetTypeString())) { in allocator_() local
612 if (v->IsString()) in allocator_()
613 AddType(*v); in allocator_()
614 else if (v->IsArray()) in allocator_()
615 for (ConstValueIterator itr = v->Begin(); itr != v->End(); ++itr) in allocator_()
619 if (const ValueType* v = GetMember(value, GetEnumString())) { in allocator_() local
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgSwMath.cpp164 Point v = pt.toPoint(); in mathRotate() local
170 pt.x = SwCoord(nearbyint((v.x * cosv - v.y * sinv) * 64.0f)); in mathRotate()
171 pt.y = SwCoord(nearbyint((v.x * sinv + v.y * cosv) * 64.0f)); in mathRotate()
210 auto v = pt.toPoint(); in mathLength() local
216 if (v.x < 0) v.x = -v.x; in mathLength()
217 if (v.y < 0) v.y = -v.y; in mathLength()
218 return static_cast<SwFixed>((v.x > v.y) ? (v.x + v.y * 0.375f) : (v.y + v.x * 0.375f)); in mathLength()
DtvgSwRasterTexmap.h95 float dx, u, v, iptr;
145 v = _va + dx * _dvdx;
157 vv = (int) v;
161 ab = (int)(255 * (1 - modff(v, &iptr)));
197 v += _dvdx;
199 if ((uint32_t)v >= image->h) break;
206 vv = (int) v;
210 ab = (int)(255 * (1 - modff(v, &iptr)));
248 v += _dvdx;
250 if ((uint32_t)v >= image->h) break;
[all …]
/lvgl-latest/examples/widgets/image/
Dlv_example_image_3.c4 static void set_angle(void * img, int32_t v) in set_angle() argument
6 lv_image_set_rotation(img, v); in set_angle()
9 static void set_scale(void * img, int32_t v) in set_scale() argument
11 lv_image_set_scale(img, v); in set_scale()
/lvgl-latest/src/draw/sw/blend/helium/
Dlv_blend_helium.S72 v\op\()rb.u16 \reg\()_A, [\mem\()_ADDR], #8
74 v\op\()rb.8 \reg\()_A, [\mem\()_ADDR], #16
85 v\op\()rb.8 \reg\()_B, [\mem\()_ADDR, S_B]
86 v\op\()rb.8 \reg\()_R, [\mem\()_ADDR, S_G]
88 v\op\()rb.8 \reg\()_B, [\mem\()_ADDR, \reg\()_A]
90 v\op\()rb.8 \reg\()_R, [\mem\()_ADDR, \reg\()_A]
111 v\op\()rh.16 \reg\()_565, [\mem\()_ADDR], #16
113 v\op\()rh.16 \reg\()_565, [\mem\()_ADDR]
118 v\op\()rb.8 \reg\()_B, [\mem\()_ADDR, S_B]
119 v\op\()rb.8 \reg\()_G, [\mem\()_ADDR, S_G]
[all …]
/lvgl-latest/src/libs/expat/
Dsiphash.h116 #define SIP_U32TO8_LE(p, v) \ argument
117 (p)[0] = (uint8_t)((v) >> 0); \
118 (p)[1] = (uint8_t)((v) >> 8); \
119 (p)[2] = (uint8_t)((v) >> 16); \
120 (p)[3] = (uint8_t)((v) >> 24);
122 #define SIP_U64TO8_LE(p, v) \ argument
123 SIP_U32TO8_LE((p) + 0, (uint32_t)((v) >> 0)); \
124 SIP_U32TO8_LE((p) + 4, (uint32_t)((v) >> 32));
158 # define sip_binof(v) sip_tobin((unsigned char[8]){0}, (v)) argument
/lvgl-latest/examples/layouts/flex/
Dlv_example_flex_5.c4 static void row_gap_anim(void * obj, int32_t v) in row_gap_anim() argument
6 lv_obj_set_style_pad_row(obj, v, 0); in row_gap_anim()
9 static void column_gap_anim(void * obj, int32_t v) in column_gap_anim() argument
11 lv_obj_set_style_pad_column(obj, v, 0); in column_gap_anim()
/lvgl-latest/src/others/xml/
Dlv_xml_utils.c62 int32_t v = lv_xml_atoi(str); in lv_xml_to_opa() local
65 v = v * 255 / 100; in lv_xml_to_opa()
68 v = LV_CLAMP(0, v, 255); in lv_xml_to_opa()
69 return (lv_opa_t)v; in lv_xml_to_opa()
/lvgl-latest/src/stdlib/builtin/
Dlv_string_builtin.c49 #define _SET(d, v) *d = v; d++; argument
118 void LV_ATTRIBUTE_FAST_MEM lv_memset(void * dst, uint8_t v, size_t len) in lv_memset() argument
127 _SET(d8, v); in lv_memset()
133 uint32_t v32 = (uint32_t)v + ((uint32_t)v << 8) + ((uint32_t)v << 16) + ((uint32_t)v << 24); in lv_memset()
143 _SET(d8, v); in lv_memset()
/lvgl-latest/examples/layouts/grid/
Dlv_example_grid_5.c4 static void row_gap_anim(void * obj, int32_t v) in row_gap_anim() argument
6 lv_obj_set_style_pad_row(obj, v, 0); in row_gap_anim()
9 static void column_gap_anim(void * obj, int32_t v) in column_gap_anim() argument
11 lv_obj_set_style_pad_column(obj, v, 0); in column_gap_anim()
/lvgl-latest/tests/src/test_cases/
Dtest_array.c32 int32_t v = 100; in test_array_set_get() local
33 lv_array_push_back(&array, &v); in test_array_set_get()
95 int32_t * v = lv_array_at(&a, i); in test_array_concat() local
96 TEST_ASSERT_EQUAL_INT32(i % 4, *v); in test_array_concat()

12345