Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 48) sorted by relevance

12

/lvgl-latest/src/libs/thorvg/
DtvgSwRenderer.cpp274 static void _renderFill(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderFill() argument
277 if (auto fill = task->rshape->fill) { in _renderFill()
278 rasterGradientShape(surface, &task->shape, fill, opacity); in _renderFill()
280 task->rshape->fillColor(&r, &g, &b, &a); in _renderFill()
282 if (a > 0) rasterShape(surface, &task->shape, r, g, b, a); in _renderFill()
286 static void _renderStroke(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderStroke() argument
289 if (auto strokeFill = task->rshape->strokeFill()) { in _renderStroke()
290 rasterGradientStroke(surface, &task->shape, strokeFill, opacity); in _renderStroke()
292 if (task->rshape->strokeColor(&r, &g, &b, &a)) { in _renderStroke()
294 if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a); in _renderStroke()
[all …]
DtvgTaskScheduler.cpp54 bool tryPop(Task** task) in tryPop()
58 *task = taskDeque.front(); in tryPop()
62 bool tryPush(Task* task) in tryPush()
67 taskDeque.back(task); in tryPush()
82 bool pop(Task** task) in pop()
92 *task = taskDeque.front(); in pop()
96 void push(Task* task) in push()
100 taskDeque.back(task); in push()
143 Task* task; in run() local
149 if (taskQueues[(i + x) % threads.count]->tryPop(&task)) { in run()
[all …]
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx.c58 lv_draw_task_t * task; member
75 static int32_t nema_gfx_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
133 static int32_t nema_gfx_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in nema_gfx_evaluate() argument
137 switch(task->type) { in nema_gfx_evaluate()
139 if(task->preference_score > 80) { in nema_gfx_evaluate()
140 task->preference_score = 80; in nema_gfx_evaluate()
141 task->preferred_draw_unit_id = DRAW_UNIT_ID_NEMA_GFX; in nema_gfx_evaluate()
149 if(task->preference_score > 80) { in nema_gfx_evaluate()
150 task->preference_score = 80; in nema_gfx_evaluate()
151 task->preferred_draw_unit_id = DRAW_UNIT_ID_NEMA_GFX; in nema_gfx_evaluate()
[all …]
/lvgl-latest/src/draw/opengles/
Dlv_draw_opengles.c71 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
218 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in evaluate() argument
222 if(task->type == LV_DRAW_TASK_TYPE_IMAGE && in evaluate()
223 ((lv_draw_image_dsc_t *)task->draw_dsc)->header.cf >= LV_COLOR_FORMAT_PROPRIETARY_START) { in evaluate()
231 if(((lv_draw_dsc_base_t *)task->draw_dsc)->user_data == NULL) { in evaluate()
232 task->preference_score = 0; in evaluate()
233 task->preferred_draw_unit_id = DRAW_UNIT_ID_OPENGLES; in evaluate()
240 lv_draw_task_t * task = u->task_act; in draw_to_texture() local
245 int32_t texture_w = lv_area_get_width(&task->_real_area); in draw_to_texture()
246 int32_t texture_h = lv_area_get_height(&task->_real_area); in draw_to_texture()
[all …]
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl.c50 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
176 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in evaluate() argument
180 if(task->type == LV_DRAW_TASK_TYPE_IMAGE && in evaluate()
181 ((lv_draw_image_dsc_t *)task->draw_dsc)->header.cf >= LV_COLOR_FORMAT_PROPRIETARY_START) { in evaluate()
189 if(((lv_draw_dsc_base_t *)task->draw_dsc)->user_data == NULL) { in evaluate()
190 task->preference_score = 0; in evaluate()
191 task->preferred_draw_unit_id = DRAW_UNIT_ID_SDL; in evaluate()
198 lv_draw_task_t * task = u->task_act; in draw_to_texture() local
203 int32_t texture_w = lv_area_get_width(&task->_real_area); in draw_to_texture()
204 int32_t texture_h = lv_area_get_height(&task->_real_area); in draw_to_texture()
[all …]
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite.c39 static int32_t draw_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
235 static int32_t draw_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in draw_evaluate() argument
240 const lv_draw_dsc_base_t * base_dsc = task->draw_dsc; in draw_evaluate()
245 switch(task->type) { in draw_evaluate()
264 if(!check_arc_is_supported(task->draw_dsc)) { in draw_evaluate()
271 if(!check_image_is_supported(task->draw_dsc)) { in draw_evaluate()
283 task->preference_score = 80; in draw_evaluate()
284 task->preferred_draw_unit_id = VG_LITE_DRAW_UNIT_ID; in draw_evaluate()
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite.c43 lv_draw_task_t * task; member
56 static int32_t _vglite_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
488 static inline void _vglite_queue_task(lv_draw_task_t * task) in _vglite_queue_task() argument
492 _draw_task_buf[_tail].task = task; in _vglite_queue_task()
497 static inline void _vglite_signal_task_ready(lv_draw_task_t * task) in _vglite_signal_task_ready() argument
500 task->state = LV_DRAW_TASK_STATE_READY; in _vglite_signal_task_ready()
511 lv_draw_task_t * task = _draw_task_buf[i % VGLITE_TASK_BUF_SIZE].task; in _vglite_signal_all_task_ready() local
513 _vglite_signal_task_ready(task); in _vglite_signal_all_task_ready()
524 lv_draw_task_t * task = _draw_task_buf[i % VGLITE_TASK_BUF_SIZE].task; in _vglite_signal_flushed_task_ready() local
526 _vglite_signal_task_ready(task); in _vglite_signal_flushed_task_ready()
/lvgl-latest/src/draw/
Dlv_draw_mask.c45 lv_draw_mask_rect_dsc_t * lv_draw_task_get_mask_rect_dsc(lv_draw_task_t * task) in lv_draw_task_get_mask_rect_dsc() argument
47 …return task->type == LV_DRAW_TASK_TYPE_MASK_RECTANGLE ? (lv_draw_mask_rect_dsc_t *)task->draw_dsc … in lv_draw_task_get_mask_rect_dsc()
Dlv_draw_line.c48 lv_draw_line_dsc_t * lv_draw_task_get_line_dsc(lv_draw_task_t * task) in lv_draw_task_get_line_dsc() argument
50 return task->type == LV_DRAW_TASK_TYPE_LINE ? (lv_draw_line_dsc_t *)task->draw_dsc : NULL; in lv_draw_task_get_line_dsc()
Dlv_draw_rect.h129 lv_draw_fill_dsc_t * lv_draw_task_get_fill_dsc(lv_draw_task_t * task);
142 lv_draw_border_dsc_t * lv_draw_task_get_border_dsc(lv_draw_task_t * task);
155 lv_draw_box_shadow_dsc_t * lv_draw_task_get_box_shadow_dsc(lv_draw_task_t * task);
Dlv_draw_triangle.c55 lv_draw_triangle_dsc_t * lv_draw_task_get_triangle_dsc(lv_draw_task_t * task) in lv_draw_task_get_triangle_dsc() argument
57 … return task->type == LV_DRAW_TASK_TYPE_TRIANGLE ? (lv_draw_triangle_dsc_t *)task->draw_dsc : NULL; in lv_draw_task_get_triangle_dsc()
Dlv_draw_rect.c66 lv_draw_fill_dsc_t * lv_draw_task_get_fill_dsc(lv_draw_task_t * task) in lv_draw_task_get_fill_dsc() argument
68 return task->type == LV_DRAW_TASK_TYPE_FILL ? (lv_draw_fill_dsc_t *)task->draw_dsc : NULL; in lv_draw_task_get_fill_dsc()
79 lv_draw_border_dsc_t * lv_draw_task_get_border_dsc(lv_draw_task_t * task) in lv_draw_task_get_border_dsc() argument
81 return task->type == LV_DRAW_TASK_TYPE_BORDER ? (lv_draw_border_dsc_t *)task->draw_dsc : NULL; in lv_draw_task_get_border_dsc()
91 lv_draw_box_shadow_dsc_t * lv_draw_task_get_box_shadow_dsc(lv_draw_task_t * task) in lv_draw_task_get_box_shadow_dsc() argument
93 …return task->type == LV_DRAW_TASK_TYPE_BOX_SHADOW ? (lv_draw_box_shadow_dsc_t *)task->draw_dsc : N… in lv_draw_task_get_box_shadow_dsc()
Dlv_draw_mask.h39 lv_draw_mask_rect_dsc_t * lv_draw_task_get_mask_rect_dsc(lv_draw_task_t * task);
Dlv_draw_triangle.h50 lv_draw_triangle_dsc_t * lv_draw_task_get_triangle_dsc(lv_draw_task_t * task);
Dlv_draw_line.h59 lv_draw_line_dsc_t * lv_draw_task_get_line_dsc(lv_draw_task_t * task);
Dlv_draw_arc.h58 lv_draw_arc_dsc_t * lv_draw_task_get_arc_dsc(lv_draw_task_t * task);
Dlv_draw_vector.c783 lv_vector_draw_task * task = lv_ll_get_head(task_list); in lv_vector_for_each_destroy_tasks() local
786 while(task != NULL) { in lv_vector_for_each_destroy_tasks()
787 next_task = lv_ll_get_next(task_list, task); in lv_vector_for_each_destroy_tasks()
788 lv_ll_remove(task_list, task); in lv_vector_for_each_destroy_tasks()
791 cb(data, task->path, &(task->dsc)); in lv_vector_for_each_destroy_tasks()
794 if(task->path) { in lv_vector_for_each_destroy_tasks()
795 lv_vector_path_delete(task->path); in lv_vector_for_each_destroy_tasks()
797 lv_array_deinit(&(task->dsc.stroke_dsc.dash_pattern)); in lv_vector_for_each_destroy_tasks()
799 lv_free(task); in lv_vector_for_each_destroy_tasks()
800 task = next_task; in lv_vector_for_each_destroy_tasks()
Dlv_draw_arc.c48 lv_draw_arc_dsc_t * lv_draw_task_get_arc_dsc(lv_draw_task_t * task) in lv_draw_task_get_arc_dsc() argument
50 return task->type == LV_DRAW_TASK_TYPE_ARC ? (lv_draw_arc_dsc_t *)task->draw_dsc : NULL; in lv_draw_task_get_arc_dsc()
Dlv_draw_private.h123 int32_t (*evaluate_cb)(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
/lvgl-latest/docs/details/main-components/
Ddraw.rst42 - compute which :ref:`Draw Unit <draw units>` should receive this task, and
43 - give the Draw Unit all the details required to accomplish the drawing task.
53 :preferred Draw Unit ID: the ID of the Draw Unit that should take this task
56 :next: a link to the next drawing task in the list.
100 .. _draw task evaluation:
106 "consulted" as to its "appropriateness" for the task. It does this through
109 optionally examines the existing "preference score" for the task mentioned above,
110 and if it can accomplish that type of task (e.g. line drawing) faster than other
112 "preferred Draw Unit ID" to the respective fields in the task. In this way, by the
113 time the evaluation sequence is complete, the task will contain the score and the ID
[all …]
/lvgl-latest/src/libs/rlottie/
Dlv_rlottie.c98 if(rlottie->task && (rlottie->dest_frame != rlottie->current_frame || in lv_rlottie_set_play_mode()
100 lv_timer_resume(rlottie->task); in lv_rlottie_set_play_mode()
154 rlottie->task = lv_timer_create(next_frame_task_cb, 1000 / rlottie->framerate, obj); in lv_rlottie_constructor()
173 if(rlottie->task) { in lv_rlottie_destructor()
174 lv_timer_delete(rlottie->task); in lv_rlottie_destructor()
175 rlottie->task = NULL; in lv_rlottie_destructor()
Dlv_rlottie_private.h35 lv_timer_t * task; member
/lvgl-latest/src/draw/sw/
Dlv_draw_sw.c55 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
142 static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in evaluate() argument
146 switch(task->type) { in evaluate()
149 lv_draw_image_dsc_t * draw_dsc = task->draw_dsc; in evaluate()
172 if(task->preference_score >= 100) { in evaluate()
173 task->preference_score = 100; in evaluate()
174 task->preferred_draw_unit_id = DRAW_UNIT_ID_SW; in evaluate()
/lvgl-latest/src/draw/dma2d/
Dlv_draw_dma2d.c34 static int32_t evaluate_cb(lv_draw_unit_t * draw_unit, lv_draw_task_t * task);
283 static int32_t evaluate_cb(lv_draw_unit_t * draw_unit, lv_draw_task_t * task) in evaluate_cb() argument
285 switch(task->type) { in evaluate_cb()
287 lv_draw_fill_dsc_t * dsc = task->draw_dsc; in evaluate_cb()
299 lv_draw_image_dsc_t * dsc = task->draw_dsc; in evaluate_cb()
330 task->preferred_draw_unit_id = DRAW_UNIT_ID_DMA2D; in evaluate_cb()
331 task->preference_score = 0; in evaluate_cb()
/lvgl-latest/docs/details/integration/chip/
Dnxp.rst82 and the PXP drawing task will get executed on the same LVGL main thread.
84 `_pxp_evaluate()` will get called after each task is being created and will
85 analyze if the task is supported by PXP or not. If it is supported, then an
86 preferred score and the draw unit id will be set to the task. An `score` equal
91 task (having the `DRAW_UNIT_ID_PXP` set) and will pass the task to the PXP draw
102 block the LVGL drawing thread and switch to another task or suspend the CPU for
204 task or suspend the CPU for power savings.
281 and the VGLite drawing task will get executed on the same LVGL main thread.
283 `_vglite_evaluate()` will get called after each task is being created and will
284 analyze if the task is supported by VGLite or not. If it is supported, then an
[all …]

12