mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 17:47:28 +08:00
chore: add stride information in the image resource file (#5653)
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
This commit is contained in:
@@ -428,6 +428,15 @@ 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,
|
||||
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8
|
||||
.header.stride = 100,
|
||||
#elif LV_COLOR_DEPTH == 16
|
||||
.header.stride = 200,
|
||||
#elif LV_COLOR_DEPTH == 24
|
||||
.header.stride = 300,
|
||||
#elif LV_COLOR_DEPTH == 32
|
||||
.header.stride = 400,
|
||||
#endif
|
||||
.header.cf = LV_COLOR_FORMAT_NATIVE,
|
||||
.data = img_cogwheel_rgb_map,
|
||||
.data_size = sizeof(img_cogwheel_rgb_map),
|
||||
|
||||
Reference in New Issue
Block a user