Skip to content

Latest commit

 

History

History
66 lines (42 loc) · 1.3 KB

tjpgd.rst

File metadata and controls

66 lines (42 loc) · 1.3 KB

Tiny JPEG Decompressor (TJpgDec)

Allow the use of JPEG (JPG) images in LVGL.

Detailed introduction: TJpgDec

Overview

  • JPEG is decoded in 8x8 tiles.
  • Only baseline JPEG files are supported (no progressive JPEG support).
  • Read from file and C array are implemented.
  • Only the required portions of the JPEG images are decoded, therefore they can't be zoomed or rotated.

Usage

If enabled in lv_conf.h by :cLV_USE_TJPGD LVGL will register a new image decoder automatically so JPEG files can be used directly as image sources.

For example:

lv_image_set_src(my_img, "S:path/to/picture.jpg");
Note

a file system driver needs to be registered to open images from

files. Read more about overview_file_system or just enable one in lv_conf.h with LV_USE_FS_... config.

Converter

Converting JPEG to C array ~~~~~~~~~~~~~~~~~~~~~~~~~

Example

API

lv_tjpgd

tjpgd

tjpgdcnf