Skip to content

Commit 472caa9

Browse files
faxe1008kartben
authored andcommitted
samples: drivers: video: capture_to_lvgl: Migrate to LVGL v9.2
Adjust the Kconfig symbols of the capture to lvgl sample. LV_MEM_CUSTOM has been removed in v9.0 and LV_USE_IMG has been changed to LV_USE_IMAGE. Fix the changed fields for the image descriptor struct. Signed-off-by: Fabian Blatz <[email protected]>
1 parent d2cebad commit 472caa9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

samples/drivers/video/capture_to_lvgl/prj.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ CONFIG_DISPLAY_LOG_LEVEL_ERR=y
1111

1212
CONFIG_LVGL=y
1313
CONFIG_LV_CONF_MINIMAL=y
14-
CONFIG_LV_MEM_CUSTOM=y
15-
CONFIG_LV_USE_IMG=y
14+
CONFIG_LV_USE_IMAGE=y
1615
CONFIG_LV_Z_MEM_POOL_SIZE=16384
1716
CONFIG_LV_USE_PERF_MONITOR=y

samples/drivers/video/capture_to_lvgl/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ int main(void)
131131
display_blanking_off(display_dev);
132132

133133
const lv_img_dsc_t video_img = {
134-
.header.always_zero = 0,
135134
.header.w = CONFIG_VIDEO_WIDTH,
136135
.header.h = CONFIG_VIDEO_HEIGHT,
137136
.data_size = CONFIG_VIDEO_WIDTH * CONFIG_VIDEO_HEIGHT * sizeof(lv_color_t),
138-
.header.cf = LV_IMG_CF_TRUE_COLOR,
137+
.header.cf = LV_COLOR_FORMAT_NATIVE,
139138
.data = (const uint8_t *)buffers[0]->buffer,
140139
};
141140

0 commit comments

Comments
 (0)