chore: add stride information in the image resource file (#5653)

Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
_VIFEXTech
2024-02-15 11:58:18 +08:00
committed by GitHub
parent bf47753ee0
commit aad5a325d5
111 changed files with 150 additions and 11 deletions
@@ -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),
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_1 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_1_map,
.data_size = sizeof(img_multilang_avatar_1_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_10 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_10_map,
.data_size = sizeof(img_multilang_avatar_10_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_11 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_11_map,
.data_size = sizeof(img_multilang_avatar_11_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_12 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_12_map,
.data_size = sizeof(img_multilang_avatar_12_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_13 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_13_map,
.data_size = sizeof(img_multilang_avatar_13_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_14 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_14_map,
.data_size = sizeof(img_multilang_avatar_14_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_15 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_15_map,
.data_size = sizeof(img_multilang_avatar_15_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_16 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_16_map,
.data_size = sizeof(img_multilang_avatar_16_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_17 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_17_map,
.data_size = sizeof(img_multilang_avatar_17_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_18 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_18_map,
.data_size = sizeof(img_multilang_avatar_18_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_19 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_19_map,
.data_size = sizeof(img_multilang_avatar_19_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_2 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_2_map,
.data_size = sizeof(img_multilang_avatar_2_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_22 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_22_map,
.data_size = sizeof(img_multilang_avatar_22_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_25 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_25_map,
.data_size = sizeof(img_multilang_avatar_25_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_3 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_3_map,
.data_size = sizeof(img_multilang_avatar_3_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_4 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_4_map,
.data_size = sizeof(img_multilang_avatar_4_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_5 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_5_map,
.data_size = sizeof(img_multilang_avatar_5_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_6 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_6_map,
.data_size = sizeof(img_multilang_avatar_6_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_7 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_7_map,
.data_size = sizeof(img_multilang_avatar_7_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_8 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_8_map,
.data_size = sizeof(img_multilang_avatar_8_map),
};
@@ -158,6 +158,7 @@ const lv_image_dsc_t img_multilang_avatar_9 = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 128,
.header.h = 128,
.header.stride = 512,
.data = img_multilang_avatar_9_map,
.data_size = sizeof(img_multilang_avatar_9_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_artist_palette = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_artist_palette_map,
.data_size = sizeof(img_emoji_artist_palette_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_books = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_books_map,
.data_size = sizeof(img_emoji_books_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_camera_with_flash = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_camera_with_flash_map,
.data_size = sizeof(img_emoji_camera_with_flash_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_cat_face = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_cat_face_map,
.data_size = sizeof(img_emoji_cat_face_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_deciduous_tree = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 16,
.header.h = 19,
.header.stride = 64,
.data = img_emoji_deciduous_tree_map,
.data_size = sizeof(img_emoji_deciduous_tree_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_dog_face = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_dog_face_map,
.data_size = sizeof(img_emoji_dog_face_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_earth_globe_europe_africa = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 19,
.header.h = 19,
.header.stride = 76,
.data = img_emoji_earth_globe_europe_africa_map,
.data_size = sizeof(img_emoji_earth_globe_europe_africa_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_flexed_biceps = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_flexed_biceps_map,
.data_size = sizeof(img_emoji_flexed_biceps_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_movie_camera = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_movie_camera_map,
.data_size = sizeof(img_emoji_movie_camera_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_red_heart = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_red_heart_map,
.data_size = sizeof(img_emoji_red_heart_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_rocket = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 16,
.header.h = 19,
.header.stride = 64,
.data = img_emoji_rocket_map,
.data_size = sizeof(img_emoji_rocket_map),
};
@@ -49,6 +49,7 @@ const lv_image_dsc_t img_emoji_soccer_ball = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 18,
.header.h = 19,
.header.stride = 72,
.data = img_emoji_soccer_ball_map,
.data_size = sizeof(img_emoji_soccer_ball_map),
};
@@ -47,6 +47,7 @@ const lv_image_dsc_t img_multilang_like = {
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.header.w = 20,
.header.h = 17,
.header.stride = 80,
.data = img_multilang_like_map,
.data_size = sizeof(img_multilang_like_map),
};
@@ -49,6 +49,7 @@ img_lv_demo_music_btn_corner_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_corner = {
.header.w = 32,
.header.h = 32,
.header.stride = 128,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_corner_map,
.data_size = sizeof(img_lv_demo_music_btn_corner_map),
@@ -71,6 +71,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_list_pause_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_list_pause = {
.header.w = 58,
.header.h = 60,
.header.stride = 232,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_list_pause_map,
.data_size = sizeof(img_lv_demo_music_btn_list_pause_map),
@@ -122,6 +122,7 @@ img_lv_demo_music_btn_list_pause_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_list_pause = {
.header.w = 106,
.header.h = 105,
.header.stride = 424,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_list_pause_map,
.data_size = sizeof(img_lv_demo_music_btn_list_pause_map),
@@ -71,6 +71,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_list_play_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_list_play = {
.header.w = 58,
.header.h = 60,
.header.stride = 232,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_list_play_map,
.data_size = sizeof(img_lv_demo_music_btn_list_play_map),
@@ -122,6 +122,7 @@ img_lv_demo_music_btn_list_play_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_list_play = {
.header.w = 106,
.header.h = 105,
.header.stride = 424,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_list_play_map,
.data_size = sizeof(img_lv_demo_music_btn_list_play_map),
@@ -35,6 +35,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_loop_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_loop = {
.header.w = 24,
.header.h = 24,
.header.stride = 96,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_loop_map,
.data_size = sizeof(img_lv_demo_music_btn_loop_map),
@@ -53,6 +53,7 @@ img_lv_demo_music_btn_loop_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_loop = {
.header.w = 37,
.header.h = 36,
.header.stride = 148,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_loop_map,
.data_size = sizeof(img_lv_demo_music_btn_loop_map),
@@ -73,6 +73,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_next_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_next = {
.header.w = 62,
.header.h = 62,
.header.stride = 248,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_next_map,
.data_size = sizeof(img_lv_demo_music_btn_next_map),
@@ -127,6 +127,7 @@ img_lv_demo_music_btn_next_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_next = {
.header.w = 110,
.header.h = 110,
.header.stride = 440,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_next_map,
.data_size = sizeof(img_lv_demo_music_btn_next_map),
@@ -88,6 +88,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_pause_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_pause = {
.header.w = 79,
.header.h = 77,
.header.stride = 316,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_pause_map,
.data_size = sizeof(img_lv_demo_music_btn_pause_map),
@@ -160,6 +160,7 @@ img_lv_demo_music_btn_pause_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_pause = {
.header.w = 141,
.header.h = 142,
.header.stride = 564,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_pause_map,
.data_size = sizeof(img_lv_demo_music_btn_pause_map),
@@ -88,6 +88,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_play_map[] = {
const lv_image_dsc_t img_lv_demo_music_btn_play = {
.header.w = 79,
.header.h = 77,
.header.stride = 316,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
.data = img_lv_demo_music_btn_play_map,
.data_size = sizeof(img_lv_demo_music_btn_play_map),

Some files were not shown because too many files have changed in this diff Show More