chore: add stride information in the image resource file (#5653)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
@@ -133,6 +133,7 @@ const lv_image_dsc_t img_benchmark_cogwheel_alpha256 = {
|
||||
.header.cf = LV_COLOR_FORMAT_A8,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.header.stride = 100,
|
||||
.data = img_benchmark_cogwheel_alpha256_map,
|
||||
.data_size = sizeof(img_benchmark_cogwheel_alpha256_map),
|
||||
};
|
||||
|
||||
@@ -424,7 +424,7 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_ARGB uint8_t img_be
|
||||
const lv_image_dsc_t img_benchmark_cogwheel_argb = {
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
// .data_size = 10000 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
|
||||
.header.stride = LV_COLOR_DEPTH == 16 ? 200 : 400,
|
||||
.header.cf = LV_COLOR_DEPTH == 16 ? LV_COLOR_FORMAT_RGB565A8 : LV_COLOR_FORMAT_ARGB8888,
|
||||
.data = img_benchmark_cogwheel_argb_map,
|
||||
.data_size = sizeof(img_benchmark_cogwheel_argb_map),
|
||||
|
||||
@@ -134,6 +134,7 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_INDEXED16 uint8_t i
|
||||
const lv_image_dsc_t img_benchmark_cogwheel_indexed16 = {
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.header.stride = 50,
|
||||
.header.cf = LV_COLOR_FORMAT_I4,
|
||||
.data = img_benchmark_cogwheel_indexed16_map,
|
||||
.data_size = sizeof(img_benchmark_cogwheel_indexed16_map),
|
||||
|
||||
@@ -325,6 +325,13 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_RGB uint8_t img_ben
|
||||
const lv_image_dsc_t img_benchmark_cogwheel_rgb = {
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8
|
||||
.header.stride = 100,
|
||||
#elif LV_COLOR_DEPTH == 16
|
||||
.header.stride = 200,
|
||||
#elif LV_COLOR_DEPTH == 32
|
||||
.header.stride = 400,
|
||||
#endif
|
||||
.header.cf = LV_COLOR_FORMAT_NATIVE,
|
||||
.data = img_benchmark_cogwheel_rgb_map,
|
||||
.data_size = sizeof(img_benchmark_cogwheel_rgb_map),
|
||||
|
||||
Reference in New Issue
Block a user