Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 71) sorted by relevance

123

/lvgl-latest/src/libs/thorvg/
DtvgSwMath.cpp280 clippee.max.x = (clippee.max.x < clipper.max.x) ? clippee.max.x : clipper.max.x; in mathClipBBox()
281 clippee.max.y = (clippee.max.y < clipper.max.y) ? clippee.max.y : clipper.max.y; in mathClipBBox()
286 if (clippee.max.x - clippee.min.x < 1 && clippee.max.y - clippee.min.y < 1) return false; in mathClipBBox()
289 if (clippee.min.x >= clipper.max.x || clippee.min.y >= clipper.max.y || in mathClipBBox()
290 clippee.max.x <= clipper.min.x || clippee.max.y <= clipper.min.y) return false; in mathClipBBox()
321 renderRegion.max.x = static_cast<SwCoord>(nearbyint(xMax / 64.0f)); in mathUpdateOutlineBBox()
323 renderRegion.max.y = static_cast<SwCoord>(nearbyint(yMax / 64.0f)); in mathUpdateOutlineBBox()
326 renderRegion.max.x = (xMax + 63) >> 6; in mathUpdateOutlineBBox()
328 renderRegion.max.y = (yMax + 63) >> 6; in mathUpdateOutlineBBox()
DtvgSwRle.cpp210 SwCoord min, max; member
643 auto max = arc[0].y; in _cubicTo() local
649 if (y > max) max = y; in _cubicTo()
652 if (TRUNC(min) >= rw.cellMax.y || TRUNC(max) < rw.cellMin.y) goto draw; in _cubicTo()
811 auto maxx = minx + static_cast<int16_t>(bbox->max.x - bbox->min.x) - 1; in _intersectSpansRect()
812 auto maxy = miny + static_cast<int16_t>(bbox->max.y - bbox->min.y) - 1; in _intersectSpansRect()
875 rw.cellMax = renderRegion.max; in rleRender()
897 SwCoord max; in rleRender() local
900 for (int n = 0; n < bandCnt; ++n, min = max) { in rleRender()
901 max = min + rw.bandSize; in rleRender()
[all …]
DtvgSwRaster.cpp238 for (auto y = region.min.y; y < region.max.y; ++y) { in _compositeMaskImage()
241 for (auto x = region.min.x; x < region.max.x; x++, dst++, src++) { in _compositeMaskImage()
332 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterCompositeMaskedRect()
333 auto h = static_cast<uint32_t>(region.max.y - region.min.y); in _rasterCompositeMaskedRect()
351 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterDirectMaskedRect()
352 auto h = static_cast<uint32_t>(region.max.y - region.min.y); in _rasterDirectMaskedRect()
375 …ace->compositor->method, region.min.x, region.min.y, region.max.x - region.min.x, region.max.y - r… in _rasterMaskedRect()
386 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterMattedRect()
387 auto h = static_cast<uint32_t>(region.max.y - region.min.y); in _rasterMattedRect()
425 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in _rasterBlendingRect()
[all …]
DtvgPaint.cpp52 Point max = {0.0f, 0.0f}; in _clipRect() local
59 if (tmp[i].x > max.x) max.x = tmp[i].x; in _clipRect()
61 if (tmp[i].y > max.y) max.y = tmp[i].y; in _clipRect()
67 if (min.x <= region[0] && max.x >= region[1] && min.y <= region[2] && max.y >= region[3]) { in _clipRect()
71 … } else if (max.x <= region[0] || min.x >= region[1] || max.y <= region[2] || min.y >= region[3]) { in _clipRect()
DtvgSwPostEffect.cpp168 auto w = (bbox.max.x - bbox.min.x); in effectGaussianBlur()
169 auto h = (bbox.max.y - bbox.min.y); in effectGaussianBlur()
178 …%ld, %ld) params(%f %d %d), level(%d)", bbox.min.x, bbox.min.y, bbox.max.x, bbox.max.y, params->si… in effectGaussianBlur()
DtvgShape.h134 Point max = { pts->x, pts->y }; in bounds() local
139 if (pts2->x > max.x) max.x = pts2->x; in bounds()
140 if (pts2->y > max.y) max.y = pts2->y; in bounds()
145 if (w) *w = max.x - min.x; in bounds()
146 if (h) *h = max.y - min.y; in bounds()
DtvgSwRenderer.cpp65 region.w = bbox.max.x - region.x; in bounds()
66 region.h = bbox.max.y - region.y; in bounds()
614 cmp->compositor->bbox.max.x = x + w; in target()
615 cmp->compositor->bbox.max.y = y + h; in target()
713 task->bbox.min.x = std::max(static_cast<SwCoord>(0), static_cast<SwCoord>(vport.x)); in prepareCommon()
714 task->bbox.min.y = std::max(static_cast<SwCoord>(0), static_cast<SwCoord>(vport.y)); in prepareCommon()
715 …task->bbox.max.x = std::min(static_cast<SwCoord>(surface->w), static_cast<SwCoord>(vport.x + vport… in prepareCommon()
716 …task->bbox.max.y = std::min(static_cast<SwCoord>(surface->h), static_cast<SwCoord>(vport.y + vport… in prepareCommon()
DtvgMath.h75 static inline void clamp(T& v, const T& min, const T& max) in clamp() argument
78 else if (v > max) v = max; in clamp()
DtvgSwRasterC.h102 auto h = static_cast<uint32_t>(region.max.y - region.min.y); in cRasterTranslucentRect()
103 auto w = static_cast<uint32_t>(region.max.x - region.min.x); in cRasterTranslucentRect()
/lvgl-latest/examples/others/monkey/
Dlv_example_monkey_2.c11 config.period_range.max = 500; in lv_example_monkey_2()
13 config.input_range.max = 5; in lv_example_monkey_2()
Dlv_example_monkey_3.c14 config.period_range.max = 500; in lv_example_monkey_3()
16 config.input_range.max = sizeof(btn_points) / sizeof(lv_point_t) - 1; in lv_example_monkey_3()
Dlv_example_monkey_1.c11 config.period_range.max = 100; in lv_example_monkey_1()
/lvgl-latest/src/others/monkey/
Dlv_monkey.h38 uint32_t max; member
45 int32_t max; member
Dlv_monkey.c67 config->period_range.max = MONKEY_PERIOD_RANGE_MAX_DEF; in lv_monkey_config_init()
159 …c_diff = (int16_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_range.max); in lv_monkey_timer_cb()
162 …tn_id = (uint32_t)lv_monkey_random(monkey->config.input_range.min, monkey->config.input_range.max); in lv_monkey_timer_cb()
175 …monkey->timer, lv_monkey_random(monkey->config.period_range.min, monkey->config.period_range.max)); in lv_monkey_timer_cb()
/lvgl-latest/src/misc/
Dlv_math.h154 uint32_t lv_rand(uint32_t min, uint32_t max);
167 #define LV_CLAMP(min, val, max) (LV_MAX(min, (LV_MIN(val, max)))) argument
/lvgl-latest/libs/nema_gfx/include/
Dnema_math.h172 #define nema_clamp(val, min, max) nema_min2((max), nema_max2((min), (val))) argument
/lvgl-latest/src/widgets/scale/
Dlv_scale.h121 void lv_scale_set_range(lv_obj_t * obj, int32_t min, int32_t max);
212 void lv_scale_section_set_range(lv_scale_section_t * section, int32_t min, int32_t max);
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch_settings.h57 int32_t min, int32_t max);
/lvgl-latest/scripts/
Dcode-format.cfg14 --max-code-length=120
19 --max-continuation-indent=120
/lvgl-latest/src/widgets/line/
Dlv_line.c174 static inline lv_value_precise_t resolve_point_coord(lv_value_precise_t coord, int32_t max) in resolve_point_coord() argument
177 return LV_CLAMP(0, max * LV_COORD_GET_PCT((int32_t)coord) / 100, max); in resolve_point_coord()
/lvgl-latest/examples/widgets/menu/
Dlv_example_menu_5.c15 … const char * icon, const char * txt, int32_t min, int32_t max, int32_t val);
174 …t * create_slider(lv_obj_t * parent, const char * icon, const char * txt, int32_t min, int32_t max, in create_slider() argument
181 lv_slider_set_range(slider, min, max); in create_slider()
/lvgl-latest/src/widgets/bar/
Dlv_bar.h83 void lv_bar_set_range(lv_obj_t * obj, int32_t min, int32_t max);
/lvgl-latest/docs/details/integration/bindings/
Dpikascript.rst55 print('mem used max: %0.2f kB' % (mem.getMax()))
71 print('mem used max: %0.2f kB' % (mem.getMax()))
101 print('mem used max: %0.2f kB' % (mem.getMax()))
128 print('mem used max: %0.2f kB' % (mem.getMax()))
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_smart_meter.c43 static void widget1_anim_height_range(lv_demo_high_res_ctx_t * c, int32_t * min, int32_t * max);
222 static void widget1_anim_height_range(lv_demo_high_res_ctx_t * c, int32_t * min, int32_t * max) in widget1_anim_height_range() argument
225 *max = c->sz->card_long_edge - c->sz->gap[7] - c->sz->smart_meter_collapsed_part_height; in widget1_anim_height_range()
235 int32_t max; in widget1_open_part1_anim_cb() local
236 widget1_anim_height_range(c, &min, &max); in widget1_open_part1_anim_cb()
237 lv_obj_set_height(part1, lv_map(val, 0, 1000, min, max)); in widget1_open_part1_anim_cb()
260 int32_t max; in widget1_open_part2_anim_cb() local
261 widget1_anim_height_range(c, &min, &max); in widget1_open_part2_anim_cb()
262 lv_obj_set_height(part1, lv_map(val, 0, 1000, max, min)); in widget1_open_part2_anim_cb()
/lvgl-latest/env_support/pikascript/
Dpika_lv_wegit.c87 void pika_lvgl_arc_set_range(PikaObj *self, int min, int max){ in pika_lvgl_arc_set_range() argument
89 lv_arc_set_range(lv_obj, min, max); in pika_lvgl_arc_set_range()
152 void pika_lvgl_bar_set_range(PikaObj *self, int min, int max){ in pika_lvgl_bar_set_range() argument
154 lv_bar_set_range(lv_obj, min, max); in pika_lvgl_bar_set_range()

123