chore(image): remove explicit initialization to always_zero (#4796)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -185,7 +185,6 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_ANIMIMG
|
||||
};
|
||||
|
||||
const lv_image_dsc_t test_animimg001 = {
|
||||
.header.always_zero = 0,
|
||||
.header.w = 130,
|
||||
.header.h = 170,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
|
||||
@@ -185,7 +185,6 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_ANIMIMG
|
||||
};
|
||||
|
||||
const lv_image_dsc_t test_animimg002 = {
|
||||
.header.always_zero = 0,
|
||||
.header.w = 130,
|
||||
.header.h = 170,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
|
||||
@@ -185,7 +185,6 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_ANIMIMG
|
||||
};
|
||||
|
||||
const lv_image_dsc_t test_animimg003 = {
|
||||
.header.always_zero = 0,
|
||||
.header.w = 130,
|
||||
.header.h = 170,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
|
||||
@@ -321,7 +321,6 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_TEST_AR
|
||||
|
||||
const lv_image_dsc_t test_arc_bg = {
|
||||
.header.cf = LV_COLOR_FORMAT_NATIVE_WITH_ALPHA,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 0,
|
||||
|
||||
@@ -25,7 +25,6 @@ test_image_caret_down_map[]
|
||||
};
|
||||
|
||||
const lv_image_dsc_t test_image_caret_down = {
|
||||
.header.always_zero = 0,
|
||||
.header.w = 13,
|
||||
.header.h = 8,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
|
||||
@@ -115,7 +115,6 @@ test_image_cogwheel_a8_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_a8 = {
|
||||
.header.cf = LV_COLOR_FORMAT_A8,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 10000,
|
||||
|
||||
@@ -115,7 +115,6 @@ test_image_cogwheel_argb8888_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_argb8888 = {
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 10000 * 4,
|
||||
|
||||
@@ -132,7 +132,6 @@ test_image_cogwheel_i4_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_i4 = {
|
||||
.header.cf = LV_COLOR_FORMAT_I4,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 5064,
|
||||
|
||||
@@ -116,7 +116,6 @@ test_image_cogwheel_rgb565_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_rgb565 = {
|
||||
.header.cf = LV_COLOR_FORMAT_RGB565,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 10000 * 2,
|
||||
|
||||
@@ -217,7 +217,6 @@ test_image_cogwheel_rgb565a8_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_rgb565a8 = {
|
||||
.header.cf = LV_COLOR_FORMAT_RGB565A8,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.header.stride = 200,
|
||||
|
||||
@@ -116,7 +116,6 @@ test_image_cogwheel_xrgb8888_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_image_cogwheel_xrgb8888 = {
|
||||
.header.cf = LV_COLOR_FORMAT_XRGB8888,
|
||||
.header.always_zero = 0,
|
||||
.header.w = 100,
|
||||
.header.h = 100,
|
||||
.data_size = 10000 * 4,
|
||||
|
||||
@@ -165,8 +165,6 @@ test_img_lvgl_logo_jpg_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_img_lvgl_logo_jpg = {
|
||||
.header.cf = LV_COLOR_FORMAT_RAW,
|
||||
.header.always_zero = 0,
|
||||
.header.reserved = 0,
|
||||
.header.w = 105,
|
||||
.header.h = 33,
|
||||
.data_size = 1947,
|
||||
|
||||
@@ -160,8 +160,6 @@ test_img_lvgl_logo_png_map[] = {
|
||||
|
||||
const lv_image_dsc_t test_img_lvgl_logo_png = {
|
||||
.header.cf = LV_COLOR_FORMAT_RAW_ALPHA,
|
||||
.header.always_zero = 0,
|
||||
.header.reserved = 0,
|
||||
.header.w = 105,
|
||||
.header.h = 33,
|
||||
.data_size = 1873,
|
||||
|
||||
@@ -130,7 +130,6 @@ static void canvas_draw(const char * name, lv_color_format_t large_render_cf)
|
||||
lv_image_dsc_t img = { 0 };
|
||||
img.header.w = 180;
|
||||
img.header.h = 180;
|
||||
img.header.always_zero = 0;
|
||||
img.data = lv_draw_buf_align(canvas_buf, LV_COLOR_FORMAT_ARGB8888);
|
||||
|
||||
lv_draw_image_dsc_t img_dsc;
|
||||
|
||||
@@ -10,8 +10,8 @@ LV_IMAGE_DECLARE(test_animimg003);
|
||||
|
||||
static const lv_image_dsc_t * anim_imgs[3] = {
|
||||
&test_animimg001,
|
||||
& test_animimg002,
|
||||
& test_animimg003,
|
||||
&test_animimg002,
|
||||
&test_animimg003,
|
||||
};
|
||||
|
||||
static lv_obj_t * active_screen = NULL;
|
||||
|
||||
Reference in New Issue
Block a user