feat(img): update the bits in lv_img_header_t

See #4382
This commit is contained in:
Gabor Kiss-Vamosi
2023-08-15 12:19:09 +02:00
parent 4736ebfbca
commit 4fe5933630
+9 -7
View File
@@ -61,14 +61,16 @@ typedef struct {
} lv_img_header_t;
#else
typedef struct {
uint8_t always_zero;
uint8_t cf; /*Color format: See `lv_color_format_t`*/
uint16_t format: 16;
uint16_t user: 4;
uint16_t reserved: 4;
uint16_t w; /*Width of the image*/
uint16_t h; /*Height of the image*/
uint32_t cf : 5; /*Color format: See `lv_color_format_t`*/
uint32_t always_zero : 3; /*It the upper bits of the first byte. Always zero to look like a
non-printable character*/
uint32_t format: 8; /*Image format? To be defined by LVGL*/
uint32_t user: 8;
uint32_t reserved: 8; /*Reserved to be used later*/
uint32_t w: 16;
uint32_t h: 16;
} lv_img_header_t;
#endif