Skip to content

ThorVG inclusion and related fixes causes deviation from ThorVG #7834

Closed as not planned
@J-u-n-o

Description

@J-u-n-o

LVGL version

v9

Platform

Noticed deviation from the ThorVG library on the master merge (commit) related to
#7772

I noticed LVGL commits into the copied ThorVG sources.
Now ThorVG is still not at 1.0.
This will/can be hard to merge ThorVG fixes/feature in the future.
Especially because also the ThorVG folder structure is flattened; hard to perform a diff to the ThorVG clone.

Also the devs of ThorVG do not benefit from these commits.

My suggestion is:

  • To keep the ThorVG structure and adapt the LVGL make/build files to include the sources; set the include path to internal or external in the build, and to make the linker use the sources or external ThorVG library.
  • Add (new) ThorVG for the memory macros. This can be a renamed copies of the LVGL functions. Also the ThorVG macros should be defined to the LVGL functions so both libs are using the same memory pool.

Note:
I added (locally) 16bit support to the ThorVG files. I still need to cleanup this: I replaced the 32bit support ;-). The usage of templates for uint32/uint26/uint8 should fix this.
Background: Now both 32 and 8 bit are supported using if-else using the type.
But I did this in the latest ThorVG 0.15 release and kept their folder structure. So they also would benefit.

I also have some (minimal) SVG animation working using SVG as a control/widget, simular as the Lottie control/widget. It parsed the SVG once and reusing the tree (simular like Lottie).

What happened?

looking at the master changes not merged to my local branch

How to reproduce?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions