chore(libs/jpg): rename lv_jpg to lv_tjpgd (#4573)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ extern "C" {
|
||||
#include "lodepng/lv_example_lodepng.h"
|
||||
#include "qrcode/lv_example_qrcode.h"
|
||||
#include "rlottie/lv_example_rlottie.h"
|
||||
#include "jpg/lv_example_jpg.h"
|
||||
#include "tjpgd/lv_example_tjpgd.h"
|
||||
#include "tiny_ttf/lv_example_tiny_ttf.h"
|
||||
|
||||
/*********************
|
||||
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -1,6 +1,6 @@
|
||||
Load an SJPG image
|
||||
------------------
|
||||
|
||||
.. lv_example:: libs/sjpg/lv_example_sjpg_1
|
||||
.. lv_example:: libs/tjpgd/lv_example_tjpgd_1
|
||||
:language: c
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* @file lv_example_jpg.h
|
||||
* @file lv_example_tjpgd.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LV_EXAMPLE_JPG_H
|
||||
#define LV_EXAMPLE_JPG_H
|
||||
#ifndef LV_EXAMPLE_TJPGD_H
|
||||
#define LV_EXAMPLE_TJPGD_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -25,7 +25,7 @@ extern "C" {
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
void lv_example_jpg_1(void);
|
||||
void lv_example_tjpgd_1(void);
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
@@ -35,4 +35,4 @@ void lv_example_jpg_1(void);
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif /*LV_EXAMPLE_JPG_H*/
|
||||
#endif /*LV_EXAMPLE_TJPGD_H*/
|
||||
@@ -1,17 +1,17 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_JPG && LV_BUILD_EXAMPLES
|
||||
#if LV_USE_TJPGD && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Load a JPG image
|
||||
*/
|
||||
void lv_example_jpg_1(void)
|
||||
void lv_example_tjpgd_1(void)
|
||||
{
|
||||
lv_obj_t * wp;
|
||||
|
||||
wp = lv_image_create(lv_scr_act());
|
||||
/* Assuming a File system is attached to letter 'A'
|
||||
* E.g. set LV_USE_FS_STDIO 'A' in lv_conf.h */
|
||||
lv_image_set_src(wp, "A:lvgl/examples/libs/jpg/img_lvgl_logo.jpg");
|
||||
lv_image_set_src(wp, "A:lvgl/examples/libs/tjpgd/img_lvgl_logo.jpg");
|
||||
lv_obj_center(wp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user