Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 244) sorted by relevance

12345678910

/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_path.c35 #define PATH_CURRENT_PTR(PATH) ((uint8_t*)(PATH)->base.path + (PATH)->base.path_length) argument
36 #define PATH_LENGTH_INC(PATH, LENGTH) ((PATH)->base.path_length += (LENGTH)) argument
91 lv_vg_lite_path_t * path = lv_malloc_zeroed(sizeof(lv_vg_lite_path_t)); in lv_vg_lite_path_create() local
92 LV_ASSERT_MALLOC(path); in lv_vg_lite_path_create()
93 path->format_len = lv_vg_lite_path_format_len(data_format); in lv_vg_lite_path_create()
95 &path->base, in lv_vg_lite_path_create()
103 return path; in lv_vg_lite_path_create()
106 void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path) in lv_vg_lite_path_destroy() argument
109 LV_ASSERT_NULL(path); in lv_vg_lite_path_destroy()
110 if(path->base.path != NULL) { in lv_vg_lite_path_destroy()
[all …]
Dlv_draw_vg_lite_border.c35 static vg_lite_fill_t path_append_inner_rect(lv_vg_lite_path_t * path,
73 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_border() local
74 lv_vg_lite_path_set_quality(path, dsc->radius == 0 ? VG_LITE_LOW : VG_LITE_HIGH); in lv_draw_vg_lite_border()
75 lv_vg_lite_path_set_bounding_box_area(path, &clip_area); in lv_draw_vg_lite_border()
78 lv_vg_lite_path_append_rect(path, 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()
86 lv_vg_lite_path_end(path); in lv_draw_vg_lite_border()
92 vg_lite_path_t * vg_lite_path = lv_vg_lite_path_get_path(path); in lv_draw_vg_lite_border()
108 lv_vg_lite_path_drop(u, path); in lv_draw_vg_lite_border()
116 static vg_lite_fill_t path_append_inner_rect(lv_vg_lite_path_t * path, in path_append_inner_rect() argument
[all …]
Dlv_vg_lite_utils.c312 void lv_vg_lite_path_dump_info(const vg_lite_path_t * path) in lv_vg_lite_path_dump_info() argument
314 LV_ASSERT(path != NULL); in lv_vg_lite_path_dump_info()
315 LV_ASSERT(path->path != NULL); in lv_vg_lite_path_dump_info()
316 uint8_t fmt_len = lv_vg_lite_path_format_len(path->format); in lv_vg_lite_path_dump_info()
317 size_t len = path->path_length / fmt_len; in lv_vg_lite_path_dump_info()
321 LV_LOG_USER("address: %p", (void *)path->path); in lv_vg_lite_path_dump_info()
324 path->bounding_box[0], path->bounding_box[1], in lv_vg_lite_path_dump_info()
325 path->bounding_box[2], path->bounding_box[3]); in lv_vg_lite_path_dump_info()
326 LV_LOG_USER("format: %d", (int)path->format); in lv_vg_lite_path_dump_info()
327 LV_LOG_USER("quality: %d", (int)path->quality); in lv_vg_lite_path_dump_info()
[all …]
Dlv_vg_lite_stroke.c44 /* path data */
45 lv_vg_lite_path_t * path; member
56 /* stroke path */
57 lv_vg_lite_path_t * path; member
135 struct _lv_vg_lite_path_t * path, in lv_vg_lite_stroke_get() argument
139 LV_ASSERT_NULL(path); in lv_vg_lite_stroke_get()
142 vg_lite_path_t * vg_path = lv_vg_lite_path_get_path(path); in lv_vg_lite_stroke_get()
159 search_key.lv.path = path; in lv_vg_lite_stroke_get()
187 return stroke_item->vg.path; in lv_vg_lite_stroke_get_path()
216 /* dup the path */ in stroke_create_cb()
[all …]
Dlv_vg_lite_path.h29 …MIN to write the mark to bounding_box to tell vg_lite_tvg not to add clip path to the current path.
34 /* 18 bits is enough to represent the coordinates of path bounding box */
61 void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path);
65 void lv_vg_lite_path_drop(lv_draw_vg_lite_unit_t * unit, lv_vg_lite_path_t * path);
67 void lv_vg_lite_path_reset(lv_vg_lite_path_t * path, vg_lite_format_t data_format);
69 void lv_vg_lite_path_set_bounding_box_area(lv_vg_lite_path_t * path, const lv_area_t * area);
71 void lv_vg_lite_path_set_bounding_box(lv_vg_lite_path_t * path,
75 void lv_vg_lite_path_get_bounding_box(lv_vg_lite_path_t * path,
79 bool lv_vg_lite_path_update_bounding_box(lv_vg_lite_path_t * path);
81 void lv_vg_lite_path_set_transform(lv_vg_lite_path_t * path, const vg_lite_matrix_t * matrix);
[all …]
/lvgl-latest/demos/vector_graphic/
Dlv_demo_vector_graphic.c26 static void draw_pattern(lv_vector_dsc_t * ctx, lv_vector_path_t * path) in draw_pattern() argument
28 lv_vector_path_clear(path); in draw_pattern()
32 lv_vector_path_move_to(path, &pts[0]); in draw_pattern()
33 lv_vector_path_line_to(path, &pts[1]); in draw_pattern()
34 lv_vector_path_quad_to(path, &pts[2], &pts[3]); in draw_pattern()
35 lv_vector_path_close(path); in draw_pattern()
48 lv_vector_dsc_add_path(ctx, path); // draw a path in draw_pattern()
51 static void draw_gradient(lv_vector_dsc_t * ctx, lv_vector_path_t * path) in draw_gradient() argument
53 lv_vector_path_clear(path); in draw_gradient()
57 lv_vector_path_move_to(path, &pts[0]); in draw_gradient()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_vector.c53 lv_vector_path_t * path; member
98 void lv_matrix_transform_path(const lv_matrix_t * matrix, lv_vector_path_t * path) in lv_matrix_transform_path() argument
100 lv_fpoint_t * pt = lv_array_front(&path->points); in lv_matrix_transform_path()
101 uint32_t size = lv_array_size(&path->points); in lv_matrix_transform_path()
107 /* path functions */
110 lv_vector_path_t * path = lv_malloc(sizeof(lv_vector_path_t)); in lv_vector_path_create() local
111 LV_ASSERT_MALLOC(path); in lv_vector_path_create()
112 lv_memzero(path, sizeof(lv_vector_path_t)); in lv_vector_path_create()
113 path->quality = quality; in lv_vector_path_create()
114 lv_array_init(&path->ops, 8, sizeof(lv_vector_path_op_t)); in lv_vector_path_create()
[all …]
Dlv_draw_vector.h106 * Transform all the coordinates of a path using given matrix
108 * @param path pointer to a path
110 void lv_matrix_transform_path(const lv_matrix_t * matrix, lv_vector_path_t * path);
113 * Create a vector graphic path object
114 * @param quality the quality hint of path
115 * @return pointer to the created path object
120 * Copy a path data to another
121 * @param target_path pointer to a path
122 * @param path pointer to source path
124 void lv_vector_path_copy(lv_vector_path_t * target_path, const lv_vector_path_t * path);
[all …]
/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_vector.c26 lv_vector_path_t * path = lv_vector_path_create(LV_VECTOR_PATH_QUALITY_MEDIUM); in draw_shapes() local
30 lv_vector_path_clear(path); in draw_shapes()
31 lv_vector_path_append_rect(path, &rect1, 0, 0); in draw_shapes()
33 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
35 lv_vector_path_clear(path); in draw_shapes()
36 lv_vector_path_append_rect(path, &rect1, 20, 20); in draw_shapes()
39 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
42 lv_vector_path_clear(path); in draw_shapes()
43 lv_vector_path_append_circle(path, &pc, 50, 50); in draw_shapes()
46 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
[all …]
/lvgl-latest/src/misc/
Dlv_fs.c38 static resolved_path_t lv_fs_resolve_path(const char * path);
76 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode) in lv_fs_open() argument
78 if(path == NULL) { in lv_fs_open()
79 LV_LOG_WARN("Can't open file: path is NULL"); in lv_fs_open()
83 resolved_path_t resolved_path = lv_fs_resolve_path(path); in lv_fs_open()
88 LV_LOG_WARN("Can't open file (%s): unknown driver letter", path); in lv_fs_open()
94 LV_LOG_WARN("Can't open file (%s): driver not ready", path); in lv_fs_open()
100 LV_LOG_WARN("Can't open file (%s): open function not exists", path); in lv_fs_open()
127 lv_fs_path_ex_t * path_ex = (lv_fs_path_ex_t *)path; in lv_fs_open()
145 void lv_fs_make_path_from_buffer(lv_fs_path_ex_t * path, char letter, const void * buf, uint32_t si… in lv_fs_make_path_from_buffer() argument
[all …]
/lvgl-latest/docs/
Dbuild.py31 Doxygen's INPUT path in `Doxyfile` and re-writing portions that used
66 1. Set `LVGL_FIXED_TEMP_DIR` environment variable to path to
106 - full (absolute) path to the source document, including its file name
107 - Change the path or filename and `sphinx-build` will re-build it.
274 base_path = os.path.abspath(os.path.dirname(__file__))
275 project_path = os.path.abspath(os.path.join(base_path, '..'))
276 examples_path = os.path.join(project_path, 'examples')
277 lvgl_src_path = os.path.join(project_path, 'src')
278 latex_output_path = os.path.join(temp_directory, 'out_latex')
279 pdf_src_file = os.path.join(latex_output_path, 'LVGL.pdf')
[all …]
/lvgl-latest/src/draw/nema_gfx/
Dlv_nema_gfx_path.c67 nema_gfx_path->path = nema_vg_path_create(); in lv_nema_gfx_path_alloc()
81 if(nema_gfx_path->path != NULL) { in lv_nema_gfx_path_destroy()
82 nema_vg_path_destroy(nema_gfx_path->path); in lv_nema_gfx_path_destroy()
83 nema_gfx_path->path = NULL; in lv_nema_gfx_path_destroy()
103 void lv_nema_gfx_path_move_to(lv_nema_gfx_path_t * path, float x, float y) in lv_nema_gfx_path_move_to() argument
105 LV_ASSERT_NULL(path); in lv_nema_gfx_path_move_to()
106 LV_ASSERT(path->data_size > data_point + 1); in lv_nema_gfx_path_move_to()
107 LV_ASSERT(path->seg_size > seg_point); in lv_nema_gfx_path_move_to()
108 path->seg[seg_point++] = NEMA_VG_PRIM_MOVE; in lv_nema_gfx_path_move_to()
109 path->data[data_point++] = x; in lv_nema_gfx_path_move_to()
[all …]
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite.h69 /* Path command (op code). */
98 /* Macros for path manipulating: See path definitions. */
99 #define VLM_PATH_ENABLE_UPLOAD(path) (path).uploaded.property |= 1 argument
100 #define VLM_PATH_DISABLE_UPLOAD(path) (path).uploaded.property &= (~1) argument
101 #define VLM_PATH_GET_UPLOAD_BIT(path) ((path).uploaded.property & 1) argument
238 VG_LITE_HIGH, /*! High quality 16x anti-aliasing path. */
239 VG_LITE_UPPER, /*! Upper quality 8x anti-aliasing path. */
240 VG_LITE_MEDIUM, /*! Medium quality 4x anti-aliasing path. */
241 VG_LITE_LOW, /*! Low quality path without any anti-aliasing. */
244 /* Format of path coordinates. */
[all …]
Dvg_lite_tvg.cpp59 #define VLC_GET_ARG(CUR, INDEX) vlc_get_arg((cur + (INDEX) * fmt_len), path->format);
302 static Result shape_append_path(std::unique_ptr<Shape> & shape, vg_lite_path_t * path, vg_lite_matr…
871 vg_lite_path_t * path, in vg_lite_draw() argument
881 TVG_CHECK_RETURN_VG_ERROR(shape_append_path(shape, path, matrix)); in vg_lite_draw()
891 vg_lite_error_t vg_lite_set_stroke(vg_lite_path_t * path, in vg_lite_set_stroke() argument
901 if(!path || line_width <= 0) { in vg_lite_set_stroke()
909 if(!path->stroke) { in vg_lite_set_stroke()
910 path->stroke = (vg_lite_stroke_t *)lv_malloc_zeroed(sizeof(vg_lite_stroke_t)); in vg_lite_set_stroke()
912 if(!path->stroke) { in vg_lite_set_stroke()
917 path->stroke->cap_style = cap_style; in vg_lite_set_stroke()
[all …]
/lvgl-latest/src/libs/thorvg/
Dthorvg.h104 * @brief Enumeration specifying the values of the path commands accepted by TVG.
106 …* Not to be confused with the path commands from the svg path element (like M, L, Q, H and many ot…
111 …Close = 0, ///< Ends the current sub-path and connects it with its initial point. This command doe…
112 …MoveTo, ///< Sets a new initial point of the sub-path and a new current point. This command exp…
123 …Square = 0, ///< The stroke is extended in both end-points of a sub-path by a rectangle, with the …
124 …Round, ///< The stroke is extended in both end-points of a sub-path by a half circle, with a …
125 …Butt ///< The stroke ends exactly at each of the two end-points of a sub-path. For zero len…
130 * @brief Enumeration determining the style used at the corners of joined stroked path segments.
134 …Bevel = 0, ///< The outer corner of the joined path segments is bevelled at the join point. The tr…
135 …Round, ///< The outer corner of the joined path segments is rounded. The circular region is ce…
[all …]
DtvgLottieBuilder.cpp332 static void _repeat(LottieGroup* parent, Shape* path, RenderContext* ctx) in _repeat() argument
346 P(shape)->rs.path = P(path)->rs.path; in _repeat()
413 …ath) offsetPath->modifyRect(commands, 5, points, 4, P(shape)->rs.path.cmds, P(shape)->rs.path.pts); in _appendRect()
466 …tPath->modifyRect(commands, cmdCnt, points, ptsCnt, P(shape)->rs.path.cmds, P(shape)->rs.path.pts); in _appendRect()
560 auto path = static_cast<LottiePath*>(*child); in updatePath() local
563 auto shape = path->pooling(); in updatePath()
565path->pathset(frameNo, P(shape)->rs.path.cmds, P(shape)->rs.path.pts, ctx->transform, ctx->roundne… in updatePath()
568 _draw(parent, path, ctx); in updatePath()
569 …if (path->pathset(frameNo, P(ctx->merging)->rs.path.cmds, P(ctx->merging)->rs.path.pts, ctx->trans… in updatePath()
570 P(ctx->merging)->update(RenderUpdateFlag::Path); in updatePath()
[all …]
DtvgShape.h130 //Path bounding size in bounds()
131 if (rs.path.pts.count > 0 ) { in bounds()
132 auto pts = rs.path.pts.begin(); in bounds()
136 for (auto pts2 = pts + 1; pts2 < rs.path.pts.end(); ++pts2) { in bounds()
156 return rs.path.pts.count > 0 ? true : false; in bounds()
161 rs.path.cmds.reserve(cmdCnt); in reserveCmd()
166 rs.path.pts.reserve(ptsCnt); in reservePts()
171 rs.path.cmds.grow(cmdCnt); in grow()
172 rs.path.pts.grow(ptsCnt); in grow()
177 memcpy(rs.path.cmds.end(), cmds, sizeof(PathCommand) * cmdCnt); in append()
[all …]
Dthorvg_capi.h13 * - composition: blending, masking, path clipping
226 * \brief Enumeration specifying the values of the path commands accepted by TVG.
228 …* Not to be confused with the path commands from the svg path element (like M, L, Q, H and many ot…
232 …E = 0, ///< Ends the current sub-path and connects it with its initial point - corresponds to Z co…
233 …///< Sets a new initial point of the sub-path and a new current point - corresponds to M command i…
234 …oint and sets a new value of the current point - corresponds to L command in the svg path commands.
235 …ints and sets a new value of the current point - corresponds to C command in the svg path commands.
243 …TVG_STROKE_CAP_SQUARE = 0, ///< The stroke is extended in both endpoints of a sub-path by a rectan…
244 …TVG_STROKE_CAP_ROUND, ///< The stroke is extended in both endpoints of a sub-path by a half c…
245 … ///< The stroke ends exactly at each of the two endpoints of a sub-path. For zero length su…
[all …]
/lvgl-latest/src/libs/fsdrv/
Dlv_fs_uefi.c48 static void lv_fs_uefi_lvgl_path_to_uefi_path(CHAR16 * path);
49 static void lv_fs_uefi_uefi_path_to_lvgl_path(CHAR16 * path);
50 static bool lv_fs_uefi_is_dot_path(CONST CHAR16 * path);
57 static void * lv_fs_uefi_open_cb(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
64 static void * lv_fs_uefi_dir_open_cb(lv_fs_drv_t * drv, const char * path);
123 static void * lv_fs_uefi_open_cb(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in lv_fs_uefi_open_cb() argument
146 if(lv_uefi_ascii_to_ucs2(path, path_ucs2, LV_FS_MAX_PATH_LENGTH + 1) == 0) { in lv_fs_uefi_open_cb()
147 LV_LOG_WARN("[lv_uefi] Unable to convert the ASCII path into an UCS-2 path."); in lv_fs_uefi_open_cb()
170 LV_LOG_WARN("[lv_uefi] Unable to open file '%s'.", path); in lv_fs_uefi_open_cb()
318 static void * lv_fs_uefi_dir_open_cb(lv_fs_drv_t * drv, const char * path) in lv_fs_uefi_dir_open_cb() argument
[all …]
/lvgl-latest/scripts/gen_json/
Dgen_json.py9 base_path = os.path.abspath(os.path.dirname(__file__))
10 sys.path.insert(0, base_path)
12 project_path = os.path.abspath(os.path.join(base_path, '..', '..'))
13 docs_path = os.path.join(project_path, 'docs')
14 sys.path.insert(0, docs_path)
31 lvgl_src_path = os.path.join(lvgl_path, 'src')
32 temp_lvgl = os.path.join(temp_directory, 'lvgl')
34 os.path.splitext(os.path.split(target_header)[-1])[0]
39 shutil.copytree(lvgl_src_path, os.path.join(temp_lvgl, 'src'))
40 shutil.copyfile(os.path.join(lvgl_path, 'lvgl.h'), os.path.join(temp_lvgl, 'lvgl.h'))
[all …]
/lvgl-latest/tests/
Dmain.py11 from pathlib import Path
13 lvgl_test_dir = os.path.dirname(os.path.realpath(__file__))
14 lvgl_script_path = os.path.join(lvgl_test_dir, "../scripts")
15 sys.path.append(lvgl_script_path)
17 wayland_dir = os.path.join(lvgl_test_dir, "wayland_protocols")
18 wayland_protocols_dir = os.path.realpath("/usr/share/wayland-protocols")
65 Does not return the full path to the directory - just the base name.'''
72 Returns absolute path to the build directory.'''
74 return os.path.join(lvgl_test_dir, get_base_build_dir(options_name))
82 if not os.path.isdir(wayland_dir):
[all …]
/lvgl-latest/src/others/font_manager/
Dlv_font_manager.c33 lv_ll_t path_ll; /* font path record list */
53 char * path; member
76 …id lv_font_manager_add_path_core(lv_font_manager_t * manager, const char * name, const char * path,
120 /* clean path map */ in lv_font_manager_delete()
125 lv_free(font_path->path); in lv_font_manager_delete()
129 font_path->path = NULL; in lv_font_manager_delete()
139 void lv_font_manager_add_path(lv_font_manager_t * manager, const char * name, const char * path) in lv_font_manager_add_path() argument
141 lv_font_manager_add_path_core(manager, name, path, false); in lv_font_manager_add_path()
144 … lv_font_manager_add_path_static(lv_font_manager_t * manager, const char * name, const char * path) in lv_font_manager_add_path_static() argument
146 lv_font_manager_add_path_core(manager, name, path, true); in lv_font_manager_add_path_static()
[all …]
/lvgl-latest/src/libs/svg/
Dlv_svg_render.c141 lv_vector_path_t * path; member
165 lv_vector_path_t * path; member
183 lv_vector_path_t * path; member
467 lv_vector_path_clear(poly->path); in _set_polyline_attr()
474 lv_vector_path_move_to(poly->path, &pt); in _set_polyline_attr()
478 lv_vector_path_line_to(poly->path, &pt); in _set_polyline_attr()
489 lv_vector_path_close(poly->path); in _set_polygen_attr()
514 lv_vector_path_clear(poly->path); in _set_path_attr()
526 lv_vector_path_move_to(poly->path, &pt); in _set_path_attr()
532 lv_vector_path_line_to(poly->path, &pt); in _set_path_attr()
[all …]
/lvgl-latest/tests/micropy_test/
D__init__.py20 …l/tests/micropy_test/__init__.py --artifact-path=lib/lv_bindings/lvgl/tests/micropy_test/artifacts…
58 BASE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__)))
59 TEST_PATH = os.path.join(BASE_PATH, 'micropy.py')
60 IMG_PATH = os.path.join(BASE_PATH, '../ref_imgs/binding.png')
152 os.chdir(os.path.dirname(__file__))
167 cls.send(b'cd ' + os.path.dirname(__file__).encode('utf-8') + b'\n')
323 img.save(os.path.join(ARTIFACT_PATH, f'frame.png'), 'PNG')
326 with open(os.path.join(ARTIFACT_PATH, f'frame.bin'), 'wb') as f:
358 cwd = os.path.abspath(os.getcwd())
360 ARTIFACT_PATH = os.path.join(cwd, 'artifacts')
[all …]
/lvgl-latest/libs/nema_gfx/include/
Dnema_vg_path.h30 * @brief Path operation related fuctions
83 /** \brief Create path
85 * \return Created path
90 /** \brief Destroy path
92 * \param path Pointer to Path
96 void nema_vg_path_destroy(NEMA_VG_PATH_HANDLE path);
98 /** \brief Clear path
100 * \param path Pointer to Path
104 void nema_vg_path_clear(NEMA_VG_PATH_HANDLE path);
106 /** \brief Set path shape (vertex buffer)
[all …]

12345678910