fix(image): add data_size filed to all c-array images (#5608)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2024-02-07 12:13:00 +08:00
committed by GitHub
parent d697a3fc95
commit 7579b96b9b
109 changed files with 112 additions and 62 deletions

View File

@@ -188,6 +188,7 @@ const lv_image_dsc_t animimg001 = {
.header.h = 170,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = animimg001_map,
.data_size = sizeof(animimg001_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -188,6 +188,7 @@ const lv_image_dsc_t animimg002 = {
.header.h = 170,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = animimg002_map,
.data_size = sizeof(animimg002_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -188,6 +188,7 @@ const lv_image_dsc_t animimg003 = {
.header.h = 170,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = animimg003_map,
.data_size = sizeof(animimg003_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -242,6 +242,6 @@ const lv_image_dsc_t emoji_F617 = {
.header.cf = LV_COLOR_FORMAT_NATIVE,
.header.w = 72,
.header.h = 72,
.data_size = 5184 * LV_COLOR_DEPTH / 8,
.data = emoji_F617_map,
.data_size = sizeof(emoji_F617_map),
};

View File

@@ -51,6 +51,7 @@ const lv_image_dsc_t img_caret_down = {
.header.h = 8,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_caret_down_map,
.data_size = sizeof(img_caret_down_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -117,9 +117,9 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_ARGB uint8_t img_co
const lv_image_dsc_t img_cogwheel_argb = {
.header.w = 100,
.header.h = 100,
.data_size = 10000 * 4,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_cogwheel_argb_map,
.data_size = sizeof(img_cogwheel_argb_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -133,9 +133,9 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_INDEXED16 uint8_t i
const lv_image_dsc_t img_cogwheel_indexed16 = {
.header.w = 100,
.header.h = 100,
.data_size = 5064,
.header.cf = LV_COLOR_FORMAT_I4,
.data = img_cogwheel_indexed16_map,
.data_size = sizeof(img_cogwheel_indexed16_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -428,9 +428,9 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_IMAGE_IMG_COGWHEEL_RGB uint8_t img_cog
const lv_image_dsc_t img_cogwheel_rgb = {
.header.w = 100,
.header.h = 100,
.data_size = 10000 * LV_COLOR_DEPTH / 8,
.header.cf = LV_COLOR_FORMAT_NATIVE,
.data = img_cogwheel_rgb_map,
.data_size = sizeof(img_cogwheel_rgb_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -27,6 +27,7 @@ const lv_image_dsc_t img_hand = {
.header.h = 9,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_hand_map,
.data_size = sizeof(img_hand_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -87,6 +87,7 @@ const lv_image_dsc_t img_skew_strip = {
.header.h = 20,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_skew_strip_map,
.data_size = sizeof(img_skew_strip_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -48,6 +48,7 @@ const lv_image_dsc_t img_star = {
.header.h = 29,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_star_map,
.data_size = sizeof(img_star_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -69,6 +69,7 @@ const lv_image_dsc_t imagebutton_left = {
.header.h = 50,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = imagebutton_left_map,
.data_size = sizeof(imagebutton_left_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -68,6 +68,7 @@ const lv_image_dsc_t imagebutton_mid = {
.header.h = 49,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = imagebutton_mid_map,
.data_size = sizeof(imagebutton_mid_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -70,6 +70,7 @@ const lv_image_dsc_t imagebutton_right = {
.header.h = 50,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = imagebutton_right_map,
.data_size = sizeof(imagebutton_right_map),
};
#endif /* LV_BUILD_EXAMPLES */

View File

@@ -1120,7 +1120,7 @@ static const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_
const lv_image_dsc_t img_bulb_gif = {
.header.w = 0,
.header.h = 0,
.data_size = 0,
.header.cf = LV_COLOR_FORMAT_RAW,
.data = img_blub_gif_map,
.data_size = sizeof(img_blub_gif_map),
};

View File

@@ -338,9 +338,9 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_PNG_DEC
const lv_image_dsc_t img_wink_png = {
.header.w = 50,
.header.h = 50,
.data_size = 5158,
.header.cf = LV_COLOR_FORMAT_RAW_ALPHA,
.data = img_wink_png_map,
.data_size = sizeof(img_wink_png_map),
};
#endif /*LV_USE_LODEPNG && LV_BUILD_EXAMPLES*/