chore(image): remove explicit initialization to always_zero (#4796)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-11-18 15:10:22 +08:00
committed by GitHub
parent defaafaa44
commit 511feb39be
139 changed files with 28 additions and 176 deletions
@@ -119,7 +119,6 @@ img_lv_demo_music_btn_corner_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_corner = {
.header.always_zero = 0,
.header.w = 32,
.header.h = 32,
// .data_size = 1024 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -196,8 +196,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_list_pause_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_list_pause = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_list_pause = {
.header.w = 58,
.header.h = 60,
.header.cf = LV_COLOR_FORMAT_ARGB8888,
@@ -338,7 +338,6 @@ img_lv_demo_music_btn_list_pause_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_list_pause = {
.header.always_zero = 0,
.header.w = 106,
.header.h = 105,
// .data_size = 11130 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -196,8 +196,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_list_play_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_list_play = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_list_play = {
.header.w = 58,
.header.h = 60,
// .data_size = 3480 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -338,7 +338,6 @@ img_lv_demo_music_btn_list_play_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_list_play = {
.header.always_zero = 0,
.header.w = 106,
.header.h = 105,
// .data_size = 11130 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -88,8 +88,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_loop_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_loop = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_loop = {
.header.w = 24,
.header.h = 24,
// .data_size = 576 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -131,7 +131,6 @@ img_lv_demo_music_btn_loop_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_loop = {
.header.always_zero = 0,
.header.w = 37,
.header.h = 36,
// .data_size = 1332 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -202,8 +202,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_next_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_next = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_next = {
.header.w = 62,
.header.h = 62,
// .data_size = 3844 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -353,7 +353,6 @@ img_lv_demo_music_btn_next_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_next = {
.header.always_zero = 0,
.header.w = 110,
.header.h = 110,
// .data_size = 12100 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -247,8 +247,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_pause_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_pause = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_pause = {
.header.w = 79,
.header.h = 77,
// .data_size = 6083 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -450,7 +450,6 @@ img_lv_demo_music_btn_pause_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_pause = {
.header.always_zero = 0,
.header.w = 141,
.header.h = 142,
// .data_size = 20022 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -247,8 +247,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_play_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_play = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_play = {
.header.w = 79,
.header.h = 77,
// .data_size = 6083 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -450,7 +450,6 @@ img_lv_demo_music_btn_play_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_play = {
.header.always_zero = 0,
.header.w = 141,
.header.h = 142,
// .data_size = 20022 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -202,8 +202,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_prev_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_prev = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_prev = {
.header.w = 62,
.header.h = 62,
// .data_size = 3844 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -354,7 +354,6 @@ img_lv_demo_music_btn_prev_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_prev = {
.header.always_zero = 0,
.header.w = 110,
.header.h = 110,
// .data_size = 12100 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -88,8 +88,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_btn_rnd_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_btn_rnd = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_btn_rnd = {
.header.w = 24,
.header.h = 24,
// .data_size = 576 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -131,7 +131,6 @@ img_lv_demo_music_btn_rnd_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_btn_rnd = {
.header.always_zero = 0,
.header.w = 37,
.header.h = 36,
// .data_size = 1332 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -70,8 +70,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_corner_left_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_corner_left = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_corner_left = {
.header.w = 18,
.header.h = 18,
// .data_size = 324 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -121,7 +121,6 @@ img_lv_demo_music_corner_left_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_corner_left = {
.header.always_zero = 0,
.header.w = 32,
.header.h = 32,
// .data_size = 1024 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -70,8 +70,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_corner_right_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_corner_right = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_corner_right = {
.header.w = 18,
.header.h = 18,
// .data_size = 324 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -121,7 +121,6 @@ img_lv_demo_music_corner_right_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_corner_right = {
.header.always_zero = 0,
.header.w = 32,
.header.h = 32,
// .data_size = 1024 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -542,8 +542,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_cover_1_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_cover_1 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_cover_1 = {
.header.w = 176,
.header.h = 175,
.data_size = 30800 * LV_COLOR_DEPTH / 8,
@@ -1308,7 +1308,6 @@ img_lv_demo_music_cover_1_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_cover_1 = {
.header.always_zero = 0,
.header.w = 428,
.header.h = 428,
.data_size = 183184 * LV_COLOR_DEPTH / 8,
@@ -542,8 +542,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_cover_2_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_cover_2 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_cover_2 = {
.header.w = 176,
.header.h = 175,
.data_size = 30800 * LV_COLOR_DEPTH / 8,
@@ -1308,7 +1308,6 @@ img_lv_demo_music_cover_2_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_cover_2 = {
.header.always_zero = 0,
.header.w = 428,
.header.h = 428,
.data_size = 183184 * LV_COLOR_DEPTH / 8,
@@ -542,8 +542,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_cover_3_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_cover_3 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_cover_3 = {
.header.w = 176,
.header.h = 175,
.data_size = 30800 * LV_COLOR_DEPTH / 8,
@@ -1308,7 +1308,6 @@ img_lv_demo_music_cover_3_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_cover_3 = {
.header.always_zero = 0,
.header.w = 428,
.header.h = 428,
.data_size = 183184 * LV_COLOR_DEPTH / 8,
@@ -89,8 +89,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_icon_1_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_icon_1 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_icon_1 = {
.header.w = 24,
.header.h = 24,
.data_size = 576 * LV_COLOR_DEPTH / 8,
@@ -115,7 +115,6 @@ img_lv_demo_music_icon_1_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_icon_1 = {
.header.always_zero = 0,
.header.w = 30,
.header.h = 30,
// .data_size = 900 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -89,8 +89,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_icon_2_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_icon_2 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_icon_2 = {
.header.w = 24,
.header.h = 24,
.data_size = 576 * LV_COLOR_DEPTH / 8,
@@ -118,7 +118,6 @@ img_lv_demo_music_icon_2_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_icon_2 = {
.header.always_zero = 0,
.header.w = 31,
.header.h = 31,
// .data_size = 961 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -89,8 +89,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_icon_3_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_icon_3 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_icon_3 = {
.header.w = 24,
.header.h = 24,
.data_size = 576 * LV_COLOR_DEPTH / 8,
@@ -121,7 +121,6 @@ img_lv_demo_music_icon_3_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_icon_3 = {
.header.always_zero = 0,
.header.w = 34,
.header.h = 32,
// .data_size = 1088 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -89,8 +89,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_icon_4_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_icon_4 = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_icon_4 = {
.header.w = 24,
.header.h = 24,
.data_size = 576 * LV_COLOR_DEPTH / 8,
@@ -115,7 +115,6 @@ img_lv_demo_music_icon_4_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_icon_4 = {
.header.always_zero = 0,
.header.w = 32,
.header.h = 30,
// .data_size = 960 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -28,8 +28,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_list_border_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_list_border = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_list_border = {
.header.w = 272,
.header.h = 4,
// .data_size = 1088 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -46,7 +46,6 @@ img_lv_demo_music_list_border_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_list_border = {
.header.always_zero = 0,
.header.w = 479,
.header.h = 7,
// .data_size = 3353 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
+1 -2
View File
@@ -308,8 +308,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_logo_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_logo = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_logo = {
.header.w = 97,
.header.h = 97,
.data_size = 9409 * LV_COLOR_DEPTH / 8,
@@ -130,8 +130,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_slider_knob_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_slider_knob = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_slider_knob = {
.header.w = 36,
.header.h = 38,
// .data_size = 1368 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -222,7 +222,6 @@ img_lv_demo_music_slider_knob_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_slider_knob = {
.header.always_zero = 0,
.header.w = 66,
.header.h = 66,
// .data_size = 4356 * LV_COLOR_FORMAT_NATIVE_ALPHA_SIZE,
@@ -143,8 +143,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_wave_bottom_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_wave_bottom = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_wave_bottom = {
.header.w = 272,
.header.h = 42,
.data_size = 11424 * LV_COLOR_DEPTH / 8,
@@ -246,7 +246,6 @@ img_lv_demo_music_wave_bottom_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_wave_bottom = {
.header.always_zero = 0,
.header.w = 479,
.header.h = 74,
.data_size = 35446 * LV_COLOR_DEPTH / 8,
@@ -143,8 +143,7 @@ const LV_ATTRIBUTE_MEM_ALIGN uint8_t img_lv_demo_music_wave_top_map[] = {
#endif
};
lv_image_dsc_t img_lv_demo_music_wave_top = {
.header.always_zero = 0,
const lv_image_dsc_t img_lv_demo_music_wave_top = {
.header.w = 272,
.header.h = 42,
.data_size = 11424 * LV_COLOR_DEPTH / 8,
@@ -246,7 +246,6 @@ img_lv_demo_music_wave_top_map[] = {
};
const lv_image_dsc_t img_lv_demo_music_wave_top = {
.header.always_zero = 0,
.header.w = 479,
.header.h = 74,
.data_size = 35446 * LV_COLOR_DEPTH / 8,