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 <fabianblatz@gmail.com>
This commit is contained in:
parent
d2cebade85
commit
472caa96cb
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue