2023-09-20 16:30:04 +08:00
|
|
|
===============
|
|
|
|
LODEPNG decoder
|
|
|
|
===============
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
Allow the use of PNG images in LVGL. This implementation uses
|
|
|
|
`lodepng <https://github.com/lvandeve/lodepng>`__ library.
|
|
|
|
|
2023-09-20 16:30:04 +08:00
|
|
|
If enabled in ``lv_conf.h`` by :c:macro:`LV_USE_LODEPNG` LVGL will register a new
|
2023-04-27 06:42:02 -06:00
|
|
|
image decoder automatically so PNG files can be directly used as any
|
|
|
|
other image sources.
|
|
|
|
|
|
|
|
Note that, a file system driver needs to registered to open images from
|
|
|
|
files. Read more about it :ref:`file-system` or just
|
|
|
|
enable one in ``lv_conf.h`` with ``LV_USE_FS_...``
|
|
|
|
|
|
|
|
The whole PNG image is decoded so during decoding RAM equals to
|
|
|
|
``image width x image height x 4`` bytes are required.
|
|
|
|
|
2023-04-27 11:47:13 -06:00
|
|
|
As it might take significant time to decode PNG images LVGL's :ref:`image-caching` feature can be useful.
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
Example
|
|
|
|
-------
|
|
|
|
|
2023-09-20 16:30:04 +08:00
|
|
|
.. include:: ../examples/libs/lodepng/index.rst
|
2023-04-27 06:42:02 -06:00
|
|
|
|
|
|
|
API
|
|
|
|
---
|
|
|
|
|
|
|
|
:ref:`lodepng`
|
2023-05-08 08:45:28 -06:00
|
|
|
|