On my Riverdi I have LVGL9 Lottie functioning in a 300x300 area (control/widget) on my 800x480 screen.
In this lv_lottie_t
Lottie control I can load a lottie file, and by coping lv_lottie_set_src_data()
and changing the mime type I can load a SVG.
This SVG is parsed using ThorVG and does not support animation; it has no tag-names defined for the animation tags/attributes.
The LVGL SVG implementation has defines for the animation tags/attributes. Though it renders the full screen by using a layer (so 800 x 480).
Looking at the code it tries to render using simular ThorVG render calls. But it crashes because no buffer/surface can be created for this size (800x480).
Also the animation attributes are updated on parsing, so the SVG is parsed on every tick before being rendered.
Is there an example rendering the LVGL SVG to a control instead of a layer (like the Lottie implementation)?
Why not update only the SVG (animation) attributes instead of reparsing the SVG?
And why not using lv_animate?