mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-22 15:24:16 +08:00
feat(lib): add lz4 lib support (#4872)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -1166,6 +1166,18 @@ menu "LVGL configuration"
|
||||
bool "Use ThorVG external"
|
||||
endchoice
|
||||
|
||||
config LV_USE_LZ4
|
||||
bool "Enable LZ4 compress/decompress lib"
|
||||
choice
|
||||
prompt "Choose lvgl built-in LZ4 lib or external lib"
|
||||
depends on LV_USE_LZ4
|
||||
default LV_USE_LZ4_INTERNAL
|
||||
config LV_USE_LZ4_INTERNAL
|
||||
bool "Use lvgl built-in LZ4 lib"
|
||||
config LV_USE_LZ4_EXTERNAL
|
||||
bool "Use external LZ4 library"
|
||||
endchoice
|
||||
|
||||
config LV_USE_FFMPEG
|
||||
bool "FFmpeg library"
|
||||
config LV_FFMPEG_DUMP_FORMAT
|
||||
|
||||
@@ -670,6 +670,15 @@
|
||||
/* Enable ThorVG by assuming that its installed and linked to the project */
|
||||
#define LV_USE_THORVG_EXTERNAL 0
|
||||
|
||||
/*Enable LZ4 compress/decompress lib*/
|
||||
#define LV_USE_LZ4 0
|
||||
|
||||
/*Use lvgl built-in LZ4 lib*/
|
||||
#define LV_USE_LZ4_INTERNAL 0
|
||||
|
||||
/*Use external LZ4 library*/
|
||||
#define LV_USE_LZ4_EXTERNAL 0
|
||||
|
||||
/*FFmpeg library for image decoding and playing videos
|
||||
*Supports all major image formats so do not enable other image decoder with it*/
|
||||
#define LV_USE_FFMPEG 0
|
||||
|
||||
@@ -104,6 +104,7 @@ extern "C" {
|
||||
#include "src/libs/rlottie/lv_rlottie.h"
|
||||
#include "src/libs/ffmpeg/lv_ffmpeg.h"
|
||||
#include "src/libs/tiny_ttf/lv_tiny_ttf.h"
|
||||
#include "src/libs/lz4/lz4.h"
|
||||
|
||||
#include "src/layouts/lv_layout.h"
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
--exclude=../src/libs/tjpgd/tjpgd.h
|
||||
--exclude=../src/libs/tjpgd/tjpgdcnf.h
|
||||
--exclude=../src/libs/thorvg
|
||||
--exclude=../src/libs/lz4
|
||||
--exclude=../tests/unity/unity.c
|
||||
--exclude=../tests/unity/unity_internals.h
|
||||
--exclude=../tests/unity/unity_support.c
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
LZ4 Library
|
||||
Copyright (c) 2011-2020, Yann Collet
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||
list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
+2761
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2202,6 +2202,33 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Enable LZ4 compress/decompress lib*/
|
||||
#ifndef LV_USE_LZ4
|
||||
#ifdef CONFIG_LV_USE_LZ4
|
||||
#define LV_USE_LZ4 CONFIG_LV_USE_LZ4
|
||||
#else
|
||||
#define LV_USE_LZ4 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Use lvgl built-in LZ4 lib*/
|
||||
#ifndef LV_USE_LZ4_INTERNAL
|
||||
#ifdef CONFIG_LV_USE_LZ4_INTERNAL
|
||||
#define LV_USE_LZ4_INTERNAL CONFIG_LV_USE_LZ4_INTERNAL
|
||||
#else
|
||||
#define LV_USE_LZ4_INTERNAL 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Use external LZ4 library*/
|
||||
#ifndef LV_USE_LZ4_EXTERNAL
|
||||
#ifdef CONFIG_LV_USE_LZ4_EXTERNAL
|
||||
#define LV_USE_LZ4_EXTERNAL CONFIG_LV_USE_LZ4_EXTERNAL
|
||||
#else
|
||||
#define LV_USE_LZ4_EXTERNAL 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*FFmpeg library for image decoding and playing videos
|
||||
*Supports all major image formats so do not enable other image decoder with it*/
|
||||
#ifndef LV_USE_FFMPEG
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
#define LV_USE_SYSMON 1
|
||||
#define LV_USE_SNAPSHOT 1
|
||||
#define LV_USE_THORVG_INTERNAL 1
|
||||
#define LV_USE_LZ4_INTERNAL 1
|
||||
#define LV_USE_VECTOR_GRAPHIC 1
|
||||
|
||||
#define LV_BUILD_EXAMPLES 1
|
||||
|
||||
Reference in New Issue
Block a user