diff --git a/samples/drivers/video/capture_to_lvgl/prj.conf b/samples/drivers/video/capture_to_lvgl/prj.conf index bd8407787cfd..4a64bbaad53d 100644 --- a/samples/drivers/video/capture_to_lvgl/prj.conf +++ b/samples/drivers/video/capture_to_lvgl/prj.conf @@ -11,7 +11,6 @@ CONFIG_DISPLAY_LOG_LEVEL_ERR=y CONFIG_LVGL=y CONFIG_LV_CONF_MINIMAL=y -CONFIG_LV_MEM_CUSTOM=y -CONFIG_LV_USE_IMG=y +CONFIG_LV_USE_IMAGE=y CONFIG_LV_Z_MEM_POOL_SIZE=16384 CONFIG_LV_USE_PERF_MONITOR=y diff --git a/samples/drivers/video/capture_to_lvgl/src/main.c b/samples/drivers/video/capture_to_lvgl/src/main.c index 0d0a07e0d553..305c5a8a0f38 100644 --- a/samples/drivers/video/capture_to_lvgl/src/main.c +++ b/samples/drivers/video/capture_to_lvgl/src/main.c @@ -131,11 +131,10 @@ int main(void) display_blanking_off(display_dev); const lv_img_dsc_t video_img = { - .header.always_zero = 0, .header.w = CONFIG_VIDEO_WIDTH, .header.h = CONFIG_VIDEO_HEIGHT, .data_size = CONFIG_VIDEO_WIDTH * CONFIG_VIDEO_HEIGHT * sizeof(lv_color_t), - .header.cf = LV_IMG_CF_TRUE_COLOR, + .header.cf = LV_COLOR_FORMAT_NATIVE, .data = (const uint8_t *)buffers[0]->buffer, };