Skip to content

Commit

Permalink
samples: drivers: video: capture_to_lvgl: Migrate to LVGL v9.2
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
faxe1008 committed Jan 3, 2025
1 parent d10c442 commit 2528602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions samples/drivers/video/capture_to_lvgl/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions samples/drivers/video/capture_to_lvgl/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 2528602

Please sign in to comment.