chore(libs/png): rename lv_png to lv_lodepng (#4574)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "../../../lvgl.h"
|
||||
#if LV_USE_PNG && LV_BUILD_EXAMPLES
|
||||
#if LV_USE_LODEPNG && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
#ifndef LV_ATTRIBUTE_MEM_ALIGN
|
||||
@@ -345,4 +345,4 @@ const lv_image_dsc_t img_wink_png = {
|
||||
.data = img_wink_png_map,
|
||||
};
|
||||
|
||||
#endif /*LV_USE_PNG && LV_BUILD_EXAMPLES*/
|
||||
#endif /*LV_USE_LODEPNG && LV_BUILD_EXAMPLES*/
|
||||
@@ -1,6 +1,6 @@
|
||||
Open a PNG image from file and variable
|
||||
---------------------------------------
|
||||
|
||||
.. lv_example:: libs/png/lv_example_png_1
|
||||
.. lv_example:: libs/lodepng/lv_example_png_1
|
||||
:language: c
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @file lv_example_png.h
|
||||
* @file lv_example_lodepng.h
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ extern "C" {
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
void lv_example_png_1(void);
|
||||
void lv_example_lodepng_1(void);
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_PNG && LV_USE_IMG && LV_BUILD_EXAMPLES
|
||||
#if LV_USE_LODEPNG && LV_USE_IMG && LV_BUILD_EXAMPLES
|
||||
|
||||
/**
|
||||
* Open a PNG image from a file and a variable
|
||||
*/
|
||||
void lv_example_png_1(void)
|
||||
void lv_example_lodepng_1(void)
|
||||
{
|
||||
LV_IMAGE_DECLARE(img_wink_png);
|
||||
lv_obj_t * img;
|
||||
@@ -16,7 +16,7 @@ void lv_example_png_1(void)
|
||||
img = 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(img, "A:lvgl/examples/libs/png/wink.png");
|
||||
lv_image_set_src(img, "A:lvgl/examples/libs/lodepng/wink.png");
|
||||
lv_obj_align(img, LV_ALIGN_RIGHT_MID, -20, 0);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
@@ -18,7 +18,7 @@ extern "C" {
|
||||
#include "ffmpeg/lv_example_ffmpeg.h"
|
||||
#include "freetype/lv_example_freetype.h"
|
||||
#include "gif/lv_example_gif.h"
|
||||
#include "png/lv_example_png.h"
|
||||
#include "lodepng/lv_example_lodepng.h"
|
||||
#include "qrcode/lv_example_qrcode.h"
|
||||
#include "rlottie/lv_example_rlottie.h"
|
||||
#include "jpg/lv_example_jpg.h"
|
||||
|
||||
@@ -22,7 +22,7 @@ static const void * get_imgfont_path(const lv_font_t * font, uint32_t unicode, u
|
||||
else if(unicode == 0xF600) {
|
||||
#if LV_USE_FFMPEG
|
||||
return "lvgl/examples/assets/emoji/F600.png";
|
||||
#elif LV_USE_PNG
|
||||
#elif LV_USE_LODEPNG
|
||||
return "A:lvgl/examples/assets/emoji/F600.png";
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user